セッションスレッドイベントの一覧
セッションスレッドイベントの一覧
Path parameters
Query parameters
limit: optional numberQuery parameter for limit
Query parameter for limit
Query parameter for page
Headers
"anthropic-beta": optional array of AnthropicBetaOptional header to specify the beta version(s) you want to use.
Optional header to specify the beta version(s) you want to use.
"message-batches-2024-09-24" or "prompt-caching-2024-07-31" or "computer-use-2024-10-22" or 41 more
Returns
data: optional array of BetaManagedAgentsSessionEventEvents for the thread, ordered by processed_at.
Events for the thread, ordered by processed_at.
BetaManagedAgentsUserMessageEvent object{ id, content, type, processed_at }A user message event in the session conversation.
A user message event in the session conversation.
BetaManagedAgentsUserInterruptEvent object{ id, type, processed_at, session_thread_id }An interrupt event that pauses agent execution and returns control to the user.
An interrupt event that pauses agent execution and returns control to the user.
Unique identifier for this event.
processed_at: optional string or nullA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
If absent, interrupts every non-archived thread in a multiagent session (or the primary alone in a single-agent session). If present, interrupts only the named thread.
BetaManagedAgentsUserToolConfirmationEvent object{ id, result, tool_use_id, 4 more }A tool confirmation event that approves or denies a pending tool execution.
A tool confirmation event that approves or denies a pending tool execution.
BetaManagedAgentsUserCustomToolResultEvent object{ id, custom_tool_use_id, type, 4 more }Event sent by the client providing the result of a custom tool execution.
Event sent by the client providing the result of a custom tool execution.
BetaManagedAgentsAgentCustomToolUseEvent object{ id, input, name, 3 more }Event emitted when the agent calls a custom tool. The session goes idle until the client sends a user.custom_tool_result event with the result.
Event emitted when the agent calls a custom tool. The session goes idle until the client sends a user.custom_tool_result event with the result.
Unique identifier for this event.
Input parameters for the tool call.
Name of the custom tool being called.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
When set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Echo this on a user.custom_tool_result event to route the result back.
BetaManagedAgentsAgentMessageEvent object{ id, content, processed_at, type }An agent response event in the session conversation.
An agent response event in the session conversation.
BetaManagedAgentsAgentThinkingEvent object{ id, processed_at, type }Indicates the agent is making forward progress via extended thinking. A progress signal, not a content carrier.
Indicates the agent is making forward progress via extended thinking. A progress signal, not a content carrier.
Unique identifier for this event.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsAgentMCPToolUseEvent object{ id, input, mcp_server_name, 5 more }Event emitted when the agent invokes a tool provided by an MCP server.
Event emitted when the agent invokes a tool provided by an MCP server.
BetaManagedAgentsAgentMCPToolResultEvent object{ id, mcp_tool_use_id, processed_at, 3 more }Event representing the result of an MCP tool execution.
Event representing the result of an MCP tool execution.
BetaManagedAgentsAgentToolUseEvent object{ id, input, name, 4 more }Event emitted when the agent invokes a built-in agent tool.
Event emitted when the agent invokes a built-in agent tool.
Unique identifier for this event.
Input parameters for the tool call.
Name of the agent tool being used.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
evaluated_permission: optional "allow" or "ask" or "deny"AgentEvaluatedPermission enum
AgentEvaluatedPermission enum
When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Echo this on a user.tool_confirmation event to route the approval back.
BetaManagedAgentsAgentToolResultEvent object{ id, processed_at, tool_use_id, 3 more }Event representing the result of an agent tool execution.
Event representing the result of an agent tool execution.
BetaManagedAgentsAgentThreadMessageReceivedEvent object{ id, content, from_session_thread_id, 3 more }Delivery event written to the target thread's input stream when an agent-to-agent message arrives.
Delivery event written to the target thread's input stream when an agent-to-agent message arrives.
BetaManagedAgentsAgentThreadMessageSentEvent object{ id, content, processed_at, 3 more }Observability event emitted to the sender's output stream when an agent-to-agent message is sent.
Observability event emitted to the sender's output stream when an agent-to-agent message is sent.
BetaManagedAgentsAgentThreadContextCompactedEvent object{ id, processed_at, type }Indicates that context compaction (summarization) occurred during the session.
Indicates that context compaction (summarization) occurred during the session.
Unique identifier for this event.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsSessionErrorEvent object{ id, error, processed_at, type }An error event indicating a problem occurred during session execution.
An error event indicating a problem occurred during session execution.
BetaManagedAgentsSessionStatusRescheduledEvent object{ id, processed_at, type }Indicates the session is recovering from an error state and is rescheduled for execution.
Indicates the session is recovering from an error state and is rescheduled for execution.
Unique identifier for this event.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsSessionStatusRunningEvent object{ id, processed_at, type }Indicates the session is actively running and the agent is working.
Indicates the session is actively running and the agent is working.
Unique identifier for this event.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsSessionStatusIdleEvent object{ id, processed_at, stop_reason, type }Indicates the agent has paused and is awaiting user input.
Indicates the agent has paused and is awaiting user input.
BetaManagedAgentsSessionStatusTerminatedEvent object{ id, processed_at, type }Indicates the session has terminated, either due to an error or completion.
Indicates the session has terminated, either due to an error or completion.
Unique identifier for this event.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsSessionThreadCreatedEvent object{ id, agent_name, processed_at, 2 more }Emitted when a subagent is spawned as a new thread. Written to the parent thread's output stream so clients observing the session see child creation.
Emitted when a subagent is spawned as a new thread. Written to the parent thread's output stream so clients observing the session see child creation.
Unique identifier for this event.
Name of the callable agent the thread runs.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
Public sthr_ ID of the newly created thread.
BetaManagedAgentsSpanOutcomeEvaluationStartEvent object{ id, iteration, outcome_id, 2 more }Emitted when an outcome evaluation cycle begins.
Emitted when an outcome evaluation cycle begins.
Unique identifier for this event.
iteration: number0-indexed revision cycle. 0 is the first evaluation; 1 is the re-evaluation after the first revision; etc.
0-indexed revision cycle. 0 is the first evaluation; 1 is the re-evaluation after the first revision; etc.
The outc_ ID of the outcome being evaluated.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsSpanOutcomeEvaluationEndEvent object{ id, explanation, iteration, 6 more }Emitted when an outcome evaluation cycle completes. Carries the verdict and aggregate token usage. A verdict of needs_revision means another evaluation cycle follows; satisfied, max_iterations_reached, failed, or interrupted are terminal — no further evaluation cycles follow.
Emitted when an outcome evaluation cycle completes. Carries the verdict and aggregate token usage. A verdict of needs_revision means another evaluation cycle follows; satisfied, max_iterations_reached, failed, or interrupted are terminal — no further evaluation cycles follow.
BetaManagedAgentsSpanModelRequestStartEvent object{ id, processed_at, type }Emitted when a model request is initiated by the agent.
Emitted when a model request is initiated by the agent.
Unique identifier for this event.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsSpanModelRequestEndEvent object{ id, is_error, model_request_start_id, 3 more }Emitted when a model request completes.
Emitted when a model request completes.
BetaManagedAgentsSpanOutcomeEvaluationOngoingEvent object{ id, iteration, outcome_id, 2 more }Periodic heartbeat emitted while an outcome evaluation cycle is in progress. Distinguishes 'evaluation is actively running' from 'evaluation is stuck' between the corresponding span.outcome_evaluation_start and span.outcome_evaluation_end events.
Periodic heartbeat emitted while an outcome evaluation cycle is in progress. Distinguishes 'evaluation is actively running' from 'evaluation is stuck' between the corresponding span.outcome_evaluation_start and span.outcome_evaluation_end events.
Unique identifier for this event.
iteration: number0-indexed revision cycle, matching the corresponding span.outcome_evaluation_start.
0-indexed revision cycle, matching the corresponding span.outcome_evaluation_start.
The outc_ ID of the outcome being evaluated.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsUserDefineOutcomeEvent object{ id, description, max_iterations, 4 more }Echo of a user.define_outcome input event. Carries the server-generated outcome_id that subsequent span.outcome_evaluation_* events reference.
Echo of a user.define_outcome input event. Carries the server-generated outcome_id that subsequent span.outcome_evaluation_* events reference.
BetaManagedAgentsSessionDeletedEvent object{ id, processed_at, type }Emitted when a session has been deleted. Terminates any active event stream — no further events will be emitted for this session.
Emitted when a session has been deleted. Terminates any active event stream — no further events will be emitted for this session.
Unique identifier for this event.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsSessionThreadStatusRunningEvent object{ id, agent_name, processed_at, 2 more }A session thread has begun executing. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
A session thread has begun executing. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
Unique identifier for this event.
Name of the agent the thread runs.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
Public sthr_ ID of the thread that started running.
BetaManagedAgentsSessionThreadStatusIdleEvent object{ id, agent_name, processed_at, 3 more }A session thread has yielded and is awaiting input. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
A session thread has yielded and is awaiting input. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
BetaManagedAgentsSessionThreadStatusTerminatedEvent object{ id, agent_name, processed_at, 2 more }A session thread has terminated and will accept no further input. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
A session thread has terminated and will accept no further input. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
Unique identifier for this event.
Name of the agent the thread runs.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
Public sthr_ ID of the thread that terminated.
BetaManagedAgentsUserToolResultEvent object{ id, tool_use_id, type, 4 more }Event sent by the client providing the result of an agent-toolset tool execution. Only valid on self_hosted environments, where sandbox-routed tools are executed by the client rather than the server.
Event sent by the client providing the result of an agent-toolset tool execution. Only valid on self_hosted environments, where sandbox-routed tools are executed by the client rather than the server.
BetaManagedAgentsSessionThreadStatusRescheduledEvent object{ id, agent_name, processed_at, 2 more }A session thread hit a transient error and is retrying automatically. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
A session thread hit a transient error and is retrying automatically. Emitted on the thread's own stream and cross-posted to the primary stream for child threads.
Unique identifier for this event.
Name of the agent the thread runs.
processed_at: stringA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
Public sthr_ ID of the thread that is retrying.
BetaManagedAgentsSessionUpdatedEvent object{ id, processed_at, type, 4 more }Emitted when an UpdateSession request changed at least one field. Carries only the fields that changed; absent fields were not part of the update. The new configuration applies from the next turn.
Emitted when an UpdateSession request changed at least one field. Carries only the fields that changed; absent fields were not part of the update. The new configuration applies from the next turn.
BetaManagedAgentsSystemMessageEvent object{ id, content, type, processed_at }A mid-conversation system message event. Carries system-role content that is appended to the session as a role: "system" turn.
A mid-conversation system message event. Carries system-role content that is appended to the session as a role: "system" turn.
Unique identifier for this event.
content: array of BetaManagedAgentsSystemContentBlock { text, type }System content blocks. Text-only.
System content blocks. Text-only.
text: stringThe text content.
The text content.
processed_at: optional string or nullA timestamp in RFC 3339 format
A timestamp in RFC 3339 format
BetaManagedAgentsSessionUsageEvent object{ id, processed_at, type, 2 more }Periodic snapshot of the session's cumulative usage and tracked list cost.
Periodic snapshot of the session's cumulative usage and tracked list cost.
Opaque cursor for the next page. Null when no more results.
curl https://api.anthropic.com/v1/sessions/$SESSION_ID/threads/$THREAD_ID/events \
-H 'anthropic-version: 2023-06-01' \
-H 'anthropic-beta: managed-agents-2026-04-01' \
-H "X-Api-Key: $ANTHROPIC_API_KEY"{
"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
{
"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"
}