Standard Response Format
All API endpoints follow a consistent response structure to ensure predictable data handling:Response Fields
The actual data being returned. Will be
null if the request failed or no data is available.Optional pagination metadata. Present only on list endpoints that support pagination.Can be either:
- Offset pagination (recommended for most cases)
- Cursor-based pagination (for large datasets)
HTTP status information
Success Response Example
Error Response Examples
400 Bad Request
404 Not Found
422 Unprocessable Entity
500 Internal Server Error
HTTP Status Codes
The API uses standard HTTP status codes:| Code | Description | When Used |
|---|---|---|
| 200 | OK | Request successful |
| 400 | Bad Request | Invalid request parameters |
| 404 | Not Found | Resource doesn’t exist |
| 422 | Unprocessable Entity | Valid syntax but semantic errors |
| 500 | Internal Server Error | Server-side error |
Content Type
All responses use JSON format:Data Types
Thedata field type varies by endpoint:
Single Resource
For endpoints returning a single item:Collection of Resources
For endpoints returning multiple items:Empty Success Response
For POST endpoints that don’t return data:Next Steps
Pagination
Learn about pagination metadata
Endpoints
Explore specific endpoint responses