Skip to main content
POST
Run agent
Send input to give an instruction for this run only. Without it, the agent uses its configured instruction. Requires write:agents and an API key with an owner. To check the run, call List agent runs with the returned ID in run_ids. A run in pending_review needs a review in the dashboard; the API cannot approve it.

Authorizations

X-API-Key
string
header
required

Your organization API key. See Authentication.

Headers

Idempotency-Key
string
required

Unique key for this operation. Retry with the same key and request body after a timeout. Keys are retained for at least 24 hours.

Required string length: 1 - 255

Path Parameters

agent_id
string
required

ID of the agent.

Minimum string length: 1

Body

application/json
input
string

Instruction for this run only. Omit to use the configured execution message.

Required string length: 1 - 500
Example:

"Review unclassified September transactions and report the proposed changes."

Response

Accepted. Poll for the final outcome.

data
object
required