API Documentation
Integrate the multi-agent alternate-history simulator into custom applications and pipelines.
/api/scenariosSubmit a raw query string to initiate a new multi-agent simulation run background task.
/api/scenarios/{id}/statusCheck the simulation processing status and active completed agent lists.
/api/scenarios/{id}/reportRetrieve the synthesized final alternate history report, indices, timeline, and critic logs. Returns HTTP 409 if not finished.
/api/scenarios/{id}/branchFork a new simulation from a specific timeline event. Pre-divergence events are locked in as historical context.
/api/scenarios/{id}/askAsk a follow-up question about a completed report. Answers are grounded in the report context and include citations.
/api/scenarios/{id}/debateRun a structured two-round debate between any two domain agents, concluded by a Critic synthesis.
/api/scenarios/{id}/adjustRe-simulate a scenario with adjusted parameters. Only the affected agents re-run; the final report is recomposed.
/api/scenarios/{id}/wsWebSocket channel that streams live agent progress logs while a simulation is running.
/Health check endpoint returning service status and database connectivity.