Export a dialogue graph (JSON, Ink, or Yarn Spinner)
Synchronous export. The request body format selects the serialization:
json(default): the round-trippable dialogue_graph JSON shape used by NPC exports and the runtime npc_drafts lock pipeline; re-importable via POST …/import.ink: Inkle Ink markup (text/plain).yarn: Yarn Spinner.yarnmarkup (text/plain).
Ink/Yarn build static game data via the pack exporters. No LLM call; no Story Units consumed for any format.
Path Parameters
Body
Body for POST /dialogues/{id}/export.
format selects the serialization:
"json"(default): the round-trippable dialogue_graph JSON, importable via POST .../import. Returns a :class:DialogueGraphExportbody."ink": Inkle Ink markup (text/plain) for Unity/Godot/standalone."yarn": Yarn Spinner.yarnmarkup (text/plain).
The ink/yarn formats build static game data via
engine.packs.game_narrative.exporters; no LLM call, no Story Units.
json, ink, yarn Response
Exported dialogue graph (JSON, Ink, or Yarn)
Round-trippable dialogue graph (export response, import request).
Compatible with engine.packs.game_narrative.schemas.DialogueGraph so the JSON can be consumed by NPC export pipelines and the runtime npc_drafts lock flow without remapping.