Anthra developer platform

Build with Anthra

Anthra exposes two programmatic surfaces on top of the same studio that powers /dashboard:

  • REST API at /api/v1/* — JSON in, JSON out (plus streamed text/plain for chapter generation).
  • MCP server at /api/mcp — connect Claude, Cursor, or any Model Context Protocol client with a personal access token and Anthra appears as a set of callable tools.

Both surfaces use the same authentication, the same scopes, and the same underlying database — you can mix them freely.

Start here

What you can do

CapabilityRESTMCP toolScope
List / read booksGET /v1/bookslist_books, get_bookbooks:read
Create or edit a bookPOST /v1/books, PATCH /v1/books/{id}create_book, update_bookbooks:write
Generate outlinePOST /v1/books/{id}/outlinegenerate_outlinegeneration:run
Write / rewrite a chapterPOST …/chapters/{cid}/write (stream)write_chapter, rewrite_chaptergeneration:run
Narrate with ElevenLabsPOST …/chapters/{cid}/narratenarrate_chaptergeneration:run
Publish / unpublishPOST /v1/books/{id}/publishpublish_book, unpublish_bookpublish:write
Reader analyticsGET /v1/books/{id}/analyticsget_reader_analyticsanalytics:read
Account + token usageGET /v1/account, GET /v1/usageget_usageaccount:read
Planning surface (theme, promise, comp, locks)GET / PATCH /v1/books/{id}/planget_plan, set_planbooks:read · books:write
Characters (want / fear / lie)GET / POST /v1/books/{id}/characterslist_characters, create_characterbooks:read · books:write
Writer's bible (characters, plot, world, glossary…)GET /v1/books/{id}/documents, GET / PUT /v1/books/{id}/documents/{kind}list_book_documents, read_book_document,write_book_document, draft_book_documentbooks:read · books:write
Beat sheets (Save the Cat, Freytag, …)GET /v1/books/{id}/beat-sheetslist_beat_sheetsbooks:read
Sensitivity flagsGET / POST /v1/books/{id}/sensitivityrun_sensitivity_scan, list_sensitivity_flags, dismiss_sensitivity_flaggeneration:run · analytics:read
Background jobsGET /v1/jobs, GET /v1/jobs/{jobId}list_jobs, get_job_statusaccount:read
Narration voice directoryGET /v1/voiceslist_voicesbooks:read
Batch narration (whole book)loop POST …/chapters/{cid}/narratenarrate_bookgeneration:run
Cover art / chapter illustrationsPOST /v1/books/{id}/cover-image, POST /v1/books/{id}/back-cover, POST /v1/books/{id}/spine, POST /v1/books/{id}/cover/compose, POST /v1/chapters/{cid}/imagegenerate_cover_art, generate_back_cover,generate_spine, compose_cover_spread,generate_chapter_image, choose_cover_colorgeneration:run
Chapter restructuringPATCH /v1/books/{id}/chapters/{cid}list_chapters, update_chapter, split_chapter, merge_chapters, reorder_chapters, set_chapter_meta, list_chapter_revisions, restore_chapter_revisionbooks:read · books:write
Manuscript export (EPUB / DOCX / PDF / Markdown)POST /v1/books/{id}/produceexport_book_markdown, produce_book, get_production_job_statusgeneration:run
Translation (clone into another language)POST /v1/books/{id}/translatetranslate_bookgeneration:run
Editorial & quality (lint, critique, continuity, drift, repetition, cliches)—lint_prose, critique_chapter, check_continuity, find_repetition, suggest_cliche_replacements, spoken_readability, style_drift, set_forbidden_wordsbooks:read · generation:run
Prose analysis (filter words, adverbs, POV/tense, rhythm, clichés)—find_filter_words, analyze_adverb_density, analyze_sensory_balance, check_pov_slippage, check_tense_consistency, analyze_sentence_rhythm, detect_semantic_clichesbooks:read · generation:run
Specialist & critique panel (round-table, plot doctor)POST /v1/tools/round_table_critiquecall_specialist, round_table_critique, skeptic_verify, draft_tournament, long_horizon_plot_doctorgeneration:run
Reader feedback (test-reader panel, emotional arc, hooks)POST /v1/tools/run_test_reader_panelrun_test_reader_panel, analyse_emotional_arc, score_hook_strength, predict_ending_satisfactiongeneration:run
Worldbuilding & continuity (rules, timeline, foreshadowing)—check_continuity, check_scene_consistency, register_foreshadowing, list_unpaid_foreshadowing, refresh_timeline, list_object_trailbooks:read · generation:run
Persona & structural editing (track-changes, POV/tense flip)POST /v1/tools/edit_chapter_with_personaedit_chapter_with_persona, track_changes_edit, sentence_variants, flip_chapter_tense, shift_chapter_pov, voice_transplant_paragraphgeneration:run
Collaboration (assignments & activity feed)—list_collaborators, invite_collaborator, remove_collaborator, assign_chapter, list_chapter_assignments, list_activitybooks:read · books:write
Picture books (page-by-page composer)—create_picture_book, get_picture_book, set_picture_book_pagebooks:read · books:write
Illustration repair against locked portraits—repair_illustrationgeneration:run
Retail audio packagePOST /v1/books/{id}/audio-packageexport_audio_package, get_audio_packagegeneration:run · books:read
Retail check, store metadata and publish kits—check_retail_readiness, suggest_publish_metadata, build_publish_kitbooks:read · generation:run
AI provenance and disclosure—get_ai_provenance, get_contribution_record, set_ai_declarationbooks:read · books:write
Discover review of paid listingsGET /v1/books/{id}get_listing_review, request_listing_reviewbooks:read · publish:write
Writers Academy (courses and progress)—list_academy_courses, get_academy_lesson, set_academy_lesson_completebooks:read · books:write
Author preferences—list_author_preferences, set_author_preferenceaccount:read · books:write
Serial release (a chapter per day or week)—get_serial_release, set_serial_releasebooks:read · publish:write
Agent pitch pack (query letter, synopsis, comps)—generate_query_letter, build_pitch_pack, draft_blurb_variantsgeneration:run · books:read
Cover genre check, matching back + spine, inpainting—check_cover_conventions, derive_cover_back_and_spine, regenerate_chapter_illustrations, edit_image_regiongeneration:run
Whole-book repetition and genre-convention audit—book_repetition_report, audit_genre_conventionsbooks:read · generation:run
Service status and first-session onboardingGET /v1/status, GET /v1/account/getting-started—— · books:read

Planning surface (added 2026-06)

The studio's planning workbench is now fully programmable. Both REST and MCP can:

  • Read and write the theme statement, reader promise, comp authors, beat sheet, POV / tense locks, and POV depth dial.
  • Manage the character roster with Truby-style want / fear / lie axes and the inter-character conflict matrix.
  • Generate and apply outline variants, grade the current outline, run the premise-sharpening interview, pick one of three premise pitches, auto-detect genre, and run era research with citation links.
  • List tone / mood references and roll the outline back via snapshots.

REST tool gateway (added 2026-06)

Beyond the idiomatic routes above, every tool in the toolkit is now reachable over a generic gateway — the same 350+ tools the MCP server and in-app agent share, at full parity. Two endpoints:

  • GET /api/v1/tools — the live catalog: every tool name, description, required scope, and JSON Schema for its arguments. This is the authoritative, always-current list.
  • POST /api/v1/tools/{tool} — invoke any tool by name with a JSON body matching its schema. Scope-gated exactly like the idiomatic routes. When a tool fails, the status says why: a refused charge is a 402 with the same code as the other routes (insufficient_credits, verify_email_for_credits, book_cap_exceeded, monthly_cap_exceeded, key_cap_exceeded, team_cap_exceeded or daily_quota_exceeded), and the error adds toolCode plus required, balance, shortBy and covers when the tool reported them; ai_down_no_charge and feature_paused are 503; a rejected input or a book in the wrong state is 400 tool_error; a failure on Anthra’s side is 500 internal_error, whose message reads Tool failed (ref …) and whose error carries the same ref to quote to support.
# Discover every tool + its JSON Schema
curl "$ANTHRA_BASE/tools" \
  -H "authorization: Bearer $ANTHRA_TOKEN"

# Invoke one by name
curl -X POST "$ANTHRA_BASE/tools/generate_outline" \
  -H "authorization: Bearer $ANTHRA_TOKEN" \
  -H "content-type: application/json" \
  -d '{ "bookId": "…uuid…" }'

The gateway is the fastest way to reach newer capabilities — prose analysis, the specialist panel, reader feedback, worldbuilding & continuity, structural editing, and collaboration — without waiting for a dedicated route. See the tool reference for the catalog grouped by capability. OpenAPI is published at v1.1.0.

Versioning

The REST surface is namespaced by version (/api/v1). Anthra will introduce a new namespace before making any breaking change; v1 is stable and additive-only.