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 |
|---|---|---|---|
| 401 | No key or token, or one WebBooks doesn't recognize. | Send |
| 401 | The key or connection was revoked. | Create a new key, or connect the app again. |
| 401 | The key is paused in Settings › Developers. | Resume it there. |
| 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. |
| 401 | The OAuth access token is older than an hour. | Use the refresh token (AI apps do this for you). |
| 403 | The key doesn't have the permission this call needs. |
|
| 403 | The key is limited to other books. | Add the book to the key's book list. |
| 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 |
| 403 | The plan's limit on books, published books or webhook endpoints is reached. | Remove one, or open |
| 403 | A workspace admin switched the API, MCP or webhooks off. | Ask an admin to switch it on in Settings › Developers. |
| 404 | No such book, chapter or webhook in this workspace. | Check the ID; list the parent to find it. |
| 405 | The path exists, but not with this HTTP method. | The |
| 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. |
| 422 | The body or a parameter is missing or wrong, the pre-publish check blocked publishing, or an |
|
| 402 | The workspace is out of credits. | Open |
| 402 | This key or connected app reached its monthly credit limit ( | Raise the limit in Settings › Developers, or wait for next month (UTC). |
| 429 | Too many requests this minute or today. | Wait |
| 503 | WebBooks paused this feature for everyone, briefly. | Retry later. |
| 500 | Something broke on our side. Any credits taken are refunded. | Retry with the same |
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.