Errors and limits
A failed request gets a standard HTTP status and a JSON body that says what went wrong. When Rover limits a request, it answers 429 and tells you how long to wait.
Error bodies
Most routes answer with an error sentence, sometimes with fields that help you act on it:
{ "error": "that run already succeeded", "phase": "succeeded" }The record reads answer in their own shape. error is one of four codes, and paths names the arguments that failed. Rover never echoes the values you sent.
{ "ok": false, "tool": "changes", "error": "invalid_arguments", "paths": ["since"] }The codes are invalid_arguments (400), forbidden (403), unknown_tool (404) and unavailable (503).
Status codes
| Status | Means | What to do |
|---|---|---|
400 | The request failed validation. | Fix the field named in error. |
401 | No token, or one that is unknown, expired or revoked. An OAuth token used outside /v1/mcp gets this too. | Send a valid token. See Authentication. |
402 | payment_required: this team needs billing set up before it can start runs. | Set up billing at the URL in next. |
403 | The token is valid but may not do this. A viewer trying to write, or an OAuth app trying to create a token, for example. | Use a token with the right role. |
404 | Not found. Rover gives the same answer for something that exists but belongs to another team. | Check the id and the token's team. |
409 | The request conflicts with the current state, such as cancelling a run that already ended. | Read the resource and decide again. |
429 | A limit was reached. | Wait the number of seconds in Retry-After, then retry. |
503 | A store Rover depends on is unreachable. | Retry with backoff. Honor Retry-After when it is present. |
Rate limits
Every 429 carries a Retry-After header in seconds. These are the limits a developer is most likely to meet:
| error | When | Retry-After |
|---|---|---|
queue_full | Too many runs are waiting on that lane. The body adds lane, waitingAhead and limit. | 60 |
explore_limit | A team without billing has started its daily allowance of runs on new portals (five by default). Runs on portals Rover already knows are not limited. | 3600 |
slow_down | An OAuth client asked for tokens, or registered, too often. | 60 for tokens, 600 for registration |
Sign-up and invitations have limits of their own and answer the same way.
Retry-After: 60
{ "error": "queue_full", "lane": "explore", "waitingAhead": 40, "limit": 40 }Retrying safely
Reads are safe to retry. For POST /v1/runs, send your own requestId. A retry with the same id within 24 hours returns the run the first request started instead of a new one. Rover also folds a second request for a portal and customer that already has a run queued or running into that run, and answers with "duplicate": true and its id.