Write where you already think, in Claude, ChatGPT or your own scripts. Publishing, readers, analytics and audio stay in WebBooks.
This book is the guide to building on WebBooks: connecting AI apps, the REST API and webhooks. Every chapter is short and has examples you can copy.
What You Can Build
Write from your AI app. Connect Claude, ChatGPT or Gemini. Draft chapters in your voice and publish from the chat. Start with the Connect AI Apps chapter.
Automate with the API. Create books, write chapters in Markdown, publish and read analytics from your own code. Start with the API Quickstart chapter.
React with webhooks. Get a signed request when a chapter goes live or a reader subscribes. See the Webhooks chapter.
How It Fits Together
Every surface works on the same workspace, with the same permissions and the same credits. A chapter written from Claude is a normal WebBooks chapter: it shows up in the editor, its Names & Facts are learned, and it is published, narrated and tracked like any other.
Surface | Best for | Sign-in | Plans |
|---|---|---|---|
MCP server | Writing and publishing from AI apps | OAuth in the app, or an API key | Personal and up |
REST API | Scripts, integrations, back-office jobs | API key | Professional and up |
Webhooks | Reacting to publishing and readers | Signed with your endpoint's secret | Professional and up |
Credits: Work from an AI app or the API costs what the same work costs in WebBooks: 2.5 credits to write a chapter, 0.3 to rewrite or add to one, 0.5 for a book description. Reading, publishing and organizing are free. When credits run out, the reply includes a top-up link, so you can add more without leaving the chat. See the Limits and Credits chapter.
Addresses
What | Address |
|---|---|
REST API |
|
MCP server |
|
OpenAPI spec |
|
Webhook event list |
|
OAuth discovery |
|
Everything is JSON over HTTPS. Send your key as Authorization: Bearer wb_key_…. Manage keys, connected apps, webhooks and usage in the app under Settings › Developers.
In This Book
Connect AI Apps: Claude, ChatGPT, Claude Code, Gemini CLI, Cursor.
API Quickstart: a published chapter in four calls.
Authentication: API keys and OAuth.
Permissions: what each scope allows.
Limits and Credits: plans, rate limits and what work costs.
REST API Reference: every endpoint.
MCP Tools: every tool an AI app can call.
Webhooks: events, payloads, signatures and retries.
Errors: every error code and what to do.
Changelog: what changed, and when.