v1
latestOpenAPI 3.0.0Proprietary2026-07-132885152.8 KBRun a cloud agent
Spawn a cloud agent with a prompt and optional configuration. The agent will be queued for execution and assigned a unique run ID.
Request body
The prompt/instruction for the agent to execute. Required unless a skill is specified via the skill field, config.skill_spec, or config.skills. Handoff requests may omit prompt when conversation_id is set.
Query mode for an agent run.
- normal: Standard user query (default).
- plan: Planning Mode. The agent researches and creates a plan, then waits for approval before execution.
- orchestrate: Orchestration Mode. The agent proposes an orchestration plan and must not start child agents until approved.
Skill specification to use as the base prompt for the agent. Supported formats:
- "repo:skill_name" - Simple name in specific repo
- "repo:skill_path" - Full path in specific repo
- "org/repo:skill_name" - Simple name with org and repo
- "org/repo:skill_path" - Full path with org and repo When provided, this takes precedence over config.skill_spec.
Custom title for the run (auto-generated if not provided)
Whether to create a team-owned run. Defaults to true for users on a single team.
Optional agent identity UID to use as the execution principal for the run. This is only valid for runs that are team owned.
Optional conversation ID to continue an existing conversation. If provided, the agent will continue from where the previous run left off.
Optional run ID of the parent that spawned this run. Used for orchestration hierarchies.
Whether the run should be interactive. If not set, defaults to false.
Response
Run created successfully
Unique identifier for the created run
Unique identifier for the task (same as run_id). Deprecated - use run_id instead.
Current state of the run:
- QUEUED: Run is waiting to be picked up
- PENDING: Run is being prepared
- CLAIMED: Run has been claimed by a worker
- INPROGRESS: Run is actively being executed
- SUCCEEDED: Run completed successfully
- FAILED: Run failed
- BLOCKED: Run is blocked (e.g., awaiting user input or approval)
- ERROR: Run encountered an error
- CANCELLED: Run was cancelled by user
Whether the system is at capacity when the run was created