---
title: "List jobs with pagination and filtering"
method: GET
path: "/api/jobs"
tags: ["job"]
---

# List jobs with pagination and filtering

`GET /api/jobs`

Retrieve a paginated list of jobs for the authenticated user.
Returns lightweight job data optimized for list views.
Workflow and full outputs are excluded to reduce payload size.

## Query parameters

- `status` string
- `workflow_id` string
- `output_type` 'image' | 'video' | 'audio'
- `sort_by` 'create_time' | 'execution_time'
- `sort_order` 'asc' | 'desc'
- `offset` integer
- `limit` integer

## Response `200`

Success - Jobs retrieved

- JobsListResponse
  - `jobs` JobEntry[], required — Array of jobs ordered by specified sort field
    - `id` string, uuid, required — Unique job identifier
    - `status` 'pending' | 'in_progress' | 'completed' | 'failed' | 'cancelled', required — User-friendly job status
    - `execution_error` ExecutionError — Detailed execution error information from ComfyUI
      - `node_id` string, required — ID of the node that failed
      - `node_type` string, required — Type name of the node (e.g., "KSampler")
      - `exception_message` string, required — Human-readable error message
      - `exception_type` string, required — Python exception type (e.g., "RuntimeError")
      - `traceback` string[], required — Array of traceback lines (empty array if not available)
      - `current_inputs` object, required — Input values at time of failure (empty object if not available)
      - `current_outputs` object, required — Output values at time of failure (empty object if not available)
    - `create_time` integer, required — Job creation timestamp (Unix timestamp in seconds)
    - `preview_output` object — Primary preview output (only present for terminal states)
    - `outputs_count` integer — Total number of output files (omitted for non-terminal states)
    - `workflow_id` string — UUID identifying the workflow graph definition
    - `execution_start_time` integer — Workflow execution start timestamp (Unix milliseconds, only present for terminal states)
    - `execution_end_time` integer — Workflow execution completion timestamp (Unix milliseconds, only present for terminal states)
  - `pagination` PaginationInfo, required
    - `offset` integer, required — Current offset (0-based)
    - `limit` integer, required — Items per page
    - `total` integer, required — Total number of items matching filters
    - `has_more` boolean, required — Whether more items are available beyond this page

## Other responses

- `401` — Unauthorized - Authentication required
- `500` — Internal server error

---

[API](https://skmtc.dev/ac/apis/comfy-api.md) · [All operations](https://skmtc.dev/ac/apis/comfy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ac/comfy-api/revisions/c1893dffe250/schema)
