curl https://agentgate.mynewapi.com/v1/work-orders/wo_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "wo_abc123xyz",
"taskPrompt": "Add input validation to the user registration endpoint",
"workspaceSource": {
"type": "git",
"repository": "https://github.com/your-org/your-repo",
"branch": "main"
},
"runId": "run_def456uvw",
"status": "running",
"maxIterations": 5,
"tenantContext": {
"tenantId": "acme-corp",
"tenantUserId": "user_123"
},
"createdAt": "2024-01-15T10:30:00Z"
}
Retrieve details of a work order
curl https://agentgate.mynewapi.com/v1/work-orders/wo_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "wo_abc123xyz",
"taskPrompt": "Add input validation to the user registration endpoint",
"workspaceSource": {
"type": "git",
"repository": "https://github.com/your-org/your-repo",
"branch": "main"
},
"runId": "run_def456uvw",
"status": "running",
"maxIterations": 5,
"tenantContext": {
"tenantId": "acme-corp",
"tenantUserId": "user_123"
},
"createdAt": "2024-01-15T10:30:00Z"
}
wo_xxxxx).curl https://agentgate.mynewapi.com/v1/work-orders/wo_abc123 \
-H "Authorization: Bearer YOUR_API_KEY"
{
"id": "wo_abc123xyz",
"taskPrompt": "Add input validation to the user registration endpoint",
"workspaceSource": {
"type": "git",
"repository": "https://github.com/your-org/your-repo",
"branch": "main"
},
"runId": "run_def456uvw",
"status": "running",
"maxIterations": 5,
"tenantContext": {
"tenantId": "acme-corp",
"tenantUserId": "user_123"
},
"createdAt": "2024-01-15T10:30:00Z"
}