Skip to main content
POST
Cancel Job

Authorizations

Authorization
string
header
required

API key from Settings > Developer > REST API

Path Parameters

job
string
required

Response

Successful Response

id
string
required

The job id (mjb_…).

machine_id
string
required

The machine id (mch_…).

status
enum<string>
required

The state (see the enum).

Available options:
running,
succeeded,
failed,
canceled
exit_code
integer | null
required

The command's exit code, once it has ended.

output_tail
string | null
required

The last few KB of output (stdout and stderr together).

started_at
string | null
required

When the job started running (ISO 8601); null while queued.

ended_at
string | null
required

When it ended.

next
string
required

What to do next, for agents.

resumed
boolean
default:false

True when the machine was paused and resumed for this run.