Dispatch a new task and start an agent run.
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.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Task description or instructions for the agent.
Repository in owner/repo format or full GitHub URL.
Base branch (defaults to repository's default branch).
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), DEV_ENVIRONMENT (dev environment setup), or RALPH_LOOP (criteria-verified loop with budget).
SWE, PLAN, ASK, DEV_ENVIRONMENT, RALPH_LOOP Maximum budget in USD for a Ralph loop task. Required when userIntent is RALPH_LOOP.
Optional task title (auto-generated if not provided).
Optional file attachments provided as UI message file parts.