Skip to main content
POST
Create task
Send a 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. Set agent 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 as data: 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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
command
string
required

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.

Minimum string length: 1
agent
string

Optional 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.

userIntent
enum<string>
default:SWE

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.

Available options:
SWE,
SCHEDULE,
DEV_ENVIRONMENT
title
string

Optional task title (auto-generated if not provided).

files
object[]

Optional file attachments provided as UI message file parts.

executionTarget
object

API keys are cloud-only. Local project chats are started in Twill Desktop.

reasoningEffort
enum<string>

Reasoning effort supported by the selected model.

Available options:
low,
medium,
high,
xhigh,
max,
ultra
parentId
string

Optional parent task ID.

Response

Task created

task
object
required
job
object
required