Skip to main content
GET
https://agentgate.mynewapi.com
/
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"
}
id
string
required
Work order ID (format: wo_xxxxx).
id
string
Work order identifier.
taskPrompt
string
The task description.
workspaceSource
object
Workspace source configuration.
runId
string
Associated run identifier.
status
string
Current status of the work order.
createdAt
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"
}