Errors

AAditya Kothadiya3 min readAvg. reading speed: 200 words per minuteLast updated Nov 28, 2026

Every error says what to do next. Errors use standard HTTP status codes and one JSON shape, with a stable code you can check in your code.

Error Format

{
  "error": {
    "code": "forbidden_scope",
    "message": "This key can't publish books. It needs the books:publish permission.",
    "required_scope": "books:publish"
  }
}

Check error.code, not the message: messages are written for people and may change. Some errors add fields, such as required_scope, retry_after, top_up_url, upgrade_url or field (the invalid field). Every response has an X-Request-Id header (req_…); include it when you contact support.

Error Codes

Code

Status

Meaning

What to do

unauthorized

401

No key or token, or one WebBooks doesn't recognize.

Send Authorization: Bearer <key>. Check for spaces or a truncated key.

key_revoked

401

The key or connection was revoked.

Create a new key, or connect the app again.

key_paused

401

The key is paused in Settings › Developers.

Resume it there.

no_access

401

The person who made the key or connected the app is no longer an admin or member of the workspace.

Someone still in the workspace creates a new key or connects the app again.

token_expired

401

The OAuth access token is older than an hour.

Use the refresh token (AI apps do this for you).

forbidden_scope

403

The key doesn't have the permission this call needs.

error.required_scope names it; edit the key or create one with it.

book_not_allowed

403

The key is limited to other books.

Add the book to the key's book list.

plan_required

403

The plan doesn't include this: AI apps need a paid plan (Personal and up); API keys and webhooks need Professional and up.

Open error.upgrade_url to upgrade.

plan_limit

403

The plan's limit on books, published books or webhook endpoints is reached.

Remove one, or open error.upgrade_url for a bigger plan.

workspace_disabled

403

A workspace admin switched the API, MCP or webhooks off.

Ask an admin to switch it on in Settings › Developers.

not_found

404

No such book, chapter or webhook in this workspace.

Check the ID; list the parent to find it.

method_not_allowed

405

The path exists, but not with this HTTP method.

The Allow header lists the methods it takes.

conflict

409

Something is already in progress: an idempotent request with the same key, or a webhook delivery being sent.

Wait a moment and try again.

validation_error

422

The body or a parameter is missing or wrong, the pre-publish check blocked publishing, or an Idempotency-Key was reused with a different body.

error.field names the field; error.problems lists what blocks publishing.

insufficient_credits

402

The workspace is out of credits.

Open top_up_url to add credits, or upgrade_url for a plan with more.

credit_limit_reached

402

This key or connected app reached its monthly credit limit (error.monthly_credit_limit, error.used).

Raise the limit in Settings › Developers, or wait for next month (UTC).

rate_limited

429

Too many requests this minute or today.

Wait Retry-After (or error.retry_after) seconds, then retry. Spread bulk jobs out.

feature_paused

503

WebBooks paused this feature for everyone, briefly.

Retry later.

internal_error

500

Something broke on our side. Any credits taken are refunded.

Retry with the same Idempotency-Key. If it repeats, contact support with the X-Request-Id.

In AI Apps

Over MCP, errors come back as a tool result marked as an error, with a plain sentence the AI can act on or pass to you, for example the top-up link when credits run out. Problems with the request itself (an unknown tool, a missing argument) use the standard JSON-RPC error codes.