Errors, retries and compatibility
API errors return JSON with an error object containing code and message:
- Input that fails an operation's schema returns
invalid-inputwitherror.fields, a list of{ path, message }. - Errors raised while saving can include
error.detailswith field-specific messages. - Errors from one change in an
apply_changesbatch start withChange N:.
MCP tool failures return isError: true with the same error object in text and structured content. Transport and protocol failures remain MCP errors.
Never include the bearer token in an error report. A few gateway-level failures (an oversized request, a throttled burst or an unexpected outage) can return a shorter body, such as {"error":"too-large"}; handle them by HTTP status.
Common errors
| Status and code | Recovery |
|---|---|
401 connection-required |
Check that the bearer token is present, unexpired and still connected. Create a replacement from the site editor if needed. |
403 agent-scope |
The connection lacks the needed scope. Explain which one; do not switch to a more privileged identity automatically. |
403 forbidden, approval-required |
approval-required: the connection lacks the publish scope, so the entry stays private until an owner or editor shows it. forbidden: the person's site role cannot do this, such as managing people. |
403 connection-revoked, archived |
Access was removed or the site is archived. Stop and tell the user. |
403 guest-limit, guest-capacity, guest-claim-required |
A guest site reached its profile, storage or time limit. Ask the owner to claim it. Never create another site to get around a limit. |
403 capacity-hold |
This account, guest site or network reached its usage limit. Tell the person the error's message; reading still works. Do not retry or create another site. |
400 invalid-input, validation |
Correct the indicated fields using the generated schema. |
400 invalid-display-settings, invalid-layout |
Read get_capabilities and use supported fields and values. |
400 batch-reference, batch-target |
Fix the $ref or add the missing design target id. |
400 asset-reference |
Use an asset ID from this site's list_media. |
400 entry-folder, folder-parent, folder-cycle |
Choose an existing folder in this site and avoid placing a folder inside itself. |
400 file-type, file-size |
Upload a supported format within the size limit; see photos and videos. |
400 limit |
The site reached its entry, folder, upload or saved-data limit. |
403 browser-pass-unavailable or 503 browser-pass-unavailable |
Passes are only for owned sites; claim a guest display first. On 503, retry shortly. |
400 connection-limit |
The site already has 20 active connections. Disconnect one first. |
404 not-found, unknown-operation |
Use an ID returned by the API or an operation from the API reference. |
409 revision-conflict |
Reread the current context and affected records, reconcile, then use a new key. |
409 idempotency-conflict |
The key was used for a different request. Keep keys unique per logical change. |
409 folder-not-empty |
Move or delete the folder's contents before deleting it. |
409 filter-meaning-conflict |
The destination collection labels details differently; see moving entries. |
409 duplicate-person |
Use the existing donor or confirm a different person with distinctPerson: true. |
413 too-large |
Send a smaller request or file. |
429 rate-limit |
Wait for Retry-After (60 seconds) and prefer batches. |
503 temporarily-unavailable or a lost response |
Retry the identical request with the same key and revision, with bounded backoff. Check current state before sending a changed mutation. |
Batch guarantees
- Up to 50 supported changes are validated and committed atomically.
- A batch advances the saved draft revision once.
- A dry run validates without saving and does not reserve IDs.
- Durable saved-change receipts bind the operation ID to the original request hash. A matching replay returns
replayed: trueand the originalcreatedmap, even after later edits. Never change the request while reusing its key. - Batch receipts are scoped to the person and connection. Rotating a token does not transfer its retry keys; inspect saved content before resuming an interrupted import through a new connection.
- Donation receipts are kept per gift ID. They record an already-confirmed gift; they never process a payment.
Idempotency keys
Keys are 8–100 characters of letters, numbers, - and _. Use one key per logical change and keep it, with the original revision, in your local checkpoint until the result is confirmed.
Rate and size limits
- Each connection allows 120 requests per calendar minute. MCP takes one JSON-RPC message per request; batches (JSON arrays) are refused with error
-32600. - Uploads count toward the account's 25 GiB of new uploads per day (
429 upload-allowance) and the site's 50 GiB of stored uploads (413 storage-limit). - The API gateway also limits total traffic and can throttle bursts with a plain
429. Back off and retry. - Requests must fit within a 4 MiB envelope. JSON operations, including content batches, have a 1 MiB body limit.
Prefer concise batches and paginated reads over loading an entire archive into the agent's context.
Versioning
The HTTP operation API is under /v1/. MCP and HTTP use the same operations and validators. Read capabilities rather than hardcoding design options. New supported options may be added; do not assume unknown values are usable before the live server returns them. No deprecation timeline or compatibility commitment is promised here.
Report an issue
Record the operation name, time, error code and whether a change may have completed. Remove credentials and private school content. Keep your original key and revision until the result is resolved.