API reference
Create task
Dispatch a new task and start an agent run.
POST
Create task
Create a new task from a command prompt. The agent picks the repository at runtime from the workspace’s connected repos, so no repository or branch needs to be supplied. You can optionally setDocumentation Index
Fetch the complete documentation index at: https://docs.twill.ai/llms.txt
Use this file to discover all available pages before exploring further.
userIntent to choose the initial run type and attach files so the agent can reference uploaded assets in its first message. The response includes the created task plus the first job that was queued for it.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Task description or instructions for the agent.
Provider+model id override (e.g. claude-code/sonnet, codex/gpt-5.4, open-code/openai/gpt-5.4).
Run type: SWE (implement directly), PLAN (produce a plan), ASK (Q&A mode), or DEV_ENVIRONMENT (dev environment setup).
Available options:
SWE, PLAN, ASK, DEV_ENVIRONMENT Optional task title (auto-generated if not provided).
Optional file attachments provided as UI message file parts.
Create task