Stream Session Thread Events
GET/v1/sessions/{session_id}/threads/{thread_id}/stream
Stream Session Thread Events
Parameters
Returns
Stream Session Thread Events
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
$client = new Client(apiKey: 'my-anthropic-api-key');
$betaManagedAgentsStreamSessionThreadEvents = $client
->beta
->sessions
->threads
->events
->streamStream(
'sthr_011CZkZVWa6oIjw0rgXZpnBt',
sessionID: 'sesn_011CZkZAtmR3yMPDzynEDxu7',
eventDeltas: [BetaManagedAgentsDeltaType::AGENT_MESSAGE],
betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
workspaceID: 'wrkspc_011CZkZaBF1tNoB5wlCeusgy',
);
var_dump($betaManagedAgentsStreamSessionThreadEvents);Response 200
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}Returns Examples
Response 200
{
"id": "sevt_011CZkZGOp0iBcp4kaQSihUmy",
"content": [
{
"text": "Where is my order #1234?",
"type": "text"
}
],
"type": "user.message",
"processed_at": "2026-03-15T10:00:00Z"
}