Rate limits and errors
Every error has an HTTP status, a stable code and a message you can show to people.
The error format#
{
"error": {
"code": "forbidden",
"message": "This key can't do that. It needs the ai scope."
}
}Match on code, which never changes. The message is written for people and may follow their language.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid | The request is missing something or has a wrong value. |
| 401 | unauthorized | No valid key or token: missing, revoked or expired. |
| 402 | quota_exceeded | The person’s plan has no transcription minutes, imports or AI requests left this month. |
| 403 | forbidden | Not allowed: a missing scope, a role that can’t do it, or a workspace policy (with policy). |
| 403 | not_member | X-Workspace-Id names a workspace other than the key’s or token’s. |
| 404 | not_found | It doesn’t exist, or this credential can’t see it. |
| 409 | conflict | It changed since you read it, or it already exists. Recordings come back with the current version. |
| 413 | too_large | The upload or body is too big. |
| 429 | rate_limited | Too many requests. Wait for Retry-After. |
| 502 | upstream | A provider Nullnote relies on didn’t answer. Try again. |
| 503 | not_configured | The feature isn’t set up on this server yet. |
Policy errors#
When an admin has turned something off, the error says which policy:
{ "error": { "code": "forbidden", "policy": "integrations.api",
"message": "Your admin turned off the API for this workspace." } }Rate limits#
- Each key, and each OAuth grant, can make 120 requests a minute.
- Past that, the API answers
429 rate_limitedwith aRetry-Afterheader, in seconds. - AI requests also count against the person’s plan each month, as they do in the apps. Running out gives
402 quota_exceeded.
Retrying well#
- Retry
429,502and network errors with exponential backoff and a little jitter. Don’t retry other4xxerrors unchanged. - Creating recordings, folders, bookmarks and photos uses IDs you choose, so a retried create returns the same record instead of a duplicate.
- On
409 conflictfor a recording edit, take the recording from the response, apply your change to it, and send it again with itsversionasbaseVersion.