HTTP error codes
Error response format
All4XX and 429 errors return a structured JSON body with three fields: a machine-readable errorCode, a human-readable message, and a hint suggesting how to resolve the issue.
400 Bad Request
The server cannot process the request due to a client-side error. Common causes:- Missing a required query parameter (e.g.,
phoneon phone-based APIs) - Invalid parameter format (e.g., malformed phone number)
- Syntax error in request URL
403 Forbidden
The request is understood, but the server is refusing to fulfill it.
A missing, incorrect, inactive, or expired
x-api-key, or one not enabled for the requested product or version, returns AUTHENTICATION_FAILED.
429 Too Many Requests
You have exceeded a rate or quota limit. See Rate limits for retry guidance.500 Internal Server Error
An unexpected error occurred on the server. If this persists, contact support@trestleiq.com with the request details and timestamp.Partial errors
Some APIs return a200 response with an error or errors field when partial data could not be retrieved (e.g., due to an upstream timeout). Check for this field in every response:
error is present, the response is partial. The fields that were successfully retrieved are still usable.
Warnings
Warnings indicate non-fatal issues with the input or response. They do not prevent a response from being returned:warnings field documentation on each API reference page.