Skip to main content
POST
Export a dialogue graph (JSON, Ink, or Yarn Spinner)

Path Parameters

graph_id
string
required

Body

application/json

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:DialogueGraphExport body.
  • "ink": Inkle Ink markup (text/plain) for Unity/Godot/standalone.
  • "yarn": Yarn Spinner .yarn markup (text/plain).

The ink/yarn formats build static game data via engine.packs.game_narrative.exporters; no LLM call, no Story Units.

format
enum<string>
default:json
Available options:
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.

graph_id
string
required
name
string
required
nodes
DialogueGraphNodeJSON · object[]
required
edges
DialogueGraphEdgeJSON · object[]
required
start_node_id
string | null