List Session Thread Events
GET/v1/sessions/{session_id}/threads/{thread_id}/events
List Session Thread Events
Parameters
Returns
List Session Thread Events
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env["ANTHROPIC_API_KEY"] // This is the default and can be omitted
});
// Automatically fetches more pages as needed.
for await (const betaManagedAgentsSessionEvent of client.beta.sessions.threads.events.list(
"sthr_011CZkZVWa6oIjw0rgXZpnBt",
{ session_id: "sesn_011CZkZAtmR3yMPDzynEDxu7" }
)) {
console.log(betaManagedAgentsSessionEvent);
}Response 200
{
"data": [
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}
],
"next_page": "next_page"
}Returns Examples
Response 200
{
"data": [
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}
],
"next_page": "next_page"
}