text/event-stream response. You receive delta tokens, turn boundaries, and completion signals as individual SSE events.
Endpoint
Authentication
Pass one ofAuthorization: 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 istext/event-stream. Each line is an SSE event. Common event types include delta for content fragments and turn.completed when a model turn finishes.