- Scenario — one JSON document describing a complete setup (templates, entities, rules, assertions,
camera, game config).
POST /scenariowipes and rebuilds the world from it;GET /scenarioexports the current world back out. This is the recommended way to set up a world in one call. - Level —
POST /level/save/POST /level/loadfor a level file (entities, rules, camera, game state); the loader auto-detects the format and can build a procedural MOBA map. - Scene —
POST /scene/save/POST /scene/loadfor a lower-level scene file.
Fully headless. All scene/level/scenario endpoints run on the
:3917 server.Scenario round-trip
dota.sh-style setup as one document. See
Build a scene for a worked example.
Endpoints
| Method | Path | Description |
|---|---|---|
POST | /scenario | Apply a scenario (wipes + rebuilds the world) |
GET | /scenario | Export the current world as a scenario |
POST | /fork/{id}/scenario | Apply a scenario to a fork |
POST | /level/save · /level/load | Save / load a level file |
POST | /scene/save · /scene/load | Save / load a scene file |
Status
- ✅ Scenario apply/export (including into forks), level save/load with format auto-detect + procedural MOBA map, scene save/load — shipped and headless.
- 🟡 Scene/level save/load is a partial round-trip (position/scale/health/team only). For exact state, use snapshots + digest.
Scene & scenario endpoints
Scenario, level, and scene endpoints with schemas.