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

Path Parameters

project_id
string
required
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)

Lossless dialogue graph accepted unchanged by the import endpoint.

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