API error codes
What every error from the API and the MCP server means, and what to do about it.
Every error has the same shape and a stable code your code can rely on. This page lists them all, with what to do next and which ones are safe to retry.
What an error looks like
Errors come back as type (RFC 9457) with an HTTP status that matches:
Example
field is the stable part. Write your error handling around it.
field is written for people, says what to do next, and its wording can change.
field matches the header header that every response carries, errors or not. Quote it when you contact us.
field links to that code's row on this page.
Validation errors add field, with a message for each field that failed:
Validation error
Every code
Codes stay the same for the life of v1. New ones may be added, so treat a code you don't know by its HTTP status.
Status
Code
Meaning
What to do
No API key was sent.
Send the key in the Authorization header as Bearer obk_...
The key doesn't exist, or it's the Zapier connection's key.
Check you copied the whole key. The Zapier key only works in Zapier, so create an API key.
The key passed its expiry date.
Ask a manager to rotate it and use the new secret.
This is an old secret, and its time after rotation ran out.
Use the key's new secret.
A manager revoked the key.
Ask a manager for a new key.
The key's owner left or is no longer a manager.
Ask another manager to take the key over. It works again right away.
The key isn't allowed to do this. The scope field names what's missing.
Ask a manager to add the scope, or use a key that has it.
The organization's plan has lapsed, so the API is paused.
A manager can sort it out in Settings, Billing.
The plan's captures for this period are used up, so no new draft can start.
Wait for the next period or upgrade the plan. The limit field shows the cap.
The plan's AI jobs for today are used up.
Try again tomorrow or upgrade the plan.
Another plan limit or feature stops this request.
Read the detail. A manager can upgrade the plan.
The key can't do this, for a reason other than scopes.
Read the detail. Usually the request has to be done in OpsBrain.
Nothing with that id exists in this organization.
Check the id, and that it belongs to the key's organization.
The endpoint exists but not with this HTTP method.
Check the method in the endpoint list.
A request with the same Idempotency-Key is still running.
Wait a moment and send it again with the same key.
Some fields aren't valid. The errors field says which and why.
Fix those fields and send it again. The same Idempotency-Key is fine.
This Idempotency-Key was already used with a different body in the last 24 hours.
Use a new key for a new request.
The key or the organization made too many requests.
Wait the number of seconds in Retry-After, then slow down.
Another request error.
Read the detail and the HTTP status.
Something broke on our side.
Retry with backoff. If it keeps happening, contact us with the request id.
When to retry
status: wait the seconds in header, then retry.
status: the same request is still running. Retry after a short wait.
Server errors and timeouts: retry with growing waits (1, 2, 4, 8 seconds). Send POSTs with the same header so a retry can't queue a run twice.
Any other 4xx: don't retry as is. Something in the request or the key needs to change first.
The MCP server uses the same codes
When a tool fails, the error text starts with one of these codes, like not_found or capture_limit_reached, so an assistant can explain what went wrong.