Task Management
Submit tasks to agents, monitor their progress, and retrieve results.Submit Task
Submit a new task to an agent.Endpoint
Authentication
Requires JWT token or Platform API key.Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Agent UUID |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Task description/instructions |
priority | number | No | Priority level 1-10 (default: 5) |
timeout_override | number | No | Override default timeout (seconds) |
metadata | object | No | Custom metadata |
callback_mode | string | No | Result delivery: poll or webhook (default: poll) |
webhook_url | string | Conditional | Required if callback_mode is webhook |
Example Request
Response
Status Codes
| Code | Description |
|---|---|
202 | Task accepted and queued |
400 | Invalid request |
401 | Invalid authentication |
404 | Agent not found |
503 | Agent unavailable (paused, stopped, or error state) |
Get Task Status
Get the current status and results of a task.Endpoint
Authentication
Requires JWT token or Platform API key.Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Agent UUID |
taskId | string | Task UUID |
Example Request
Response (Running)
Response (Completed)
Task States
| State | Description |
|---|---|
queued | Waiting to start |
running | Currently executing |
awaiting_input | Needs user input |
completed | Finished successfully |
failed | Encountered an error |
cancelled | Cancelled by user |
Send Message to Task
Send a message or input to a running task (useful when task isawaiting_input).
Endpoint
Authentication
Requires JWT token or Platform API key.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
message | string | Yes | Message to send to the task |
Example Request
Response
Cancel Task
Cancel a running or queued task.Endpoint
Authentication
Requires JWT token or Platform API key.Example Request
Response
Status Codes
| Code | Description |
|---|---|
200 | Task cancelled successfully |
400 | Task cannot be cancelled (already completed/failed) |
404 | Task not found |

