Core principles
- Clear communication: structured responses make success and failure equally informative
- Practical over purist: pragmatic choices over rigid adherence to a single paradigm
- Predictable patterns: consistent endpoint behavior
Response structure
All responses share a consistent envelope:Working with the API
Always use the request ID
Every response includes a uniquerequestId. Include it when debugging or requesting support. You can also search for the request ID in logs.
Handling pagination
- Make your initial request.
- Check
pagination.hasMore. - Use
pagination.cursorfor the next request.
Versioning
APIs use a major version in the URL, for example/v2/. Breaking changes increment the major version.
