API Reference
This page summarizes the currently implemented JSON-RPC methods and transport-level HTTP endpoints.
1. binary HTTP
2. Configuration and Resource Families
Notes:
api.deletereturnsconflictif anapi_groupstill references the APIpreset.deletereturnsconflictif a story draft or session still references the presetschema.deletereturnsconflictif characters, resources, stories, or sessions still reference it- character covers and
.chrarchives are transferred through binary routes
3. Story Families
Highlights:
story.generateis the compatibility wrapper around the full draft flowstory_draft.start,story.generate, andstory.generate_planall accept optionalapi_group_idandpreset_idstory.update_graphandstory_draft.update_graphvalidate graph structure before saving
4. Session Families
Notes:
session.run_turnis the primary streaming methodsession.suggest_repliesreturns 3 suggestions by default and accepts2..=5session.update_variablesonly accepts variable updates- session-scoped temporary characters do not modify the underlying story graph
5. Global and Aggregate APIs
dashboard contains:
healthcountsglobal_configrecent_storiesrecent_sessions
6. Data Package APIs
Supported resource types:
presetschemalorebookplayer_profilecharacterstory_resourcesstory
Import/export flow:
- call
data_package.export_prepare, then download throughGET /download/package_export:{export_id}/archive - call
data_package.import_prepare, then upload throughPOST /upload/package_import:{import_id}/archive - call
data_package.import_committo validate and apply the package atomically