API errors and limits: one envelope, every number
Every failure uses one envelope with a machine code and a message. Captured 400, 401, 403, 404, 409 and 429 responses, and every enforced limit in a table.
Updated November 2026
Every failure comes back in the same envelope, an error object with a
machine-readable code and a message for people, under a status that agrees
with the code. Branch on the status and the code. The message names the field
or record at fault when Tabla knows which one it is, but its wording is for
people and is not part of the interface.
The envelope, by status
Each of these was captured from a running Tabla, not written by hand:
400 bad_request: a malformed body, an unknown field, a value a field
can't hold, or a limit reached:
{"error":{"code":"bad_request","message":"Operator \"contains\" is not allowed on field \"Price\" (number). Allowed: is, is_not, greater, greater_or_equal, less, less_or_equal, empty, not_empty."}}
401 unauthorized: no key, or a key that isn't recognized, whether it
was mistyped or revoked. Every cause gets the same message:
{"error":{"code":"unauthorized","message":"Missing or invalid API key. Expected: Bearer <id>.<secret>."}}
403 forbidden: the credential is valid and the thing exists, but you
aren't allowed to do this to it. The message names the cause:
{"error":{"code":"forbidden","message":"This API key is read-only."}}
Other 403s name their cause the same way. You get
Viewers can't make changes. when the key's person is only a viewer on
that database, Only an owner can do that. for the owner-level acts, and
An API key can't delete a database — do that from the app. (or one of the
messages like it) for the acts no key may perform: deleting a database,
making someone an owner, managing a team account,
and moving, transferring or accepting a database. Don't retry a 403. Read
it, because unlike a 429 it won't clear on its own. If the message is the
read-only one, fix it on the key itself in API keys… by clicking the line
under the key's name. See API keys.
404 not_found: the id doesn't exist, or it belongs to a database
your key's person isn't a member of, or to one your key was narrowed away
from. When you're creating a database, it can also mean the account_id
names an account you're not in. Each of these is the
same 404 not_found, never a 403:
{"error":{"code":"not_found","message":"Record rec_000000000000 not found."}}
409 conflict: the one documented exception to the flat envelope. A
PATCH carrying a stale if_updated_at is refused, and the error includes a
records array holding each contested record as it is now, so an
out-of-date client can catch up without a second request:
{"error": {"code": "conflict",
"message": "1 record changed since it was loaded.",
"records": [{"id": "rec_ugg23f5f7uru",
"updated_at": "2026-08-09T23:06:15.345Z",
"fields": {"Name": "ORD-1056", "Status": "Preparing", "Total": 43}}]}}
(Trimmed here. The records come back whole.)
One other 409 carries no records at all. You get it when a record write
arrives while a date field's Include time is being switched. The write's
dates were read for the field's old shape (a day where there is now a date
and time, or the reverse), so nothing was written, and the message names the
field: "Due" changed while this was being saved — try again. Send the same
request again, and it will be read against the field as it is now.
429 rate_limited: you're over a limit, and the wait is in a header:
HTTP/1.1 429 Too Many Requests
retry-after: 3
x-ratelimit-limit: 600
x-ratelimit-remaining: 0
{"error":{"code":"rate_limited","message":"Too many requests. Retry in about 3s."}}
Retry-After is the number of whole seconds until the oldest counted request
leaves the window. Wait that long and retry, and the retry fits. The limits
are sliding windows, so traffic that backs off resumes gradually and doesn't
all arrive at once at the top of the minute. A 500 (internal) only ever
says "Something went wrong." We log the detail on the server and never
return it.
You can see a 429 coming before it arrives. Every response to a request whose
key checks out, successes included and not only refusals, has
X-RateLimit-Limit (600, that key's budget for the minute) and
X-RateLimit-Remaining. Watch the second one and slow down before you're
refused:
x-ratelimit-limit: 600
x-ratelimit-remaining: 587
Only the per-key budget appears in those headers. The two downloads (the database zip and a view's CSV) aren't charged to it, so they carry neither header. The per-address limits in the table below are a backstop against runaway traffic. Everyone behind one address shares them, and they aren't a budget to plan against.
Every enforced limit
| Limit | Value |
|---|---|
| Records per write batch | 100, all-or-nothing. Over it: Batches are capped at 100 records; got 101. |
page_size on a read |
1 to 1,000, default 100 |
| Requests per API key | 600 a minute, charged once the secret is verified |
| Requests per address, no credential | 60 a minute |
| Requests per address, with a bearer | 3,000 a minute, counted before the key is checked and shared by every key behind that address |
| Attachment uploads | 60 a minute per person, refused as a 400 with the wait in its message |
| One attachment file | 100 MB |
| Attachment storage per account | 100 GB across all its databases |
| Import through the API (one CSV or Excel file) | 20 MB / 50,000 rows |
| Import in the app, CSV or TSV | no limit (the browser streams it) |
| Records per database | 1,000,000 |
| Records per account | 2,000,000 across all its databases |
| Databases per account | 10 |
| Tables per database | 200 |
| Tables per account | 300 across all its databases |
| Fields per table | 500 |
The last five are structural sanity caps, set far above legitimate use, and no meter shows how close you are. Reaching any ceiling is a 400 that names it. The per-account rows are one person's limits, shared by every account that uses them, and limits explains whose limits a team account uses. Rate-limit counters are kept in the running application's memory and reset if it restarts, because they exist to stop abuse. Deleted records stay in the trash for 7 days before they're purged.
The stability promise
/docs/api sets out the promise. Ids are opaque and permanent
(db_, tbl_, fld_, viw_, rec_, att_, whk_ followed by twelve
characters), and a rename changes a name, never an id. So anything automated
should refer to tables and fields by id and ask for key_by=id on reads. The
path carries no version number. Response objects may gain new keys over
time. A client must ignore keys it doesn't recognize and must not depend on
key order. Removing a key, changing a value's type or reusing an error code
for something else counts as a break. Shipped changes are listed newest first
at /changelog.
In practice, branch on codes (writing records
shows where each comes up), honor Retry-After (keys
covers the per-key budget), and key long-lived integrations by id
(names and ids).