Skip to main content
GET
Listing All Jobs
Using the API directly is not recommended for most users. Instead, we recommend using the Python SDK.
List all current and historical jobs with optional pagination support for handling large datasets efficiently.

Headers

string
required
Your Sutro API key using Key authentication scheme.Format: Key YOUR_API_KEYExample: Authorization: Key sk_live_abc123...

Query Parameters

integer
Number of jobs to return per page. When provided, enables pagination.
  • Minimum: 1
  • Maximum: 100
  • If omitted, returns all jobs without pagination
string
Opaque cursor string for pagination. Use the next_cursor value from the previous response to fetch the next page.Only used when limit is also provided.

Response

Returns a list of jobs associated with your account. The response structure varies based on whether pagination is used.

Without Pagination (no limit parameter)

string
Success message indicating jobs were retrieved
array
Complete list of all jobs for your account

With Pagination (limit parameter provided)

array
List of jobs for the current page (up to limit items)
string | null
Cursor to fetch the next page of results. Will be null if there are no more pages.

Code Examples

Job Object Fields

Each job in the jobs array contains the following fields:

Notes

  • Jobs are returned in reverse chronological order (newest first)
  • When using pagination, the cursor is opaque and should not be modified
  • Use the limit parameter for better performance when dealing with large numbers of jobs