Перейти к основному содержанию
GET
Job status (the polling workhorse)

Авторизации

Authorization
string
header
обязательно

Authorization: Bearer <credential>. The credential is one of: an account-scoped API key (comfyui-…), accepted on Cloud and serverless; a Comfy Cloud session JWT; or an OAuth access token issued for the Comfy Cloud resource. Which kinds a given deployment accepts is deployment configuration — an API key always works on Cloud and serverless, and a deployment that does not accept JWT bearers answers 401 with a message saying so. Self-hosted accepts unauthenticated requests by default and can be configured with a static bearer token.

Параметры пути

id
string
обязательно

Ответ

The job.

One execution of a workflow. Durable from creation until expires_at; outputs populates incrementally during execution.

id
string
обязательно
Пример:

"7f3d2c1b-9a8e-4d6f-b012-3c4d5e6f7a8b"

status
enum<string>
обязательно

Lifecycle: queued → running → succeeded | failed | expired; a cancel request, or the deletion of the deployment the job is running on, moves running → canceling → canceled. Terminal states: succeeded, canceled, failed, expired.

Доступные опции:
queued,
running,
succeeded,
canceling,
canceled,
failed,
expired
created_at
string<date-time>
обязательно
started_at
string<date-time> | null
обязательно
completed_at
string<date-time> | null
обязательно
expires_at
string<date-time>
обязательно

Retention deadline — a platform property, not an API constant.

queue_position
integer | null
обязательно
progress
object | null
обязательно

The latest progress snapshot; same data the SSE stream pushes.

outputs
object[]
обязательно
error
object | null
обязательно

Execution failure detail, carried in job.error (not an HTTP error).

urls
object
обязательно

Embedded follow-up links — follow these, don't build URLs. A link is either an absolute URL or a host-relative reference (leading /) that already includes any prefix the serving surface is mounted under (e.g. a serverless gateway's /deployment/{deployment_id}/api/v2). Clients MUST resolve a host-relative link against the request origin (scheme + authority), never against a configured base URL — joining it to a base URL that carries the same mount prefix duplicates the prefix.

metrics
object

Values are nullable (a metric not yet available — e.g. execution_ms before a job starts running — is null, not omitted); the example below is deliberately all-non-null purely to work around a Spectral/nimma lint-tooling crash on a literal null inside a schema example combined with additionalProperties.nullable: true — the schema itself is unchanged and still allows null values at runtime.

Пример:
deployment_id
string

The deployment the job was sent to: the id in the address it was posted at, which stays the same when the deployment moves to another release. Absent on a surface that runs jobs on no deployment.

Пример:

"dep-0f19a2b3c4d5"

release_id
string

The release of the deployment's build that ran the job, which can differ from the release the deployment runs now. Absent where the serving surface does not report it.

Пример:

"7c1e9a40-3b2d-4f6a-9e81-0c5d2a7b4f13"

release_version
integer

The version of the release in release_id, the number its build cut it as. Absent where the serving surface does not report it or could not look it up at the time of the answer.

Требуемый диапазон: x >= 1
Пример:

3

metadata
object

The labels the job was submitted with, exactly as sent. Absent when it was sent with none.

Пример: