v49

latestOpenAPI 3.1.0raw.githubusercontent.com2026-07-261319281.7 MB

Send Events

post/v1/sessions/{session_id}/events?beta=true

Path parameters

session_idstring required

Path parameter session_id

Headers

anthropic-versionstring
anthropic-betastring

Request body

Example request

{
  "events": [
    {
      "type": "user.message",
      "content": [
        {
          "type": "text",
          "text": "Where is my order #1234?"
        }
      ]
    }
  ]
}

Response

Successful response (OK)

Example response

{
  "data": [
    {
      "type": "user.message",
      "id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
      "content": [
        {
          "type": "text",
          "text": "Where is my order #1234?"
        }
      ],
      "processed_at": "2026-03-15T10:00:00Z"
    }
  ]
}