Skip to main content
GET
/
v1
/
jobs
JavaScript
import Spitch from 'spitch';

const client = new Spitch();

// Automatically fetches more pages as needed.
for await (const job of client.jobs.list()) {
  console.log(job.job_id);
}
{
  "items": [
    {
      "job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "status": "<string>",
      "org_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_by": "<string>",
      "due_date": "2023-11-07T05:31:56Z"
    }
  ],
  "next_cursor": "<string>"
}

Query Parameters

limit
integer
default:50
Required range: x < 100
status
enum<string> | null
Available options:
queued,
in_progress,
finished
cursor
string | null

Response

Successful Response

Response model for listing jobs.

Attributes: items: list of job metadata responses next_cursor: Optional cursor for pagination to get next page of results

items
JobMetadata · object[]
required
next_cursor
string | null
I