Create a new agent run.
Creates and initiates a long-running agent process based on the provided prompt. The process will complete asynchronously, and the response contains the agent run ID which can be used to check the status later. The requesting user must be a member of the specified organization.
This endpoint accepts both a text prompt and an optional image file upload.
Rate limit: 10 requests per minute.
List of base64 encoded data URIs representing images to be processed by the agent
Arbitrary JSON metadata to be stored with the agent run
ID of the repository to use for the agent run
Model to use for this agent run (optional, uses org default if not specified)
Type of agent to use for this agent run (optional, uses org default if not specified)
codegen, claude_code Successful Response
Represents an agent run in API responses
LOCAL, SLACK, GITHUB, GITHUB_CHECK_SUITE, GITHUB_PR_REVIEW, LINEAR, API, CHAT, JIRA, CLICKUP, MONDAY, SETUP_COMMANDS