Skip to main content

Limits

The connector and the REST API share one counter per user. A call through either door counts once.
  • 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.
  • 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. 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.
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:
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. A 401 keeps its WWW-Authenticate header beside the body. OAuth clients go by the header to find where to sign in (Authentication). 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.