API Reference›Jobs
API Reference

Jobs

Track background jobs, such as async loads, index builds and bulk database creation. Poll a job by ID, or list jobs.

List jobs

GET/v1/jobs

List background jobs you started, newest first. Filter by job_type and status.

Query parameters

NameTypeDescription
job_typeJobTypeFilter by one job type. An unknown value returns 400.
statusstringFilter by status, comma-separated, for example status=pending,running. Values: pending, running, succeeded, partially_succeeded, failed. An unknown value returns 400.
limitintegerMaximum jobs to return. Default 50, maximum 1000.
offsetintegerNumber of jobs to skip

Response 200 — List of jobs

NameTypeDescription
jobs (required)JobStatusResponse[]
Fields of jobs
NameTypeDescription
jobs[].attempts (required)integerNumber of attempts so far, including the current one.
jobs[].completed_atstringWhen the job finished. Absent until then.
jobs[].created_at (required)stringWhen the job was created.
jobs[].error_messagestringWhat went wrong. Set when status is failed or partially_succeeded.
jobs[].id (required)stringJob ID.
jobs[].job_type (required)JobTypeType of background job.
jobs[].resultJobResult
jobs[].status (required)JobStatusStatus of a background job. succeeded, partially_succeeded and failed are final; keep polling while it is pending or running. - pending: queued, or waiting to retry. - running: in progress. - succeeded: finished; all its work succeeded. - partially_succeeded: finished with a result, but some of its work failed (for example, some databases in a bulk creation). See error_message. - failed: failed and will not be retried. See error_message.
Example response
{
  "jobs": [
    {
      "attempts": 0,
      "completed_at": "2026-01-01T00:00:00Z",
      "created_at": "2026-01-01T00:00:00Z",
      "error_message": "string",
      "id": "string",
      "job_type": "noop",
      "result": null,
      "status": "pending"
    }
  ]
}

Get job status

GET/v1/jobs/{id}

Get the status of a background job. Poll this until the job finishes.

Path parameters

NameTypeDescription
id (required)stringJob ID

Response 200 — Job status

NameTypeDescription
attempts (required)integerNumber of attempts so far, including the current one.
completed_atstringWhen the job finished. Absent until then.
created_at (required)stringWhen the job was created.
error_messagestringWhat went wrong. Set when status is failed or partially_succeeded.
id (required)stringJob ID.
job_type (required)JobTypeType of background job.
resultJobResult
status (required)JobStatusStatus of a background job. succeeded, partially_succeeded and failed are final; keep polling while it is pending or running. - pending: queued, or waiting to retry. - running: in progress. - succeeded: finished; all its work succeeded. - partially_succeeded: finished with a result, but some of its work failed (for example, some databases in a bulk creation). See error_message. - failed: failed and will not be retried. See error_message.
Example response
{
  "attempts": 0,
  "completed_at": "2026-01-01T00:00:00Z",
  "created_at": "2026-01-01T00:00:00Z",
  "error_message": "string",
  "id": "string",
  "job_type": "noop",
  "result": null,
  "status": "pending"
}

Errors

StatusDescription
403The API key is limited to one database, and this job is for a different one
404Job not found