Drive the whole pipeline programmatically.
The same ~64 MCP tools that power the Chaptrix agent are open to you via a REST API, an MCP server and webhooks.
Authentication
All requests go over HTTPS and are authenticated with a bearer token. Create keys on the Studio tier under Settings → API. Treat them like passwords — a key carries the full rights of its workspace.
curl https://api.chaptrix.com/v1/books \-H "Authorization: Bearer $CHAPTRIX_KEY" \-H "Content-Type: application/json"
Quickstart
Validate a niche and, on a green score, kick off manuscript generation — in a few lines.
from chaptrix import Chaptrixcx = Chaptrix(api_key=os.environ["CHAPTRIX_KEY"])score = cx.validate_niche(topic="Deep Work für Teams")if score.decision == "write":book = cx.generate_manuscript(topic=score.topic, voice="me")print(book.id, book.status)
MCP tool reference
Every phase of the pipeline is a callable tool. A selection of the most important:
Webhooks
Register a URL and Chaptrix sends events as soon as long-running jobs finish — ideal for headless automation.
Errors & limits
The API uses standard HTTP status codes. Rate limits are computed per workspace and returned in response headers.
Ready to build headless?
Studio unlocks API keys, the MCP server and webhooks.
Contact sales