Base URL
All API requests should be made to:Authentication
Authenticate requests by including an App API key in thex-api-key header:
See the Authentication guide to
learn how to create an app and get your API key.
Resources
Response format
All responses return JSON. Successful responses include anobject field indicating the resource type:
Pagination
List endpoints support cursor-based pagination using the following query parameters:| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Number of results to return (max 100) |
starting_after | string | - | Cursor for fetching results after a specific resource ID |
- Make an initial request without the
starting_afterparameter - If
hasMoreistrue, use theidof the last item indataas thestarting_afterparameter for the next request - Repeat until
hasMoreisfalse
Errors
The API uses standard HTTP status codes and returns consistent error responses:| Status | Description |
|---|---|
200 | Success |
201 | Created |
400 | Bad request - check your parameters |
401 | Unauthorized - invalid or missing API key |
403 | Forbidden - insufficient permissions |
404 | Not found |
409 | Conflict - resource already exists |