Get a story
const url = 'https://example.com/api/stories/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/stories/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Read a story’s published document.
Scenes on maps the caller can’t read come back without their scene. An unpublished story is readable only by its owner and admins, with a null document. 404 when the caller can’t read the story.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Responses
Section titled “ Responses ”Successful Response
object
A story’s visibility as stored. A private story shared with groups is
restricted: its groups’ members read it too.
object
object
object
object
Longitude, latitude.
Visibility by map layer id. Layers the map no longer has are ignored, and a layer left out keeps its saved visibility.
object
The chapter has a scene on a map you can’t read, so it’s shown without one.
object
Made by the client and stable across saves.
An image uploaded to the host story.
object
Made by the client and stable across saves.
object
object
Made by the client and stable across saves.
object
object
Made by the client and stable across saves.
object
An http or https address; any other scheme is refused.
Open the link in a new tab.
object
Made by the client and stable across saves.
object
An https address on a host an admin approved for stories. Stored as given and never fetched by the server.
Names the frame for screen readers.
object
Made by the client and stable across saves.
object
An https address on a host an admin approved for stories. Stored as given and never fetched by the server.
Names the frame for screen readers.
object
Show the chapter navigation bar.
Chapter panel beside the map or floating over it.
Where a floating panel sits.
Reader page theme; follow uses the reader’s.
How the map moves into a chapter whose scene sets no transition.
An accent colour, a logo and a font family for reader-facing pages.
The frontend applies these as theme tokens only. A font is named, never fetched: the operator ships the font file, since the CSP allows no remote fonts.
Example
{ "visibility": "private", "document": { "chapters": [ { "scene": { "camera": { "bearing": 0, "pitch": 0 }, "transition": "fly" }, "scene_hidden": false, "blocks": [ { "type": "markdown", "v": 1 } ] } ], "settings": { "navigation": false, "layout": "side", "panel_position": "left", "theme": "follow", "transition": "fly" } }}Bad request — invalid payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks write access
Not found
Conflict — resource state prevents the operation
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “ Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request