Sessions
Create Session
beta.sessions.create(**kwargs) -> BetaManagedAgentsSessionPOST/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.List Sessions
beta.sessions.list(**kwargs) -> SyncBidirectionalPageCursor[BetaManagedAgentsSession]GET/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Get Session
beta.sessions.retrieve(session_id, **kwargs) -> BetaManagedAgentsSessionGET/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Update Session
beta.sessions.update(session_id, **kwargs) -> BetaManagedAgentsSessionPOST/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Delete Session
beta.sessions.delete(session_id, **kwargs) -> BetaManagedAgentsDeletedSessionDELETE/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Archive Session
beta.sessions.archive(session_id, **kwargs) -> BetaManagedAgentsSessionPOST/v1/sessions/{session_id}/archive
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Models
SessionsEvents
List Events
beta.sessions.events.list(session_id, **kwargs) -> SyncPageCursor[BetaManagedAgentsSessionEvent]GET/v1/sessions/{session_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Send Events
beta.sessions.events.send(session_id, **kwargs) -> BetaManagedAgentsSendSessionEventsPOST/v1/sessions/{session_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Stream Events
beta.sessions.events.stream(session_id, **kwargs) -> 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
beta.sessions.resources.add(session_id, **kwargs) -> BetaManagedAgentsFileResourcePOST/v1/sessions/{session_id}/resources
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.List Session Resources
beta.sessions.resources.list(session_id, **kwargs) -> SyncPageCursor[BetaManagedAgentsSessionResource]GET/v1/sessions/{session_id}/resources
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Get Session Resource
beta.sessions.resources.retrieve(resource_id, **kwargs) -> 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
beta.sessions.resources.update(resource_id, **kwargs) -> 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
beta.sessions.resources.delete(resource_id, **kwargs) -> 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
beta.sessions.threads.list(session_id, **kwargs) -> SyncPageCursor[BetaManagedAgentsSessionThread]GET/v1/sessions/{session_id}/threads
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Get Session Thread
beta.sessions.threads.retrieve(thread_id, **kwargs) -> 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
beta.sessions.threads.archive(thread_id, **kwargs) -> 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
beta.sessions.threads.events.list(thread_id, **kwargs) -> SyncPageCursor[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
beta.sessions.threads.events.stream(thread_id, **kwargs) -> 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.