Skip to content

Error codes

The API uses standard HTTP status codes. An error body carries the service's detail JSON object, with the exact message returned to the caller.

Error structure

{ "detail": "<message>" }

An authentication refusal also carries the WWW-Authenticate: ApiKey header; a script client refused for a missing key additionally gets a docs link to the quickstart.

Common codes

StatusReturned bodySuggested action
400Invalid timeframe. Valid: …Fix the query parameters.
401API key requiredSend the key as X-API-Key or Authorization: Bearer.
401Invalid or expired API keyCheck the key, rotate it if it was revoked.
401Authentication requiredProtected route: provide a valid key.
403Upgrade requiredThe metric or route is above the account plan.
404Not Found, Indicator not found, Unknown metricCheck the path and the identifier (indicator, metric).
429Rate limit exceeded / Daily quota exceededHonor Retry-After (60 s per key, 86400 s for the anonymous quota).
5xxGeneric service response.Retry with back-off ; contact support if persistent.

Institutional disclaimer

Trinity Insights is an educational and analytical tool. Content does not constitute investment advice. Trinity Insights is not a Crypto-Asset Service Provider (CASP) registered under MiCA Regulation (EU) 2023/1114, nor a Financial Investment Advisor (CIF), nor a PSAN. See the full disclaimer.