Skip to Content
DocsResponse Format

Response Format

All API responses use a consistent JSON envelope.

Success Response

{ "success": true, "data": { // Response payload — varies per endpoint }, "meta": { "timestamp": "2026-04-07T12:00:00.000Z", "version": "1.0.0" } }

Error Response

{ "success": false, "error": { "code": "VALIDATION_ERROR", "message": "Human-readable error description", "details": [] // Optional — validation errors, stack traces (non-production only) }, "meta": { "timestamp": "2026-04-07T12:00:00.000Z" } }

Common Error Codes

CodeHTTP StatusDescription
VALIDATION_ERROR400Invalid request parameters or body
UNAUTHORIZED401Missing or invalid authentication token
INVALID_NONCE401Nonce not found or already used
NONCE_EXPIRED401Authentication nonce has expired
INVALID_SIGNATURE401Signature verification failed
NOT_FOUND404Requested resource does not exist
INTERNAL_ERROR500Unexpected server error

Pagination

Paginated endpoints accept these query parameters:

ParameterTypeDefaultDescription
pagenumber1Page number (1-indexed)
limitnumber20Results per page (max varies by endpoint, typically 100)
sortBystringvariesField to sort by
sortOrderstringdescSort direction: asc or desc

Paginated responses include pagination metadata in the data field:

{ "success": true, "data": { "items": [...], "total": 1250, "page": 1, "limit": 20, "totalPages": 63 } }

Caching

Some endpoints return cached responses. The X-Cache header indicates cache status:

Header ValueDescription
X-Cache: HITResponse served from cache
X-Cache: MISSResponse generated fresh

Cache durations vary by endpoint and are noted in each endpoint’s documentation.

Last updated on