API reference
Errors and limits
Every failure is JSON with a code to act on. Requests and lists have limits worth knowing.
The error envelope
A failed request answers with a 4xx or 5xx status and success: false. Act on code; the error message is for people and can change.
{
"success": false,
"error": "The API key is missing, not valid, revoked, or its integration is not active. Send a valid key as Authorization: Bearer <key>. If you did, ask your TrueAge contact.",
"code": "UNAUTHENTICATED",
"timestamp": 1791813780000
}Request errors
These are the codes a request can fail with, in order of HTTP status. Each says what to do.
| Status | Code | Means | What to do |
|---|---|---|---|
| 400 | INVALID_LIMIT | limit is not a whole number from 1 to the endpoint's maximum. | Send a whole number within the range on the endpoint's page, or leave limit out. |
| 400 | INVALID_CURSOR | cursor is not a value this API returned. | Send next_cursor exactly as the previous page returned it, or leave cursor out to start over. |
| 400 | INVALID_UPDATED_SINCE | updated_since is missing or is not an ISO 8601 date-time with an offset. | Send it with an offset, such as 2026-10-01T00:00:00Z. |
| 401 | UNAUTHENTICATED | The API key is missing, malformed, unknown or revoked, or its integration is not active. | Send a valid key as Authorization: Bearer <key>. If you did, ask your TrueAge contact. |
| 403 | INSUFFICIENT_SCOPE | The key's access does not cover this endpoint. | Use a key with the access the endpoint's page names, or ask your TrueAge contact for a key that has it. |
| 403 | IP_NOT_ALLOWED | The key is limited to certain addresses and the call came from another. | Call from an allowed address, or ask your TrueAge contact to add this one. |
| 404 | NOT_FOUND | There is no such record for your integration, or no endpoint at this path. A record that belongs to another partner answers the same way. | Check the id or the path. Use ids this API returned to you. |
| 429 | RATE_LIMITED | Your integration is over its rate limit. All its keys count together. | Wait the number of seconds in the Retry-After header, then try again. |
| 500 | INTERNAL_ERROR | TrueAge could not finish the request. | Try again in a few minutes. If it keeps failing, tell your TrueAge contact. |
| 503 | SERVICE_UNAVAILABLE | TrueAge is briefly unable to take the request. The Retry-After header gives a number of seconds. | Wait that long, then try again. |
Server errors
A 5xx answer means TrueAge could not finish the request: 500 INTERNAL_ERROR, or 503 SERVICE_UNAVAILABLE with Retry-After in seconds. Wait, then try again with backoff.
Limits
- Each integration may make 600 requests a minute. Over that, the answer is
429 RATE_LIMITEDwithRetry-Afterin seconds; wait that long before retrying. - Lists page with
cursorandlimit. Follownext_cursoruntil it isnull; a page can hold fewer thanlimitresults whilenext_cursoris still set.