Skip to content

Preview and reading API ​

Draft playback requires an authoring session and permission to the story. Published reading uses a different route and an anonymous reader session where publication and access settings allow it. Reading progress does not rewrite the source story.

Draft preview ​

MethodPathPurpose
GET/story/{story_id}/user/{user_id}Read playback content
POST/story/{story_id}/user/{user_id}Advance with a choice
POST/story/{story_id}/user/{user_id}/commandSend a playback command
GET/story/{story_id}/user/{user_id}/historyRead playback history

Use the authenticated user's ID for private draft playback. Do not substitute another user's ID. The server checks the identity as well as story ownership.

A choice request has a JSON object containing choice. Use the choice value returned by the player response, not a destination guessed from its label.

json
{ "choice": "returned-choice-value" }

Playback responses can include an ETag. Send that value as If-Match when advancing a session that requires concurrency protection. Keep progress updates sequential; simultaneous advances are not separate independent reads.

Published reading ​

The published prefix is /studio-api/public/stories/{story_id}:

MethodSuffixPurpose
GET/sessionEstablish or recover the reader identity
GET/user/{user_id}Read published playback
POST/user/{user_id}Advance the reader
POST/user/{user_id}/commandRun a reader command
GET/user/{user_id}/historyRead the reader's history

Keep the reader cookie set by /session and use its returned user.id. Targeted stories also require the approved player backend's credential. The server resolves an eligible published edition; a private authoring draft is not made public by knowing its UUID.

Image URLs and media metadata are returned by the service. Follow those supported delivery routes rather than building direct storage URLs.

Publication capture ​

POST /studio-api/stories/{story_id}/editions/{edition_id}/capture captures an edition for an authorized publishing workflow. It is not a complete public publish endpoint. Capture does not itself grant approval, public visibility, or permission to edit someone else's story.

Non Linear documentation · Files in GitHub, no wiki database.