Sessões
Criar sessão
beta.sessions.create(**kwargs) -> BetaManagedAgentsSessionPOST/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Listar sessões
beta.sessions.list(**kwargs) -> BidirectionalPageCursor<BetaManagedAgentsSession>GET/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Obter sessão
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.Atualizar sessão
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.Excluir sessão
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.Arquivar sessão
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
SessõesEventos
Listar eventos
beta.sessions.events.list(session_id, **kwargs) -> PageCursor<BetaManagedAgentsSessionEvent>GET/v1/sessions/{session_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Enviar eventos
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.Fazer streaming de eventos
beta.sessions.events.stream_events(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.SessõesRecursos
Adicionar recurso de sessão
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.Listar recursos de sessão
beta.sessions.resources.list(session_id, **kwargs) -> PageCursor<BetaManagedAgentsSessionResource>GET/v1/sessions/{session_id}/resources
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Obter recurso de sessão
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.Atualizar recurso de sessão
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.Excluir recurso de sessão
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.SessõesThreads
Listar threads de sessão
beta.sessions.threads.list(session_id, **kwargs) -> PageCursor<BetaManagedAgentsSessionThread>GET/v1/sessions/{session_id}/threads
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Obter thread de sessão
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.Arquivar thread de sessão
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.SessõesThreadsEventos
Listar eventos de thread de sessão
beta.sessions.threads.events.list(thread_id, **kwargs) -> 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.Fazer streaming de eventos de thread de sessão
beta.sessions.threads.events.stream_events(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.