Base URL: http://localhost:5001 (or through Vite proxy on port 3000)
curl -X POST http://localhost:5001/api/graph/ontology/generate \
-F 'files=@/path/to/seed-document.md' \
-F 'simulation_requirement=Your prediction question here' \
-F 'project_name=My Project' \
-F 'additional_context=Optional extra context'Response:
{
"success": true,
"data": {
"project_id": "proj_xxxx",
"project_name": "My Project",
"ontology": {
"entity_types": [...],
"edge_types": [...],
"analysis_summary": "..."
},
"files": [{"filename": "...", "size": 12345}],
"total_text_length": 12345
}
}curl -X POST http://localhost:5001/api/graph/build \
-H 'Content-Type: application/json' \
-d '{"project_id": "proj_xxxx"}'Response:
{
"success": true,
"data": {
"project_id": "proj_xxxx",
"task_id": "uuid-xxxx",
"message": "Graph build task started"
}
}curl http://localhost:5001/api/graph/task/{task_id}Response:
{
"success": true,
"data": {
"task_id": "uuid-xxxx",
"status": "processing|completed|failed",
"progress": 75,
"message": "Processing 28/39 chunks..."
}
}curl http://localhost:5001/api/graph/project/{project_id}curl http://localhost:5001/api/graph/project/listcurl -X DELETE http://localhost:5001/api/graph/project/{project_id}curl -X POST http://localhost:5001/api/simulation/create \
-H 'Content-Type: application/json' \
-d '{
"project_id": "proj_xxxx",
"enable_twitter": true,
"enable_reddit": true
}'Response:
{
"success": true,
"data": {
"simulation_id": "sim_xxxx",
"project_id": "proj_xxxx",
"graph_id": "mirofish_xxxx",
"status": "created",
"enable_twitter": true,
"enable_reddit": true
}
}curl -X POST http://localhost:5001/api/simulation/prepare \
-H 'Content-Type: application/json' \
-d '{
"simulation_id": "sim_xxxx",
"use_llm_for_profiles": true,
"parallel_profile_count": 5,
"force_regenerate": false
}'Response:
{
"success": true,
"data": {
"simulation_id": "sim_xxxx",
"task_id": "uuid-xxxx",
"status": "preparing",
"expected_entities_count": 93,
"entity_types": ["Person", "Organization", ...]
}
}curl -X POST http://localhost:5001/api/simulation/prepare/status \
-H 'Content-Type: application/json' \
-d '{"simulation_id": "sim_xxxx"}'curl http://localhost:5001/api/simulation/{simulation_id}curl http://localhost:5001/api/simulation/listcurl http://localhost:5001/api/simulation/{simulation_id}/profilescurl http://localhost:5001/api/simulation/{simulation_id}/configcurl -X POST http://localhost:5001/api/simulation/start \
-H 'Content-Type: application/json' \
-d '{
"simulation_id": "sim_xxxx",
"platform": "parallel",
"enable_graph_memory_update": true,
"force": false
}'platform options: "parallel" (both), "twitter", "reddit"
Response:
{
"success": true,
"data": {
"simulation_id": "sim_xxxx",
"runner_status": "running",
"process_pid": 367,
"total_rounds": 72,
"twitter_running": true,
"reddit_running": true
}
}curl http://localhost:5001/api/simulation/{simulation_id}/run-statusResponse:
{
"success": true,
"data": {
"runner_status": "running",
"current_round": 20,
"total_rounds": 72,
"progress_percent": 27.8,
"twitter_actions_count": 122,
"reddit_actions_count": 212,
"total_actions_count": 334,
"simulated_hours": 20,
"total_simulation_hours": 72
}
}curl "http://localhost:5001/api/simulation/{simulation_id}/run-status/detail?platform=twitter"curl "http://localhost:5001/api/simulation/{simulation_id}/actions?page=1&per_page=50&platform=twitter"curl http://localhost:5001/api/simulation/{simulation_id}/timelinecurl http://localhost:5001/api/simulation/{simulation_id}/agent-statscurl "http://localhost:5001/api/simulation/{simulation_id}/posts?platform=twitter&page=1"curl "http://localhost:5001/api/simulation/{simulation_id}/comments?platform=reddit&page=1"curl -X POST http://localhost:5001/api/simulation/stop \
-H 'Content-Type: application/json' \
-d '{"simulation_id": "sim_xxxx"}'curl -X POST http://localhost:5001/api/report/generate \
-H 'Content-Type: application/json' \
-d '{
"simulation_id": "sim_xxxx",
"force_regenerate": false
}'curl -X POST http://localhost:5001/api/report/generate/status \
-H 'Content-Type: application/json' \
-d '{"task_id": "uuid-xxxx"}'curl http://localhost:5001/api/report/{report_id}curl -X POST http://localhost:5001/api/simulation/interview \
-H 'Content-Type: application/json' \
-d '{
"simulation_id": "sim_xxxx",
"agent_id": 0,
"prompt": "What do you think about AI renovation videos?",
"platform": "twitter",
"timeout": 60
}'curl -X POST http://localhost:5001/api/simulation/interview/batch \
-H 'Content-Type: application/json' \
-d '{
"simulation_id": "sim_xxxx",
"interviews": [
{"agent_id": 0, "prompt": "Your opinion?"},
{"agent_id": 5, "prompt": "Would you pay for this?"}
],
"timeout": 120
}'curl -X POST http://localhost:5001/api/simulation/interview/all \
-H 'Content-Type: application/json' \
-d '{
"simulation_id": "sim_xxxx",
"prompt": "Would you recommend this service to colleagues?",
"timeout": 300
}'curl -X POST http://localhost:5001/api/report/chat \
-H 'Content-Type: application/json' \
-d '{
"simulation_id": "sim_xxxx",
"message": "What was the most surprising finding?",
"chat_history": []
}'curl "http://localhost:5001/api/simulation/entities/{graph_id}?enrich=true"curl http://localhost:5001/api/simulation/entities/{graph_id}/{entity_uuid}curl http://localhost:5001/api/simulation/entities/{graph_id}/by-type/Person| URL | View | Purpose |
|---|---|---|
/ |
Home | Project list, create new |
/process/{projectId} |
Main Workflow | Steps 1-5 pipeline |
/simulation/{simulationId} |
Simulation Details | Config, profiles |
/simulation/{simulationId}/start |
Live Simulation | Real-time monitoring |
/report/{reportId} |
Report | Full report display |
/interaction/{reportId} |
Interview | Chat with agents |