Claude Platform Docs

Thread

Daftar Thread Sesi
ThreadListPage Beta.Sessions.Threads.List(parameters, cancellationToken = default)
GET/v1/sessions/{session_id}/threads
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
Dapatkan Thread Sesi
BetaManagedAgentsSessionThread Beta.Sessions.Threads.Retrieve(parameters, cancellationToken = default)
GET/v1/sessions/{session_id}/threads/{thread_id}
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
Arsipkan Thread Sesi
BetaManagedAgentsSessionThread Beta.Sessions.Threads.Archive(parameters, cancellationToken = default)
POST/v1/sessions/{session_id}/threads/{thread_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
Models
class BetaManagedAgentsInlineAgent { Type = "inline"; Description; ExecutionIdentity; /* 6 more */ }

An agent that has no Agent resource, and so no id or version. It is defined inline, in a workflow run's plan or when a session thread is spawned, and is not saved.

class BetaManagedAgentsSessionThread { Type = "session_thread"; ID; Agent; /* 9 more */ }

An execution thread within a session. Each session has one primary thread plus zero or more child threads.

class BetaManagedAgentsSessionThreadStats { ActiveSeconds; DurationSeconds; StartupSeconds; }

Timing statistics for a session thread.

double ActiveSeconds

Cumulative time in seconds the thread spent actively running. Excludes idle time.

formatdouble
double DurationSeconds

Elapsed time since thread creation in seconds. For archived threads, frozen at the final update.

formatdouble
double StartupSeconds

Time in seconds for the thread to begin running. Zero for child threads, which start immediately.

formatdouble
enum BetaManagedAgentsSessionThreadStatus
Running("running")
Idle("idle")
Rescheduling("rescheduling")
Terminated("terminated")
class BetaManagedAgentsSessionThreadUsage { ActiveSeconds; CacheCreation; CacheReadInputTokens; /* 4 more */ }

Cumulative token usage for a session thread across all turns.

class BetaManagedAgentsStreamSessionThreadEvents: union

Server-sent event in a single thread's stream.

ThreadEvent

Daftar Event Thread Sesi
EventListPage Beta.Sessions.Threads.Events.List(parameters, cancellationToken = default)
GET/v1/sessions/{session_id}/threads/{thread_id}/events
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers
Stream Event Thread Sesi
IAsyncEnumerable<BetaManagedAgentsStreamSessionThreadEvents> Beta.Sessions.Threads.Events.StreamStreaming(parameters, cancellationToken = default)
GET/v1/sessions/{session_id}/threads/{thread_id}/stream
Requires anthropic-beta: managed-agents-2026-04-01. How to send beta headers