Studio
Studio splits a piece of writing into a structure you can read and write one part at a time: record the goal the piece serves, lay out its parts for a genre, write each part, then export the result. Agents and people read and write the same data, and every write answers with its check results and next to-dos so the caller does not need to re-read the whole piece.
All endpoints live under /studio/v1 and take an organization API key. SDK methods are under praxis.studio.*.
When to use it
Writing from plan to finished piece, exported per platform.
Use it when
- A text people return to, edit or publish.
Not for, use instead
- Quick ideas or edits: answer in chat →
agent - Contracts and reports: python-docx →
file
How it behaves
- Writes return
checksandnext; sendexpected_revision.
Combines with
- Images come from media.
Entry: praxis.studio.* · docs developers/studio/index
Five objects
| Object | What it is | Identifier |
|---|---|---|
| Work | One deliverable and everything around it: title, goal (reader, outcome, one-sentence message) and attached libraries. Creating it returns a slug that every later call uses | wk_ or slug |
| Draft | One way of delivering the work, written in one genre. A work can hold several, for example one per platform or length | drf_ or key, such as post |
| Unit | One node of a draft: an intent (what to write) plus a body. The genre decides which kinds and nesting are allowed; address it by its number in the draft (1, 2, …) | unt_ or number |
| Genre | A catalog entry: unit kinds, draft properties, deterministic checks, writing rules and built-in templates. Open today: novel_long, novel_short, blog_article, wechat_article, xiaohongshu_note, short_post, x_thread and others | genre key |
| Rendition | The form of a draft that one platform receives. Open platforms today are markdown@1 and text@1, both delivered by export | rnd_ |
A work holds only the goal. The requirement for one piece (the points its body must cover, a length, banned wording) belongs to that draft’s brief and is given when you create the draft or update the brief.
Conventions for writes
-
Units and drafts carry a revision. Writing a whole body requires
expected_revision; if someone changed it first, the write is refused with 409REVISION_CONFLICT, so read it back and merge. -
Every write answers with
value(the object after the write),checksandnext(the next to-dos). Continue from those. -
Once a unit is
final, changing its intent, body or status needsconfirm_final_edit; send it only when a person asked for that edit. -
The reviewer roster, review settings and cancelling a review round are decisions for people in the organization; an agent calling them gets 403
PERMISSION_DENIED. The call that opens a review round is in the API reference. -
Quickstart: create a work and a draft, write two units, then export the full text.
-
Export a rendition: create a rendition, render again after edits, export, and handle stale or invalid output.
-
Limits and errors: error codes, retry conditions and what to do about them.