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 OKHuman-in-the-loop responses
When the stream emits anagent.tool_use that requires confirmation, reply with user.tool_confirmation:
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 auser.message while the Session is already processing a turn:
Related
Session event stream
Stream agent thinking, messages, tool calls, and status over SSE.