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. |
| 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.
rate_limited is in the spec’s list of codes, but the API doesn’t send it today: see below.
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:
- 429 Too Many Requests: the rate limit below.
- 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”Today there’s one limit: a throttle on the whole production API, shared by every caller, of 50 requests per second with bursts up to 100. Past it, requests get 429 until the rate drops. There’s no per-key or per-plan limit, no daily quota, and no rate-limit headers.
Per-plan rate limits are planned. When they arrive, they’ll be documented here and on your plan.
Because the limit is shared, be a good neighbour:
- Retry
429and5xxwith 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.