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/jobsList background jobs you started, newest first. Filter by job_type and status.
Query parameters
| Name | Type | Description |
|---|---|---|
job_type | JobType | Filter by one job type. An unknown value returns 400. |
status | string | Filter by status, comma-separated, for example status=pending,running. Values: pending, running, succeeded, partially_succeeded, failed. An unknown value returns 400. |
limit | integer | Maximum jobs to return. Default 50, maximum 1000. |
offset | integer | Number of jobs to skip |
Response 200 — List of jobs
| Name | Type | Description |
|---|---|---|
jobs (required) | JobStatusResponse[] |
Fields of jobs
| Name | Type | Description |
|---|---|---|
jobs[].attempts (required) | integer | Number of attempts so far, including the current one. |
jobs[].completed_at | string | When the job finished. Absent until then. |
jobs[].created_at (required) | string | When the job was created. |
jobs[].error_message | string | What went wrong. Set when status is failed or partially_succeeded. |
jobs[].id (required) | string | Job ID. |
jobs[].job_type (required) | JobType | Type of background job. |
jobs[].result | JobResult | |
jobs[].status (required) | JobStatus | Status 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
| Name | Type | Description |
|---|---|---|
id (required) | string | Job ID |
Response 200 — Job status
| Name | Type | Description |
|---|---|---|
attempts (required) | integer | Number of attempts so far, including the current one. |
completed_at | string | When the job finished. Absent until then. |
created_at (required) | string | When the job was created. |
error_message | string | What went wrong. Set when status is failed or partially_succeeded. |
id (required) | string | Job ID. |
job_type (required) | JobType | Type of background job. |
result | JobResult | |
status (required) | JobStatus | Status 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
| Status | Description |
|---|---|
403 | The API key is limited to one database, and this job is for a different one |
404 | Job not found |