Skip to main content
GET
/
api
/
v1
/
executions

List Executions

curl -X GET "http://localhost:8002/api/v1/executions?workflow=daily-report&limit=10" \
  -H "X-API-Key: your-api-key"

Response

200 Success
{
  "executions": [
    {
      "id": "exec_abc123",
      "workflow": "daily-report",
      "status": "completed",
      "startedAt": "2025-10-31T09:00:00Z",
      "completedAt": "2025-10-31T09:05:23Z",
      "duration": "5m 23s"
    }
  ]
}

Get Execution Details

curl -X GET http://localhost:8002/api/v1/executions/exec_abc123 \
  -H "X-API-Key: your-api-key"

Response

200 Success
{
  "id": "exec_abc123",
  "workflow": "daily-report",
  "status": "completed",
  "startedAt": "2025-10-31T09:00:00Z",
  "completedAt": "2025-10-31T09:05:23Z",
  "tasks": [
    {
      "name": "generate-report",
      "status": "completed",
      "duration": "5m 20s",
      "output": "Report generated successfully"
    }
  ]
}

Get Execution Logs

curl -X GET http://localhost:8002/api/v1/executions/exec_abc123/logs \
  -H "X-API-Key: your-api-key"

Response

200 Success
{
  "executionId": "exec_abc123",
  "logs": [
    {
      "timestamp": "2025-10-31T09:00:00Z",
      "level": "info",
      "message": "Starting workflow execution"
    },
    {
      "timestamp": "2025-10-31T09:05:23Z",
      "level": "info",
      "message": "Workflow completed successfully"
    }
  ]
}

Stop Execution

curl -X POST http://localhost:8002/api/v1/executions/exec_abc123/stop \
  -H "X-API-Key: your-api-key"

Next Steps