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"
}
{
"error": {
"code": "WORK_ORDER_NOT_FOUND",
"message": "Work order not found"
}
}
Work Orders
Get Work Order
Retrieve details of a work order
GET
/
v1
/
work-orders
/
{id}
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"
}
{
"error": {
"code": "WORK_ORDER_NOT_FOUND",
"message": "Work order not found"
}
}
string
required
Work order ID (format:
wo_xxxxx).string
Work order identifier.
string
The task description.
object
Workspace source configuration.
string
Associated run identifier.
string
Current status of the work order.
string
ISO 8601 timestamp of creation.
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"
}
{
"error": {
"code": "WORK_ORDER_NOT_FOUND",
"message": "Work order not found"
}
}