Sessions
Créer une session
beta.sessions.create(**kwargs) -> BetaManagedAgentsSessionPOST/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Lister les sessions
beta.sessions.list(**kwargs) -> SyncBidirectionalPageCursor[BetaManagedAgentsSession]GET/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Obtenir une 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.Mettre à jour une 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.Supprimer une 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.Archiver une 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
SessionsÉvénements
Lister les événements
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.Envoyer des événements
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.Diffuser les événements en streaming
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.SessionsRessources
Ajouter une ressource de session
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.Lister les ressources de session
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.Obtenir une ressource de session
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.Mettre à jour une ressource de session
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.Supprimer une ressource de session
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.SessionsFils
Lister les fils de session
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.Obtenir un fil de session
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.Archiver un fil de session
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.SessionsFilsÉvénements
Lister les événements d'un fil de session
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.Diffuser en streaming les événements d'un fil de session
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.