# Jobs (v0)

> Robots API v0 reference, generated from the OpenAPI spec.

List and cancel jobs across all workflows.

HTML version: https://www.mux.com/docs/api-reference/robots-v0/jobs-v0. Full OpenAPI spec: https://www.mux.com/api-spec.json

Operations on this page:

- List jobs: `GET /robots/v0/jobs`
- Cancel a job: `POST /robots/v0/jobs/{JOB_ID}/cancel`

## List jobs

`GET https://api.mux.com/robots/v0/jobs`

**Deprecated.**

Deprecated: use `GET /robots/v1/jobs` instead. Returns a paginated list of Robots jobs, with optional filters for workflow, status, and asset_id. Jobs are automatically deleted after 30 days.

Operation ID: `list-jobs-v0`. HTML version: https://www.mux.com/docs/api-reference/robots-v0/jobs-v0/list-jobs-v0

### Query parameters

- `workflow` (string): Filter by workflow name Possible values: `"analyze-structure"`, `"summarize"`, `"generate-contextual-text"`, `"moderate"`, `"generate-chapters"`, `"find-scenes"`, `"edit-captions"`, `"translate-captions"`, `"translate-audio"`, `"ask-questions"`, `"find-key-moments"`, `"generate-engagement-insights"`, `"generate-premium-captions"`, `"find-best-thumbnails"`.
- `status` (string): Filter by job status Possible values: `"pending"`, `"processing"`, `"completed"`, `"errored"`, `"cancelled"`.
- `asset_id` (string, minLength: 1): Filter by Mux asset ID
- `limit` (integer, default: 25, minimum: 1, maximum: 100): Maximum number of jobs to return (default 25, max 100)
- `page` (integer, default: 1, minimum: 1): Page number (default 1)

### Response `200`

List of jobs

- `data` (array of object, required)
  - `id` (string, required): Unique job identifier.
  - `workflow` (string, required): Workflow type that created this job. Possible values: `"analyze-structure"`, `"summarize"`, `"generate-contextual-text"`, `"moderate"`, `"generate-chapters"`, `"find-scenes"`, `"edit-captions"`, `"translate-captions"`, `"translate-audio"`, `"ask-questions"`, `"find-key-moments"`, `"generate-engagement-insights"`, `"generate-premium-captions"`, `"find-best-thumbnails"`.
  - `status` (string, required): Current job status. Possible values: `"pending"`, `"processing"`, `"completed"`, `"errored"`, `"cancelled"`.
  - `created_at` (integer, required, minimum: 0): Unix timestamp (seconds) when the job was created.
  - `updated_at` (integer, required, minimum: 0): Unix timestamp (seconds) of the job's last state transition (e.g. when it started processing or reached a terminal state).
  - `_links` (object, required): Hypermedia links for this job.
    - `self` (object, required)
      - `href` (string, required): URL to this resource.
- `total_row_count` (integer, required, minimum: 0): Total number of jobs matching the query filters

### Errors

- `401`: Missing or invalid Mux credentials
- `403`: Robots is not enabled for this environment. Accept the Robots beta terms in the Mux Dashboard to enable access.
- `422`: Invalid request parameters
- `500`: Server error

Every error response has this body:

- `error` (object, required)
  - `type` (string, required): Machine-readable error type.
  - `message` (string, required, deprecated): Deprecated: use `messages` instead. Human-readable error message describing what went wrong.
  - `messages` (array of string): Individual error messages describing what went wrong.

## Cancel a job

`POST https://api.mux.com/robots/v0/jobs/{JOB_ID}/cancel`

**Deprecated.**

Deprecated: use `POST /robots/v1/jobs/{job_id}/cancel` instead. Cancels a job that is currently pending or processing.

Operation ID: `cancel-job-v0`. HTML version: https://www.mux.com/docs/api-reference/robots-v0/jobs-v0/cancel-job-v0

### Path parameters

- `JOB_ID` (string, required, minLength: 1, maxLength: 255): Robots job ID returned by job creation or listing (rjob_...).

### Response `200`

Job cancelled successfully

- `data` (object, required)
  - `id` (string, required): Unique job identifier.
  - `workflow` (string, required): Workflow type that created this job. Possible values: `"analyze-structure"`, `"summarize"`, `"generate-contextual-text"`, `"moderate"`, `"generate-chapters"`, `"find-scenes"`, `"edit-captions"`, `"translate-captions"`, `"translate-audio"`, `"ask-questions"`, `"find-key-moments"`, `"generate-engagement-insights"`, `"generate-premium-captions"`, `"find-best-thumbnails"`.
  - `status` (string, required): Current job status. Possible values: `"pending"`, `"processing"`, `"completed"`, `"errored"`, `"cancelled"`.
  - `created_at` (integer, required, minimum: 0): Unix timestamp (seconds) when the job was created.
  - `updated_at` (integer, required, minimum: 0): Unix timestamp (seconds) of the job's last state transition (e.g. when it started processing or reached a terminal state).
  - `_links` (object, required): Hypermedia links for this job.
    - `self` (object, required)
      - `href` (string, required): URL to this resource.

### Errors

- `401`: Missing or invalid Mux credentials
- `403`: Robots is not enabled for this environment. Accept the Robots beta terms in the Mux Dashboard to enable access.
- `404`: Job not found
- `409`: Job is already in a terminal state
- `422`: Invalid request parameters
- `500`: Server error

Every error response has this body:

- `error` (object, required)
  - `type` (string, required): Machine-readable error type.
  - `message` (string, required, deprecated): Deprecated: use `messages` instead. Human-readable error message describing what went wrong.
  - `messages` (array of string): Individual error messages describing what went wrong.
