Skip to main content
Use this endpoint to push an event into an active agent session. The body accepts a user message, tool calls, or tool results, and the API returns the created event with its generated identifier.

Endpoint

Authentication

Pass one of Authorization: Bearer <api-key> or Authorization: ApiKey <key>.

Path Parameters

string
required
The agent session identifier.

Request Body

string
required
The event role. Use user for messages or tool for tool results.
string
Text content of the message. Required when role is user.
array
Array of tool call objects emitted by the model.
array
Array of tool call result objects returned to the model.

Response

string
Unique event identifier.
string
The session this event belongs to.
string
Event type, for example message.
string
ISO 8601 timestamp of creation.