Skip to main content
POST /api/v1/cloud/sessions/{session_id}/events Sends one or more accepted events to a Session. User messages trigger asynchronous Agent processing; use the list or stream endpoints to read Agent output.

Path parameters

Headers

Request body

Supported event types

Plain string content is not supported for user.message or system.message.

Example request

Example response

HTTP 200 OK

Human-in-the-loop responses

When the stream emits an agent.tool_use that requires confirmation, reply with user.tool_confirmation:
When the stream emits agent.custom_tool_use, execute the tool in your client and reply with user.custom_tool_result:

Errors

Example: 400 invalid content

Sending user.message with a plain string instead of a content block array:

Example: 404 Session not found

Example: 409 Session is running

Sending a user.message while the Session is already processing a turn:
See Errors for the full error envelope.

Session event stream

Stream agent thinking, messages, tool calls, and status over SSE.