Skip to content

Errors

Errors use RFC 9457 Problem Details with the media type application/problem+json.

{
"type": "https://argamin.ai/docs/errors/out_of_coverage",
"title": "Out of coverage",
"status": 422,
"code": "OUT_OF_COVERAGE",
"request_id": "req_01J...",
"errors": [
{ "pointer": "/jobs/2/location", "detail": "outside coverage" }
]
}
  • code is stable. Match on it, not on title.
  • request_id identifies the call. Include it when you write to support.
  • errors[] points to the offending field with a JSON Pointer.
Code HTTP status What to do
INVALID_REQUEST 400 Fix the field named in errors[]
UNAUTHENTICATED 401 Check the key. See Authentication
KEY_REVOKED 401 The key was revoked. Create or copy a new key in the dashboard
ACCOUNT_SUSPENDED - Write to support with the request_id
QUOTA_EXHAUSTED 402 Free quota used with no prepaid balance, or a test key used its daily calls
SPEND_CAP_REACHED 402 Raise the monthly spend cap in the dashboard
NOT_FOUND 404 The resource (for example a job) does not exist
IDEMPOTENCY_CONFLICT 409 Same Idempotency-Key with a different body, or the first call is still running
LIMIT_EXCEEDED 413 Body too large or too many stops, vehicles, elements or points. Split the request or use /optimize/jobs
OUT_OF_COVERAGE 422 A point is outside the loaded regions, or the points span more than one region. Check coverage
RATE_LIMITED 429 Too many requests per minute or concurrent jobs. Wait for the Retry-After header
INTERNAL_ERROR 5xx An error on our side. Not billed; retry
ENGINE_UNAVAILABLE 503 The routing engine is down. Not billed; retry after Retry-After
SERVICE_PAUSED 503 Service paused by the operator. Retry later
TIMEOUT 504 The engine did not answer within 300 seconds. Not billed; use an async job

Only a successful answer from the solver is billed. Input errors (4xx), errors on our side (5xx) and timeouts are not billed. A retry with the same Idempotency-Key returns the stored answer and is not billed again.