Use bulk operations
For operations on multiple records, prefer bulk endpoints over individual calls:Paginate efficiently
When fetching all records, use the maximumpage_size of 100 to reduce the number of API calls:
total_pages in the response to know when to stop.
Handle soft deletes
Most delete operations are soft deletes. Deleted records won’t appear in list results but the data is retained for recovery. Keep this in mind when building sync integrations.Use filters on list endpoints
Most list endpoints support filtering to reduce response size:Implement error handling
Always handle common error cases:- 401: Refresh or check your API key
- 404: The resource may have been deleted
- 422: Validate your request body before sending
- 429: Implement exponential backoff (see Rate Limiting)
Use semantic search
For finding records by meaning rather than exact text, use the Cortex Search endpoints:Content types
- All request bodies must be
application/jsonunless uploading files - File uploads use
multipart/form-data - All responses are
application/jsonunless downloading files