Arbituro docs

Errors and limits

How the API says no and why, how many calls it takes, when a call is safe to repeat, and what it records about every call.

Status codes

200 OK
A read worked.
201 Created
A write was done.
400 Bad Request
The request can’t be done as written, such as a note with nothing in it or a status the project doesn’t have.
401 Unauthorized
No key or token, one the API doesn’t take, or a key Arbituro couldn’t check just then. See Authentication.
403 Forbidden
You can read the project but not change its work.
404 Not Found
A project you can’t open, or a job, criterion or pull request that isn’t there.
409 Conflict
The job already has what you asked for, or can’t take it, such as a pull request that is already linked. Also a project key in more than one of your workspaces. See A project key in two of your workspaces.
429 Too Many Requests
More than 120 calls in a minute. See Rate limit.
503 Service Unavailable
GitHub didn’t respond, so no pull request was linked. Try again shortly.

Error messages

An error’s body says why, in a sentence.

Response: 403 Forbidden
{
  "message": "You can read this project but not write to it, so this was not done."
}
  • Have your program act on the status code. The message is written for people, so show it to whoever runs the program.
  • Claude and other MCP clients are given the same sentence for the same error. The one exception is a project key in two of your workspaces, where the sentence says what to do through the API.
  • A 401 and a 429 have no body.
  • A body that isn’t JSON, or is missing a field the call needs, gets 400 and a standard problem document (RFC 9457) in place of a sentence. Its errors name what is wrong.

Projects you can’t open

Every project you can’t open gets the same 404. That covers one in another workspace, one you aren’t a member of, and a key that matches no project.

Response: 404 Not Found
{
  "message": "No project with that key is open to you."
}

So nobody can find out which projects exist by trying keys. If you expected to reach the project, check its key and that you are a member of it. An API key reaches only the workspace it was made in, so a project in another of your workspaces gets this 404 too.

A project key in two of your workspaces

Two workspaces can each have a project with the same key. If you can open both, an OAuth token can’t tell which one a call means, so the call gets 409. The message names the workspaces. Use an API key made in the workspace you mean. API keys never get this error, because each works in one workspace only.

Response: 409 Conflict
{
  "message": "WEB is a project in more than one of your workspaces (acme, acme-labs), and this door cannot tell which you mean. Use an API key made in that workspace instead: a key opens its own workspace only."
}

Rate limit

Each person can make 120 calls a minute through the API, counted across all their keys and tokens. Calls Claude makes over MCP are counted separately.

Over the limit, calls get 429 for the rest of that minute. The response has no Retry-After header, so wait a minute before trying again. The clients on Examples wait and try again for you.

Trying again

  • Reads are safe to repeat.
  • A write that got 503 did nothing, so it is safe to repeat.
  • If a write gets no response at all, such as when the connection drops, check before you repeat it. Read the job’s notes before posting a note again, for example.
  • Some writes are safe to repeat because Arbituro won’t do them twice. A second proposal gets 409 while the first one waits. A pull request that is already on the job gets 409. A result with the same text as the one already filed gets 409, and nothing is filed.

What the audit log records

Every call made in a workspace is recorded in its audit log, including calls that got an error.

  • Each is recorded as api. followed by the operation’s name, such as api.get_job or api.post_note.
  • The record names the person and your program’s User-Agent. It also holds the key’s name and ID when a key was used, the project and job keys, and whether the call got an error.
  • A linked pull request is also recorded as api.pull_request_linked, which names the pull request.
  • A filed result is also recorded as api.result_filed, with the result’s title and version.
  • Making and revoking a key are recorded as api_key.created and api_key.revoked.

The User-Agent is whatever your program says it is, so it doesn’t prove which program made a call. Owners and admins read and export the audit log. See The audit log.

Something missing or wrong? Email support@arbituro.com.