Skip to main content
This endpoint accepts the same payload as the non-streaming create event endpoint but returns a text/event-stream response. You receive delta tokens, turn boundaries, and completion signals as individual SSE events.

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

The response is text/event-stream. Each line is an SSE event. Common event types include delta for content fragments and turn.completed when a model turn finishes.