Create task
Start an agent run in a cloud workspace.
command describing the work. The response includes the new task and its first job.
Cloud tasks
The agent selects repositories from the workspace’s connected repos. Setagent to a complete provider/model ID or use the workspace’s routing defaults. reasoningEffort selects a supported effort level.
Normal tasks use "SWE" and run in their own fork of the workspace environment. Use userIntent: "DEV_ENVIRONMENT" to run in the main environment instead (Fork off in the app), for example to set it up or fix it. For planning, start command with /plan; approve the plan in the task chat, or send a follow-up starting with /agent to implement it.
Attachments and compatibility
Pass attachment content asdata: URLs in files. Remote HTTP URLs are not fetched. Legacy userIntent values PLAN, ASK, and GOAL are accepted as SWE; use native commands in command for planning or supported goal tracking.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Task description or instructions for the agent. Include a routing /trigger to select a harness, model, and effort config. Start with /plan to have the harness plan first, or /goal (Claude Code and Codex) to track a goal.
1Optional explicit harness. Must be a complete provider/model id (e.g. claude-code/opus, codex/gpt-6.1-sol, open-code/openai/gpt-6-sol); a provider-only value is rejected. Overrides routing for the task.
Where the task runs: SWE (default) runs it in its own fork of the workspace environment; DEV_ENVIRONMENT runs it in the main environment (Fork off in the app), so what it installs or configures stays for future tasks. SCHEDULE is used by automations and runs like SWE. The legacy values PLAN, ASK, and GOAL are still accepted for backward compatibility and treated as SWE; start the command with /plan to plan first.
SWE, SCHEDULE, DEV_ENVIRONMENT Optional task title (auto-generated if not provided).
Optional file attachments provided as UI message file parts.
API keys are cloud-only. Local project chats are started in Twill Desktop.
Reasoning effort supported by the selected model.
low, medium, high, xhigh, max, ultra Optional parent task ID.