会话
创建会话
$ ant beta:sessions createPOST/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出会话
$ ant beta:sessions listGET/v1/sessions
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.获取会话
$ ant beta:sessions retrieveGET/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新会话
$ ant beta:sessions updatePOST/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.删除会话
$ ant beta:sessions deleteDELETE/v1/sessions/{session_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.归档会话
$ ant beta:sessions archivePOST/v1/sessions/{session_id}/archive
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Models
会话事件
列出事件
$ ant beta:sessions:events listGET/v1/sessions/{session_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.发送事件
$ ant beta:sessions:events sendPOST/v1/sessions/{session_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.流式传输事件
$ ant beta:sessions:events streamGET/v1/sessions/{session_id}/events/stream
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.会话资源
添加会话资源
$ ant beta:sessions:resources addPOST/v1/sessions/{session_id}/resources
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出会话资源
$ ant beta:sessions:resources listGET/v1/sessions/{session_id}/resources
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.获取会话资源
$ ant beta:sessions:resources retrieveGET/v1/sessions/{session_id}/resources/{resource_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新会话资源
$ ant beta:sessions:resources updatePOST/v1/sessions/{session_id}/resources/{resource_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.删除会话资源
$ ant beta:sessions:resources deleteDELETE/v1/sessions/{session_id}/resources/{resource_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.会话线程
列出会话线程
$ ant beta:sessions:threads listGET/v1/sessions/{session_id}/threads
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.获取会话线程
$ ant beta:sessions:threads retrieveGET/v1/sessions/{session_id}/threads/{thread_id}
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.归档会话线程
$ ant beta:sessions:threads archivePOST/v1/sessions/{session_id}/threads/{thread_id}/archive
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.会话线程事件
列出会话线程事件
$ ant beta:sessions:threads:events listGET/v1/sessions/{session_id}/threads/{thread_id}/events
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.流式传输会话线程事件
$ ant beta:sessions:threads:events streamGET/v1/sessions/{session_id}/threads/{thread_id}/stream
Requires
anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.