Errors and rate limits
The error format
Section titled “The error format”Errors from the API are RFC 9457 problem objects, with Content-Type: application/problem+json:
{ "type": "about:blank", "title": "Not Found", "status": 404, "detail": "No version claude-sonnet-9.", "code": "not_found"}| Field | Meaning |
|---|---|
code |
The error, for your code to act on. Branch on this, not on title or detail. |
status |
The HTTP status, the same as the response’s. |
title |
The status’s standard name. |
detail |
What went wrong with this request, in plain language: which parameter, which slug. Written for people, and may change. Absent when there’s nothing to add. |
type |
Always about:blank for now. |
| Status | code |
When | What to do |
|---|---|---|---|
| 400 | invalid_parameter |
A bad parameter or body: limit outside 1–200, a malformed cursor or one from other filters, an unknown event type or status, retires_after later than retires_before, more than 100 models. |
Fix the request. detail names the parameter. Don’t retry it unchanged. |
| 401 | unauthorized |
No API key, or one that’s malformed, unknown or revoked. | Check the key and the Authorization: Bearer header. See API keys and auth. |
| 403 | forbidden |
Your account has no active plan, or your plan doesn’t include what you asked for: a filter on a field group it lacks, /v1/availability without availability, webhooks without them. |
Ask your Model Atlas contact about your plan. See Plans and field groups. |
| 404 | not_found |
An unknown slug or ID, an entry no source reports anymore, another account’s resource, or an event outside your history window. | Check the slug: /v1/versions?models=… finds a version by the name you use. |
| 409 | conflict |
The request clashes with the current state: at a plan limit (keys, endpoints, subscriptions), rotating a webhook secret while the previous one is still valid, redelivering a delivery that’s already queued. | Read detail: it says what to do first. |
| 429 | rate_limited |
Over your plan’s requests a minute, or the API-wide throttle. | Wait Retry-After seconds, then retry with backoff. See Rate limits. |
| 500 | internal |
Something failed on our side. | Retry with backoff. If it keeps happening, tell your Model Atlas contact. |
| 501 | not_implemented |
A planned endpoint that isn’t built yet (inventory, /v1/subscription). |
Don’t call it yet. |
New codes can be added. Treat a code you don’t know by its HTTP status.
Errors from the gateway
Section titled “Errors from the gateway”A few errors come from the API gateway in front of the API, not from the API itself. Their body isn’t a problem object and has no code, so check the HTTP status first:
- 401 on portal endpoints (
/v1/account,/v1/api-keys, webhooks): a missing or expired portal sign-in. - 5xx when the API can’t answer in time.
Rate limits
Section titled “Rate limits”Two limits apply. Both answer 429 with code: rate_limited and a Retry-After header, in seconds:
HTTP/1.1 429 Too Many RequestsContent-Type: application/problem+jsonRetry-After: 12
{ "type": "about:blank", "title": "Too Many Requests", "status": 429, "detail": "Your plan allows 60 requests a minute, across your account's keys. Retry after 12 s.", "code": "rate_limited"}- Your plan’s limit: requests a minute to the catalog and events, counted per account (all its keys together) in one-minute windows.
entitlements.requests_per_minuteonGET /v1/accountshows yours. Portal requests (signed in: your account, keys and webhooks) and public ones (/v1/sources,/v1/health) aren’t counted in it. Past it, every request gets429until the minute ends, andRetry-Aftersays how long that is. - The API-wide throttle: a ceiling on the whole production API, shared by every caller, of 50 requests per second with bursts up to 100. Past it,
429withRetry-After: 1. It also covers portal endpoints and/v1/health.
There’s no daily quota.
Stay under them, and be a good neighbour:
- Retry
429afterRetry-After, and5xxwith exponential backoff and jitter: wait about 1 second, then 2, 4, 8, with some randomness, up to a few attempts. - Don’t retry
4xxother than429: the same request gets the same answer. - Fetch in bulk:
limit=200,models=with up to 100 names,slug=with up to 100 offerings, rather than one request per item. - Poll events, don’t re-read the catalog.
GET /v1/events?after=…says what changed since your last call, and webhooks push it to you. Sources load once a day, so polling more often than every few minutes gains nothing.