MentatLab docs
Runs
API Reference
MentatLab APIs are served by the orchestrator under /api/v1 (typically through the gateway).
Runs
GET /api/v1/runs- List runsPOST /api/v1/runs- Create runGET /api/v1/runs/{id}- Get run detailsDELETE /api/v1/runs/{id}- Delete runPOST /api/v1/runs/{id}/start- Start run executionGET /api/v1/runs/{id}/events- Stream run events (SSE)POST /api/v1/runs/{id}/clone- Clone run (optional auto start)POST /api/v1/runs/{id}/nodes/{nodeId}/approve- Approve gate nodePOST /api/v1/runs/{id}/nodes/{nodeId}/reject- Reject gate node
Flows
GET /api/v1/flows- List flowsPOST /api/v1/flows- Create flowGET /api/v1/flows/{id}- Get flowPUT /api/v1/flows/{id}- Update flowDELETE /api/v1/flows/{id}- Delete flowPOST /api/v1/flows/{id}/run- Create and start run from flow
Agents
GET /api/v1/agents- List agentsPOST /api/v1/agents- Register agentGET /api/v1/agents/{id}- Get agentPUT /api/v1/agents/{id}- Update agentDELETE /api/v1/agents/{id}- Delete agent
Webhooks and Scheduling
POST /api/v1/webhooks- Create webhook for flowPOST /api/v1/webhooks/trigger/{flowId}- Trigger flow via webhookGET /api/v1/schedules- List schedulesPOST /api/v1/schedules- Create scheduleGET /api/v1/schedules/{id}- Get scheduleDELETE /api/v1/schedules/{id}- Delete schedule
Jobs
GET /api/v1/jobs/{id}/status- Query Kubernetes job status
Health Endpoints
GET /healthGET /healthzGET /ready