Skip to main content
Every error the API sends is application/problem+json (RFC 9457). Branch on code, which never changes within v1. title and detail are for people and may change.
errors names each field that failed validation. It never repeats the value you sent. Our edge proxy can answer 413 (request body over 10 MiB), 408, 502 or 504 itself. These answers have no problem body, no X-Request-Id and no X-API-Version.

Error codes

Rate limits

Each API key can send up to 10 POST /analyses requests per second. Your organization’s limit can differ; ask support. Every authenticated POST counts, including one later refused as invalid. Above the limit, the API answers 429 too_many_requests with Retry-After: 1, and the refused request uses no credit. Reading analyses and downloading the OpenAPI contract are not limited.

Credits

Each new analysis uses one credit from each credit limit set on the key, its organization or a parent organization. Polling and reading analyses are free. A request refused with a 4xx, 429 or 503 uses no credit. A 500, 502 or 504 on POST may still have created an analysis and used a credit.

Retrying safely

  • GET: retry 500, 502, 503 and 504. Wait for Retry-After when present, otherwise back off exponentially.
  • POST: retry 429 and 503 after Retry-After. If a 503 has none, back off exponentially. A retry after 500, 502 or 504 can create a second analysis and use a second credit.
  • Do not retry other 4xx errors unchanged. Fix the request first.
  • POST /analyses is not idempotent: each accepted request creates a new analysis and uses a credit. A retry after a timeout can create a second analysis, so keep each analysis_id you receive.

Request IDs

Every API response carries an X-Request-Id header, and every error repeats it as request_id. Include it when you contact support@getriskdata.com.

Response headers