SENTINARA API

Errors

Errors use HTTP status codes and a JSON body in the RFC 9457 problem details format, with Content-Type: application/problem+json.

json
{
  "type": "https://docs.sentinara.org/errors#unknown_parameter",
  "title": "Unknown query parameter",
  "status": 400,
  "code": "unknown_parameter",
  "detail": "\"regoin\" is not supported here. Allowed: region, level, q, sort, has_cases, format, limit, cursor.",
  "instance": "/v1/countries",
  "request_id": "8d3f2c1a9b7e4f60",
  "parameter": "regoin"
}

#Error codes

CodeStatusMeaningWhat to doRetry
invalid_parameter400A query parameter has an invalid value (wrong format, out of range, repeated).Check the parameter against the reference. The response names the parameter.no
unknown_parameter400A query parameter is not supported by this endpoint.Remove it or fix the spelling. Unknown parameters are rejected so typos do not silently return unfiltered data.no
api_key_in_query400An API key was sent in the URL.Send it in the Authorization or X-API-Key header. Treat the key as exposed and rotate it.no
invalid_body400The JSON body is malformed or a field is invalid.Fix the field named in the response.no
turnstile_failed400The human verification token is missing, invalid or expired.Complete the verification again on docs.sentinara.org/keys.no
invalid_key401The key is malformed, unknown, or the Authorization header is not a Bearer token.Check that you copied the whole key and use "Authorization: Bearer ".no
key_revoked401The key was revoked (by you, by rotation, or for abuse).Create a new key.no
management_token_required403Rotating or revoking a publishable key needs its management token, sent from a server or terminal.Send the token you received at creation in the X-Management-Token header, without an Origin header. If it is lost, email api@sentinara.org with the key prefix.no
secret_key_in_browser403A secret key was used from a web page (the request had an Origin header).Call the API from your server, or use a publishable key restricted to your site. Rotate the secret key if it was shipped to browsers.no
origin_not_allowed403A publishable key was used from an origin it is not registered for.Use the key only on its registered origins, or create a key for this origin.no
not_found404The endpoint or the resource (country, province, sub-district) does not exist.Check the path and identifier. List endpoints return valid identifiers.no
not_available404The resource exists but this view is not available, e.g. no forecast for a country with too little data.Use the profile endpoint to see the warning status and its reason.no
method_not_allowed405The HTTP method is not supported here.Use the method in the Allow header.no
not_acceptable406CSV was requested from an endpoint that returns a single object.Request JSON, or use a list endpoint.no
key_limit_reached409Too many active keys for this email from your network (409), or too many keys created from your network in 24 hours (429).Revoke an unused key, or wait.no
payload_too_large413The request body is larger than 4 KB.Send a smaller body.no
unsupported_media_type415The body is not application/json.Set Content-Type: application/json.no
rate_limited429Too many requests in the current minute for your tier.Wait for Retry-After seconds, then slow down. Use exponential backoff and caching.yes
quota_exceeded429The daily quota of the key is used up.Wait until 00:00 UTC (Retry-After). Cache responses; the data changes weekly.yes
internal_error500Unexpected error on our side.Retry with backoff. If it persists, report the request_id.yes
upstream_unavailable502A dataset or the verification service could not be reached.Retry with backoff after a few seconds.yes
not_configured503A feature (key issuance) is not enabled on this deployment.Use anonymous access, or try again later.yes

#Retrying

Retry only codes marked yes, with exponential backoff and jitter, and honour Retry-After. Never retry 400, 401, 403 or 404 unchanged: the result will be the same.

SENTINARA, a nonprofit organisation of Digivana Group · Data CC BY 4.0 · Terms · Security · OpenAPI