Sessions
Create Session
client.beta.sessions.create(params, options?): BetaManagedAgentsSessionPOST/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.List Sessions
client.beta.sessions.list(params?, options?): BidirectionalPageCursor<BetaManagedAgentsSession>GET/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Get Session
client.beta.sessions.retrieve(sessionID, params?, options?): BetaManagedAgentsSessionGET/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Update Session
client.beta.sessions.update(sessionID, params, options?): BetaManagedAgentsSessionPOST/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Delete Session
client.beta.sessions.delete(sessionID, params?, options?): BetaManagedAgentsDeletedSessionDELETE/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Archive Session
client.beta.sessions.archive(sessionID, params?, options?): BetaManagedAgentsSessionPOST/v1/sessions/{session_id}/archive
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Models
SessionsEvents
List Events
client.beta.sessions.events.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionEvent>GET/v1/sessions/{session_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Send Events
client.beta.sessions.events.send(sessionID, params, options?): BetaManagedAgentsSendSessionEventsPOST/v1/sessions/{session_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Stream Events
client.beta.sessions.events.stream(sessionID, params?, options?): Stream<BetaManagedAgentsStreamSessionEvents>GET/v1/sessions/{session_id}/events/stream
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.SessionsResources
Add Session Resource
client.beta.sessions.resources.add(sessionID, params, options?): BetaManagedAgentsFileResourcePOST/v1/sessions/{session_id}/resources
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.List Session Resources
client.beta.sessions.resources.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionResource>GET/v1/sessions/{session_id}/resources
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Get Session Resource
client.beta.sessions.resources.retrieve(resourceID, params, options?): ResourceRetrieveResponseGET/v1/sessions/{session_id}/resources/{resource_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Update Session Resource
client.beta.sessions.resources.update(resourceID, params, options?): ResourceUpdateResponsePOST/v1/sessions/{session_id}/resources/{resource_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Delete Session Resource
client.beta.sessions.resources.delete(resourceID, params, options?): BetaManagedAgentsDeleteSessionResourceDELETE/v1/sessions/{session_id}/resources/{resource_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.SessionsThreads
List Session Threads
client.beta.sessions.threads.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionThread>GET/v1/sessions/{session_id}/threads
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Get Session Thread
client.beta.sessions.threads.retrieve(threadID, params, options?): BetaManagedAgentsSessionThreadGET/v1/sessions/{session_id}/threads/{thread_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Archive Session Thread
client.beta.sessions.threads.archive(threadID, params, options?): BetaManagedAgentsSessionThreadPOST/v1/sessions/{session_id}/threads/{thread_id}/archive
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.SessionsThreadsEvents
List Session Thread Events
client.beta.sessions.threads.events.list(threadID, params, options?): PageCursor<BetaManagedAgentsSessionEvent>GET/v1/sessions/{session_id}/threads/{thread_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Stream Session Thread Events
client.beta.sessions.threads.events.stream(threadID, params, options?): Stream<BetaManagedAgentsStreamSessionThreadEvents>GET/v1/sessions/{session_id}/threads/{thread_id}/stream
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.