Studio API
Studio turns a goal into finished writing: a work holds one goal (reader, outcome, message) and one or more genre drafts, each with its own brief (the requirement, its points and its constraints) and units that form a tree with an intent and a body, the reference libraries those units draw on, and the renditions each platform receives. The structure tree and the reference library follow the writing tools Scrivener and Novelcrafter, and a unit body crosses the wire as Notion pages and blocks do. Differences: the seven layers goal, frame, task, reference, body, coherence and rendition are fixed in code and a genre only names them; the genre catalog ships in code and is read with genres.retrieve rather than remembered from a prompt; works, drafts, units and entries are named by slug, key, unit number or entry name instead of a long id; every body write carries expected_revision and a mismatch answers 409 instead of merging two edits; changing a unit marked final needs confirm_final_edit; and the context pack and todo list are computed from the data, so the next call follows them rather than a plan. Blind review closes the writing loop: a finished draft is sent in, the work’s reviewer roster judges it whole, and the sender reads what came back without ever learning who the reviewers are.
- Create a reference library —
POST /studio/v1/codexes - Delete a reference library —
DELETE /studio/v1/codexes/{codex} - Add an entry to a reference library —
POST /studio/v1/codexes/{codex}/entries - Delete a reference entry —
DELETE /studio/v1/codexes/{codex}/entries/{entry} - List the entries of a reference library —
GET /studio/v1/codexes/{codex}/entries - Read one reference entry —
GET /studio/v1/codexes/{codex}/entries/{entry} - Change what a reference entry says —
PATCH /studio/v1/codexes/{codex}/entries/{entry} - List the reference libraries of this organization —
GET /studio/v1/codexes - Read one reference library —
GET /studio/v1/codexes/{codex} - Rename a reference library or change its description —
PATCH /studio/v1/codexes/{codex} - List the genres Studio can write —
GET /studio/v1/genres - Read one genre with its built-in templates —
GET /studio/v1/genres/{genre} - List the platforms a work can be produced for —
GET /studio/v1/platforms - Read the rules of one platform —
GET /studio/v1/platforms/{platform} - Create a writing style —
POST /studio/v1/styles - Delete a writing style —
DELETE /studio/v1/styles/{style} - List the writing styles of this organization —
GET /studio/v1/styles - Read one writing style —
GET /studio/v1/styles/{style} - Change a writing style —
PATCH /studio/v1/styles/{style} - Save a starting structure as a template —
POST /studio/v1/templates - Delete a saved template —
DELETE /studio/v1/templates/{template} - List the templates a genre can start from —
GET /studio/v1/templates - Read one template —
GET /studio/v1/templates/{template} - Create a rendition theme —
POST /studio/v1/themes - Delete a rendition theme —
DELETE /studio/v1/themes/{theme} - List the rendition themes of a platform —
GET /studio/v1/themes - Read one rendition theme —
GET /studio/v1/themes/{theme} - Change a rendition theme —
PATCH /studio/v1/themes/{theme} - Create a work with its goal —
POST /studio/v1/works - Create a draft of a genre inside a work —
POST /studio/v1/works/{work}/drafts - Drop a foreshadow —
DELETE /studio/v1/works/{work}/drafts/{draft}/foreshadows/{key} - List the foreshadows of a draft —
GET /studio/v1/works/{work}/drafts/{draft}/foreshadows - Plant or pay off a foreshadow —
PUT /studio/v1/works/{work}/drafts/{draft}/foreshadows/{key} - List the drafts a work carries —
GET /studio/v1/works/{work}/drafts - Confirm a draft already follows its source —
POST /studio/v1/works/{work}/drafts/{draft}:rebase - Create a rendition of a draft for a platform —
POST /studio/v1/works/{work}/drafts/{draft}/renditions - Read one draft with optional units and todos —
GET /studio/v1/works/{work}/drafts/{draft} - Export the draft as Markdown or plain text —
GET /studio/v1/works/{work}/drafts/{draft}/export - Read the whole unit outline as Markdown —
GET /studio/v1/works/{work}/drafts/{draft}/outline - Read a review pass over the whole draft —
GET /studio/v1/works/{work}/drafts/{draft}/review - Read the computed todo list of a draft —
GET /studio/v1/works/{work}/drafts/{draft}/status - Add a whole outline of units at once —
POST /studio/v1/works/{work}/drafts/{draft}/units:batchCreate - Write intents for many units in one call —
POST /studio/v1/works/{work}/drafts/{draft}/units:batchUpdate - Add one unit to the draft tree —
POST /studio/v1/works/{work}/drafts/{draft}/units - Change a draft title, key, properties or style —
PATCH /studio/v1/works/{work}/drafts/{draft} - Add to or correct a draft’s brief —
PATCH /studio/v1/works/{work}/drafts/{draft}/brief - List the works of this organization —
GET /studio/v1/works - Record how a setting entry changes at a unit —
POST /studio/v1/works/{work}/progressions - Delete a setting change —
DELETE /studio/v1/works/{work}/progressions/{id} - List the setting changes of a work —
GET /studio/v1/works/{work}/progressions - Delete a rendition —
DELETE /studio/v1/works/{work}/renditions/{rendition} - List the renditions of a work —
GET /studio/v1/works/{work}/renditions - Export a rendition —
POST /studio/v1/works/{work}/renditions/{rendition}:publish - Render a rendition again from the current draft —
POST /studio/v1/works/{work}/renditions/{rendition}:render - Read one rendition —
GET /studio/v1/works/{work}/renditions/{rendition} - Get a download URL for a rendition file —
GET /studio/v1/works/{work}/renditions/{rendition}/content - Change the theme or settings of a rendition —
PATCH /studio/v1/works/{work}/renditions/{rendition} - Resolve a loose reference to a work, draft or unit —
GET /studio/v1/works:resolve - Read a work, optionally with one draft and unit —
GET /studio/v1/works/{work} - Read the review settings of a work —
GET /studio/v1/works/{work}/review-settings - Change how many rounds a work may take —
PATCH /studio/v1/works/{work}/review-settings - Add a reviewer to a work —
POST /studio/v1/works/{work}/reviewers - Remove a reviewer from a work —
DELETE /studio/v1/works/{work}/reviewers/{agent} - List the reviewers of a work —
GET /studio/v1/works/{work}/reviewers - Change a reviewer’s kind —
PATCH /studio/v1/works/{work}/reviewers/{agent} - Cancel a running review round —
POST /studio/v1/works/{work}/reviews/{review}:cancel - Send a draft to blind review —
POST /studio/v1/works/{work}/reviews - List the blind review rounds of a work —
GET /studio/v1/works/{work}/reviews - Read one blind review round —
GET /studio/v1/works/{work}/reviews/{review} - Edit a unit body block by block —
POST /studio/v1/works/{work}/units/{unit}/blocks:patch - Move a unit to another place in the tree —
POST /studio/v1/works/{work}/units/{unit}:move - Read one unit with its blocks and Markdown —
GET /studio/v1/works/{work}/units/{unit} - Read the context pack for writing one unit —
GET /studio/v1/works/{work}/units/{unit}/context - Change a unit intent, body or status —
PATCH /studio/v1/works/{work}/units/{unit} - Change the title, goal or attached libraries —
PATCH /studio/v1/works/{work}