> ## Documentation Index
> Fetch the complete documentation index at: https://docs.burokku.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Limits and errors

> Calls per day and per minute, rate-limit headers, what comes back over a limit, and the errors the connector and the REST API return.

## Limits

The connector and the REST API share one counter per user. A call through either door counts once.

| | Calls a day | Calls a minute |
| - | - | - |
| Without an account | 50 | 30 |
| Free | 100 | 30 |
| Pro | 1,000 | 30 |
| Max | 3,000 | 30 |
| Team | 3,000 | 30 |
| Enterprise | 10,000 | 30 |

* **The day** is the UTC day. The count resets at 00:00 UTC.
* **Only calls that run count.** A call that gets past the checks counts once, whether it then succeeds or fails. A call refused before it runs doesn't count: over the minute's limit or the read budget, over the day's limit, on a locked account, or while the connector is switched off. The count is exact, so `X-RateLimit-Remaining` never says more calls are left than there are.
* **Reads also share a budget** of 30 a minute with your own use of the Burokku app.
* **Calls don't use your Burokku AI answers.** The AI app or your code does the thinking.
* **Your plan's other limits still apply:** accounts, price alerts, and how often Burokku reads your accounts. Plans and what they include are on [burokku.app/pricing](https://burokku.app/pricing).
* **Reads never force a refresh.** Calling more often doesn't make figures newer: each answer is Burokku's last read, with `read_at` and `refreshing`.

### Rate-limit headers

Answers from the REST API's operations carry these headers, successes and errors alike, both kinds of `429` included. They always describe the daily quota, never the minute's limit or the read budget.

| Header | Meaning |
| - | - |
| `X-RateLimit-Limit` | Your plan's calls a day |
| `X-RateLimit-Remaining` | Calls left today, after this call if it counted |
| `X-RateLimit-Reset` | When the count starts again: the end of the UTC day, in Unix epoch seconds |

A `401` has none of them, and neither do answers about the request itself: an unknown path, the wrong method, a body that's too large or isn't JSON, or a write without permission. Every `429` also has `Retry-After`. Browsers can read all four headers through CORS.

### Over a limit

The REST API answers `429 Too Many Requests` with a `Retry-After` header, in seconds, and one of these bodies. Wait that long before calling again: 60 seconds for `rate-limited`, and until the UTC day ends for `daily-limit`.

```json theme={null}
{
  "error": {
    "code": "rate-limited",
    "message": "Too many calls in a minute. Try again in a minute."
  }
}
```

```json theme={null}
{
  "error": {
    "code": "daily-limit",
    "message": "This account has used today’s 100 calls from AI apps and the API; they start again at midnight UTC. Plans with more are at https://burokku.app/pricing"
  }
}
```

The number is your plan's calls a day. When reads go over their shared budget, the code is also `rate-limited`, with `Retry-After: 60`, and the message is "Too many requests. Try again in a minute." A refused call isn't counted, and the `X-RateLimit-*` headers on a `rate-limited` answer still show what's left of the day.

In an AI app, the tool's answer is the same sentence, in the user's language.

## Errors

REST errors are JSON:

```json theme={null}
{
  "error": {
    "code": "not-found",
    "message": "There’s no account named “Ledger”. Your accounts: Main wallet, Binance."
  }
}
```

Branch on `code`. `message` says what happened and what to do; show it to a person, but don't parse it. It's in the language the `Accept-Language` header asks for, among Burokku's seven, and in English otherwise.

| Status | Code | When |
| - | - | - |
| 400 | `bad-input` | A value is missing, of the wrong type or out of range. The message names each field. |
| 400 | `bad-json` | The body of a `POST` isn't JSON. |
| 400 | `bad-cursor` | A `cursor` Burokku didn't give. Leave it out to start from the first page. |
| 400 | `unknown-asset` | `create_price_alert`: Burokku doesn't track that token's price. |
| 400 | `not-address` | `add_watch_address`: not an address Burokku can watch. |
| 400 | `secret` | `add_watch_address`: it looks like a private key or recovery phrase. It's refused and never kept. |
| 401 | `unauthorized` | No token. Send an API key or an access token as a Bearer token in the `Authorization` header. |
| 401 | `invalid-token` | A key or token that isn't valid: made up, expired, revoked, or issued for the MCP server. |
| 403 | `account-required` | The connection has no Burokku account: an alert, or a fourth address. The message has a link to sign in ([watch-only mode](https://docs.burokku.app/ai-apps/watch-only.md)). |
| 403 | `plan-limit` | The plan's price alerts are used up. |
| 403 | `insufficient-scope` | A write with a key or token that can only read. For an OAuth token, the `WWW-Authenticate` header also asks for `portfolio.write`, so the app can ask the user again ([Scopes](https://docs.burokku.app/developers/authentication.md#scopes)). |
| 404 | `not-found` | No account or bundle by that name or id; the message lists the ones there are. Or no such path in the API. |
| 405 | `method-not-allowed` | Reads are `GET` and writes are `POST`. |
| 413 | `too-large` | A body over 10 KB. |
| 423 | `LOCKED` | The account is locked. See [Locked accounts](#locked-accounts). |
| 429 | `rate-limited` | Over the minute's limit. Wait for `Retry-After`; see [Over a limit](#over-a-limit). |
| 429 | `daily-limit` | Over the day's limit. Wait for `Retry-After`. |
| 500 | `server-error` | Something went wrong on Burokku's side. Try again in a minute. |
| 503 | `off` | The connector and the REST API are switched off for now. Try again later. |
| 503 | `server-error` | Burokku can't check tokens right now. Try again in a minute. |

A `401` keeps its `WWW-Authenticate` header beside the body. OAuth clients go by the header to find where to sign in ([Authentication](https://docs.burokku.app/developers/authentication.md#discovery)).

A 400 or 403 without a code of its own comes as `bad-request` or `forbidden`. New codes may be added. Treat a code you don't know by its status.

In the connector, an error is the tool's answer with `isError: true`: its text is the message, in the user's language, and `_meta.code` is the code. A write without `portfolio.write` gets a `403` with a `WWW-Authenticate` challenge for it, before the tool runs. A call without a valid token gets a `401` with the `WWW-Authenticate` header and a JSON body in English: `{"error": "unauthorized"}` with no token, or `{"error": "invalid_token"}` for one that isn't valid, each with an `error_description`.

### Locked accounts

When you lock your account (**Settings → Security**), every call through the connector and the REST API is refused until it's unlocked, before anything is counted. The REST API answers `423` with the code `LOCKED`, and the connector answers with a tool error whose `_meta.code` is `LOCKED`. The message is "Your account is locked. Security changes are on hold for 24 hours from when it was locked." A locked account also can't approve a new connection or make an API key.

## Pagination

`holdings` and `activity` return pages. Pass the answer's `next_cursor` as `cursor` to get the next page; it's `null` on the last one. Cursors are opaque: don't build or change them.

`positions` lists at most 40 of each kind and says in `more` how many it left out. Narrow it with `kind`, `account` or `protocol`.

## Versioning

This is v1, and v1 only grows: new fields, new operations and new error codes, never a removed or renamed one. Ignore fields you don't know. A breaking change would be v2, beside v1. Changes are listed in the [changelog](https://docs.burokku.app/developers/changelog.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.