API reference

Errors and limits

HTTP status codes, error bodies, rate limits and daily quotas.

Status codes#

StatusMeaningWhat to do
200SuccessUse overallRecommendation
400Invalid requestFix the body; errors lists the problems
401API key unknown or revokedCheck the key
403API key missing or not recognisedSend x-api-key
404Unknown scenarioIdCheck the ID
429Rate limit or daily quota reachedRetry with backoff; quota resets daily
5xxServer errorRetry, then fail open

Errors have a JSON body:

{ "message": "Validation error", "errors": ["Missing required fields: userData"] }

Limits#

PlanChecks per day
Free100
Startup500
Growth2,000
EnterpriseCustom

Daily quotas reset at midnight UTC. Bursts are rate-limited per key; the SDK retries 429 and 5xx responses with backoff.