Skip to main content
POST
/
printers
/
{id}
/
control
Pause / resume / stop / clear bed
curl --request POST \
  --url https://api.autoprintfarm.com/public/v1/printers/{id}/control \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "success": true,
  "data": {
    "printer_id": "<string>",
    "action": "<string>",
    "status": "<string>",
    "command_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

API keys are minted in the AutoPrintFarm web app under Settings → API Keys. Send as Authorization: Bearer apf_live_.... Keys are shown exactly once at creation and can be revoked at any time.

Path Parameters

id
string
required

Body

application/json
action
enum<string>
required
Available options:
pause,
resume,
stop,
clear_bed

Response

Dispatched

success
enum<boolean>
required
Available options:
true
data
object
required