Skip to main content
POST
Create Agent Run

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

Body

multipart/form-data
message
string
required

The input message or prompt to send to the agent

stream
boolean
default:true

Enable streaming responses via Server-Sent Events (SSE)

session_id
string | null

Session ID for conversation continuity. If not provided, a new session is created

user_id
string | null

User identifier for tracking and personalization

files
string[] | null

Files to upload (images, audio, video, or documents)

version
string | null

Agent version to use for this run

background
boolean
default:false

Run in background and return immediately with run metadata (requires database)

factory_input
string | null

JSON object with factory-specific parameters for dynamic agent construction

Response

Agent run executed successfully