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 10POST /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 a4xx, 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: retry500,502,503and504. Wait forRetry-Afterwhen present, otherwise back off exponentially.POST: retry429and503afterRetry-After. If a503has none, back off exponentially. A retry after500,502or504can create a second analysis and use a second credit.- Do not retry other
4xxerrors unchanged. Fix the request first. POST /analysesis 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 eachanalysis_idyou receive.
Request IDs
Every API response carries anX-Request-Id header, and every error repeats it as request_id. Include it when you contact support@getriskdata.com.