Send Events
beta.sessions.events.send_(session_id, **kwargs) -> BetaManagedAgentsSendSessionEventsPOST/v1/sessions/{session_id}/events
Send Events
require "anthropic"
anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")
beta_managed_agents_send_session_events = anthropic.beta.sessions.events.send_(
"sesn_011CZkZAtmR3yMPDzynEDxu7",
events: [{content: [{text: "Where is my order #1234?", type: :text}], type: :"user.message"}]
)
puts(beta_managed_agents_send_session_events){
"data": [
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}
]
}Returns Examples
{
"data": [
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}
]
}