- Qubitara Synapse
- Developer guide
- Errors, limits and rate limits
Errors, limits and rate limits
The error envelope#
Every error is JSON with an HTTP status, a short error, a human message, and — where a program should branch on it — a stable code:
{
"statusCode": 402,
"error": "Payment Required",
"code": "PLAN_LIMIT_REACHED",
"message": "The Free plan includes 50 pages and this workspace has reached it. Archive pages or choose a larger plan."
}Validation failures (400) list what was wrong in message.
Statuses#
Status | Meaning |
|---|---|
400 | The request was malformed or failed validation |
401 | No credential, or an expired access token — refresh or sign in again |
402 | The plan does not include this ( |
403 | The credential may not do this — a missing role, an API key without the scope, an unconfirmed organization |
404 | Not found or not yours; the API does not distinguish |
409 | A conflict: the page changed since you read it ( |
429 | Too many requests — wait for |
5xx | A fault on our side; safe to retry with backoff |
Codes worth handling#
Code | When |
|---|---|
| Your |
| Somebody locked the page. The message says who. |
| A move or duplicate would expose a restricted page. |
| Seats or pages are at the plan's limit. |
| SSO, SCIM, the assistant, analytics, audit export, imports, custom domains or white-label need a different plan. |
| Share links are switched off for the organization. |
| The target organization enforces single sign-on; switching is refused. |
| The AI allowance is spent. |
| Checkout and seat changes; the message explains. |
Rate limits#
300 requests a minute per client across the API.
120 requests a minute per client on the anonymous public-documentation endpoints.
Sign-in attempts are additionally limited per account and per address.
A limited request answers 429 with a Retry-After header. Back off and retry; do not hammer.
Sizes#
Thing | Limit |
|---|---|
Page title | 300 characters |
Markdown import | 200 files per job, 2 MB each |
OpenAPI import | 5 MB |
Logo | 512 KB |
Share link lifetime | 1–365 days |
API key lifetime | 1–730 days |
Plan limits#
Seats and pages are counted per organization; the current numbers are under Billing → Usage and at GET /billing/usage. Reaching a limit refuses the action that would exceed it; nothing already there is removed.