Skip to main content
POST
Run agent (single-shot)

Autorizações

X-API-Key
string
header
obrigatório

Parâmetros de caminho

agent_id
string
obrigatório

Corpo

application/json
messages
MessageCreateRequest · object[]
obrigatório
Required array length: 1 - 10 elements
user
SessionUser · object | null

Reference to a user when creating a session. Lookup-only. Use POST /users to create users.

context
Context · object | null

Free-form key/value pairs injected into the agent's system context for this run.

metadata
Metadata · object | null

Integrator-defined storage. Not seen by the agent.

persist
boolean
padrão:true

If true, a session is created and persisted. If false, the run is intended to be ephemeral (current implementation still persists; this will change in a future release).

Resposta

Successful Response

agent_message
Message · object
obrigatório
session_id
string | null