Task lifecycle
Submit a task
- Python
- curl
Request parameters
string
required
The fleet to execute this task.
string
required
The environment scope.
string
required
The workspace scope.
string
required
The work to perform, as natural language text. Describe the outcome, not step-by-step instructions.
string
Additional structured context as a JSON-encoded string. Not a raw object.
Response
string
Unique task identifier.
string
Current lifecycle state.
string
Fleet this task was submitted to.
string
ISO 8601 creation timestamp.
List tasks
Get a task
Cancel a task
Cancels a task inpending, planning, or executing state.
Replay a task
Re-runs a completed or failed task from its recorded execution.Stream a task
Follow execution in real time via SSE. See Streaming & Replay for event types.Rate limits
100 requests per organization per minute. Pagination:page >= 1, page_size 1–100 (default 20).
Common errors
Common errors
context field format
context field format
The
context field must be a JSON-encoded string, not a raw JSON object. Serialize your structured data before passing it:Errors
Troubleshooting
Task stays in pending and never starts
Task stays in pending and never starts
A submitted task remains
pending until it’s dispatched. If it never advances, confirm the fleet_id references a fleet that has agents attached, and that your organization has an active compute entitlement.Submit returns 403 compute entitlement required
Submit returns 403 compute entitlement required
The organization lacks the compute entitlement needed to run tasks. Check your plan in the Console.
context is being rejected
context is being rejected
context must be a JSON-encoded string, not a raw object. Serialize it before sending (for example, json.dumps(...)).Task failed — how do I find out why?
Task failed — how do I find out why?
Stream the task or replay it to see where execution failed, then adjust the
input or context.Security
Related pages
Fleets
Where tasks run.
Approvals
Gate execution with approval.
Streaming & Replay
Follow and reproduce tasks.
Tasks & Workflows
The underlying concept.

