Errors and limits
The Dio API's error shape, what each status code means and what to do about it, per-key rate limits, and how timestamps and ids are written.
The error shape
An error is JSON with a conventional status code and a detail sentence written for a person:
{"detail": "job_126f809ebbe2 has no published plan. A link that opens onto a draft rubric is an interview nobody can defend afterwards."}
Log the status and the detail. Where a person will act on the error, show them the detail as it is: it says what went wrong and, where there is one, what to do next.
Status codes
| Status | Means | What to do |
|---|---|---|
400 |
A value the route can't use, a missing Idempotency-Key, or a field or parameter your workspace can't use yet. detail names it. |
Fix the request. Don't retry it unchanged. |
401 |
No key, or a key that does not exist or was revoked. The last two get the same answer. | Check the key. See Authentication. |
402 |
The workspace has no card on file. detail is "Add a card to this workspace to start using Dio." Every call answers this until a card is added in the app. |
Add a card to the workspace in Dio, then retry. |
403 |
The caller may not do this. detail says why; for a role, it names whose role it is. |
Use a key that may, or ask an admin. |
404 |
No such record in this workspace, or a route your workspace doesn't have yet. | Check the id. A record in another workspace is also 404, never 403, so an id from elsewhere is not confirmed to exist. |
409 |
The record isn't in a state for this: a role with no published plan, a workspace that can't start new interviews, a scorecard not ready yet, or an idempotent request still in flight. | Read detail. Some resolve with time (a scorecard); others need a person (a role to publish). |
422 |
A value that does not parse, or an Idempotency-Key reused with a different request. |
Fix the request. See below and Idempotency. |
429 |
Past the key's rate limit. | Wait for the seconds in the Retry-After header, then retry. |
500 |
An error on Dio's side. The body carries a request_id. |
Retry with the same Idempotency-Key after a pause. Quote the request_id if you report it. |
A 500 looks like this:
{"detail": "internal error", "request_id": "3b9f2c1e8a7d"}
Values that do not parse
When a value can't be read at all, such as a limit that is not a whole number or a body that is not JSON, the answer is 422 and detail is a list, one entry per value. The value you sent is never quoted back.
{
"detail": [
{"loc": ["query", "limit"], "msg": "Input should be a valid integer, unable to parse string as an integer", "type": "int_parsing"}
]
}
The other 422, an Idempotency-Key reused with a different request, has a plain sentence as its detail. Read detail as either a string or a list.
Rate limits
Each key has its own limit, so one busy integration can't slow down another.
- The default is 120 requests a minute. An admin sets a key's limit, from 1 to 10,000, when minting it.
- The limit is counted in a fixed 60-second window that opens with the first request after the previous window ended.
- The request past the limit answers
429, withRetry-Aftergiving the seconds until the window ends. After that, the whole allowance is back.
HTTP/1.1 429 Too Many Requests
Retry-After: 23
Content-Type: application/json
{"detail": "rate limit of 120 requests/minute exceeded"}
If you routinely hit the limit, mint a key with a higher one and revoke the old key; a key's limit is set when it is minted.
Timestamps
Every time the API writes, in a route's answer and in every webhook, is ISO-8601 in UTC with the offset written out:
{"created_at": "2026-10-19T14:02:11.483000+00:00"}
The fraction of a second is left out when it is zero, as in 2026-10-19T14:02:11+00:00. Until October 2026, route answers wrote the same instant ending in Z; read times with a parser that accepts both.
A parameter that takes a time, such as since, reads both spellings. In a query string, send the offset's + as %2B.
Ids
Record ids are a prefix and twelve hexadecimal characters:
| Prefix | Record |
|---|---|
job_ |
A role |
inv_ |
An interview link |
sess_ |
An interview |
evt_ |
An event |
wh_ |
A webhook endpoint |
whd_ |
A webhook delivery |
key_ |
An API key |
Treat every id as an opaque string: store it whole, compare it whole, and don't build logic on its shape. An id is never reused.
Ask for JSON
Don't send Accept: text/html. With it, an error comes back as an HTML page meant for a browser instead of JSON. Send Accept: application/json, or no Accept header at all.