Skip to main content
GET
Requires version 1.1.0 or later of the Archetype platform.

Overview

This endpoint returns a cursor-paginated list of jobs. You can filter by pipeline type, status, or a free-text search query. The list is ordered on the field identified by sort (created_at by default), in the direction specified by order. Ties are broken on created_at, then id. The page is in sort order whether it was reached with after or before. Cursors are opaque and bound to the sort they were issued under; a cursor from another sort returns an HTTP 400 error.

Request

string
Filter jobs by pipeline type (e.g., batch, training)
string
Filter jobs by status (e.g., PENDING, RUNNING, PAUSED, COMPLETED, FAILED, INTERRUPTED, CANCELLED). Unknown values return an HTTP 400 error.
string
Optional filter on the job outcome: SUCCESS, PARTIAL, or FAILED. These are AND-combined with the other filters. Only COMPLETED jobs have an outcome, so a non-empty value for this parameter implicitly limits results to completed jobs. v1.1.5+
string
Free-text search query to filter jobs.
string
default:"created_at"
Specifies the field on which the returned list is ordered. Ties are broken on created_at, then id, so pages are stable. v1.1.12+Must be one of the following:
string
Specifies whether sorting is performed in ascending order (asc) or descending order (desc). When sorting by created_at or completed_at, this defaults to desc. When sorting by status, this defaults to asc. A cursor marks a position in the list and stays valid under either direction. v1.1.12+
string
default:"created_at"
Sort field: created_at (the default), completed_at, or status. status orders by lifecycle position — PENDING, ADMITTED, RUNNING, PAUSED, INTERRUPTED, PREEMPTED, COMPLETED, FAILED, CANCELLED — not by the raw status value. Jobs that haven’t finished sort as the earliest completed_at, which places them last under desc. Ties are broken on created_at then id, so pages are stable. v1.1.12+
string
Sort direction: asc or desc. When omitted, each sort field applies its own default: desc for created_at and completed_at, asc for status. A cursor marks a position in the list and stays valid under either direction. v1.1.12+
integer
default:"10"
Page size, between 1 and 1000. Clamped server-side.
string
Forward cursor: return the jobs that follow this page’s last job in the sort order. This value is opaque and doesn’t correspond to any identifier you can rely upon. Instead, pass the previous page’s next_cursor back verbatim. A cursor is bound to the sort it was issued under; sending it with a different sort returns an HTTP 400 error. This parameter is mutually exclusive with before; sending both returns an HTTP 400 error. v1.1.11+
string
Backward cursor: return the jobs that precede this page’s first job in the sort order. Just like after, this parameter’s value is opaque; pass the current page’s prev_cursor back verbatim. This parameter is mutually exclusive with after; specifying both returns an HTTP 400 error. v1.1.11+

Response

array
Array of job objects, in the requested sort and order (newest first by default) in both cursor directions, each containing:
  • id — Unique job identifier
  • org_id — Organization identifier
  • name — Job name
  • pipeline_type — Pipeline type (batch or training)
  • pipeline_key — Pipeline key; this value is the same as workflow_key and is retained for backward compatibility
  • workflow_key — Workflow key; this value is the same as pipeline_key, which is retained for backward compatibility v1.1.8+
  • pipeline_version — Pipeline version
  • status — Current job status
  • outcome — Job outcome (SUCCESS, PARTIAL, or FAILED). Omitted for jobs whose status isn’t COMPLETED v1.1.5+
  • parameters — Job parameters
  • retry_count — Number of retries
  • preemption_count — Number of preemptions
  • queue_position — Current position in queue (if queued)
  • queue_depth — Total queue depth (if queued)
  • input_progress — Per-status counts of tracked inputs (pending, processing, completed, failed, processed_bytes, total_bytes); populated on this list endpoint, null on write-path responses (see the input_progress property returned by the Get Job endpoint)
  • created_at — Creation timestamp
  • updated_at — Last update timestamp
  • started_at — Start timestamp (if started)
  • completed_at — Completion timestamp (if completed)
  • failed_at — Failure timestamp (if failed)
  • cancelled_at — Cancellation timestamp (if cancelled)
  • error — Error details (if failed)
boolean
true when more jobs exist beyond this page in the direction of travel. v1.1.11+
string
Cursor for the next page in the same direction — pass it as after when paging forward, or as before when the request used before. null when has_more is false. v1.1.11+
string
Cursor to step back the way this page was reached — pass it as before after a forward page, or as after after a backward one. null when the request carried no cursor. v1.1.11+