Beta
Models
Errors
Beta模型
取得模型
client.beta.models.retrieve(modelID, params?, options?): BetaModelInfo取得特定模型。
Beta訊息
建立訊息
client.beta.messages.create(params, options?): BetaMessage | Stream<BetaRawMessageStreamEvent>傳送包含文字和/或圖片內容的結構化輸入訊息清單,模型將產生對話中的下一則訊息。
計算訊息中的 Token 數
client.beta.messages.countTokens(params, options?): BetaMessageTokensCount計算訊息中的 Token 數量。
Beta訊息批次
建立訊息批次
client.beta.messages.batches.create(params, options?): BetaMessageBatch傳送一批訊息建立請求。
擷取訊息批次
client.beta.messages.batches.retrieve(messageBatchID, params?, options?): BetaMessageBatch此端點具冪等性,可用於輪詢訊息批次是否完成。若要存取訊息批次的結果,請對回應中的 results_url 欄位發出請求。
列出訊息批次
client.beta.messages.batches.list(params?, options?): Page<BetaMessageBatch>列出工作區內的所有訊息批次。最近建立的批次會優先傳回。
取消訊息批次
client.beta.messages.batches.cancel(messageBatchID, params?, options?): BetaMessageBatch批次可在處理結束前隨時取消。一旦啟動取消,批次便會進入 canceling 狀態,此時系統可能會先完成任何進行中且不可中斷的請求,然後才完成取消。
刪除訊息批次
client.beta.messages.batches.delete(messageBatchID, params?, options?): BetaDeletedMessageBatch刪除訊息批次。
擷取訊息批次結果
client.beta.messages.batches.results(messageBatchID, params?, options?): JSONLDecoder<BetaMessageBatchIndividualResponse>以 .jsonl 檔案的形式串流傳輸訊息批次的結果。
Beta代理程式
建立代理程式
client.beta.agents.create(params, options?): BetaManagedAgentsAgentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出代理程式
client.beta.agents.list(params?, options?): PageCursor<BetaManagedAgentsAgent>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.取得代理程式
client.beta.agents.retrieve(agentID, params?, options?): BetaManagedAgentsAgentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新代理程式
client.beta.agents.update(agentID, params, options?): BetaManagedAgentsAgentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.封存代理程式
client.beta.agents.archive(agentID, params?, options?): BetaManagedAgentsAgentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta代理程式版本
列出代理程式版本
client.beta.agents.versions.list(agentID, params?, options?): PageCursor<BetaManagedAgentsAgent>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta環境
建立環境
client.beta.environments.create(params, options?): BetaEnvironment使用指定的設定建立新環境。
列出環境
client.beta.environments.list(params?, options?): PageCursor<BetaEnvironment>列出環境,支援分頁。
取得環境
client.beta.environments.retrieve(environmentID, params?, options?): BetaEnvironment依 ID 擷取特定環境。
更新環境
client.beta.environments.update(environmentID, params, options?): BetaEnvironment更新現有環境的設定。
刪除環境
client.beta.environments.delete(environmentID, params?, options?): BetaEnvironmentDeleteResponse依 ID 刪除環境。傳回刪除確認。
封存環境
client.beta.environments.archive(environmentID, params?, options?): BetaEnvironment依 ID 封存環境。已封存的環境無法用於建立新的工作階段。
Beta環境工作
取得工作項目
client.beta.environments.work.retrieve(workID, params, options?): BetaSelfHostedWorkRetrieve detailed information about a specific work item.
輪詢工作
client.beta.environments.work.poll(environmentID, params?, options?): BetaSelfHostedWork | null注意:這些端點會由 SDK 和 CLI 中提供的預先建置環境工作程式自動呼叫,用於協調使用自行託管沙箱環境的工作階段。此處列出僅供參考;您無需直接呼叫它們。
確認工作
client.beta.environments.work.ack(workID, params, options?): BetaSelfHostedWork注意:這些端點會由 SDK 和 CLI 中提供的預先建置環境工作程式自動呼叫,用於協調使用自行託管沙箱環境的工作階段。此處列出僅供參考;您無需直接呼叫它們。
記錄心跳
client.beta.environments.work.heartbeat(workID, params, options?): BetaSelfHostedWorkHeartbeatResponse注意:這些端點會由 SDK 和 CLI 中提供的預先建置環境工作程式自動呼叫,用於協調使用自行託管沙箱環境的工作階段。此處列出僅供參考;您無需直接呼叫它們。
停止工作
client.beta.environments.work.stop(workID, params, options?): BetaSelfHostedWorkStop a work item, initiating graceful or forced shutdown.
列出工作項目
client.beta.environments.work.list(environmentID, params?, options?): PageCursor<BetaSelfHostedWork>List work items in an environment.
更新工作項目
client.beta.environments.work.update(workID, params, options?): BetaSelfHostedWorkUpdate work item metadata with merge semantics.
取得佇列統計資料
client.beta.environments.work.stats(environmentID, params?, options?): BetaSelfHostedWorkQueueStats取得環境工作佇列的統計資料。
Beta工作階段
建立工作階段
client.beta.sessions.create(params, options?): BetaManagedAgentsSessionanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出工作階段
client.beta.sessions.list(params?, options?): BidirectionalPageCursor<BetaManagedAgentsSession>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.取得工作階段
client.beta.sessions.retrieve(sessionID, params?, options?): BetaManagedAgentsSessionanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新工作階段
client.beta.sessions.update(sessionID, params, options?): BetaManagedAgentsSessionanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.刪除工作階段
client.beta.sessions.delete(sessionID, params?, options?): BetaManagedAgentsDeletedSessionanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.封存工作階段
client.beta.sessions.archive(sessionID, params?, options?): BetaManagedAgentsSessionanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta工作階段事件
列出事件
client.beta.sessions.events.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionEvent>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.傳送事件
client.beta.sessions.events.send(sessionID, params, options?): BetaManagedAgentsSendSessionEventsanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.串流事件
client.beta.sessions.events.stream(sessionID, params?, options?): Stream<BetaManagedAgentsStreamSessionEvents>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta工作階段資源
新增工作階段資源
client.beta.sessions.resources.add(sessionID, params, options?): BetaManagedAgentsFileResourceanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出工作階段資源
client.beta.sessions.resources.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionResource>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.取得工作階段資源
client.beta.sessions.resources.retrieve(resourceID, params, options?): ResourceRetrieveResponseanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新工作階段資源
client.beta.sessions.resources.update(resourceID, params, options?): ResourceUpdateResponseanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.刪除工作階段資源
client.beta.sessions.resources.delete(resourceID, params, options?): BetaManagedAgentsDeleteSessionResourceanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta工作階段執行緒
列出工作階段執行緒
client.beta.sessions.threads.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionThread>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.取得工作階段執行緒
client.beta.sessions.threads.retrieve(threadID, params, options?): BetaManagedAgentsSessionThreadanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.封存工作階段執行緒
client.beta.sessions.threads.archive(threadID, params, options?): BetaManagedAgentsSessionThreadanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta工作階段執行緒事件
列出工作階段執行緒事件
client.beta.sessions.threads.events.list(threadID, params, options?): PageCursor<BetaManagedAgentsSessionEvent>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.串流工作階段執行緒事件
client.beta.sessions.threads.events.stream(threadID, params, options?): Stream<BetaManagedAgentsStreamSessionThreadEvents>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta部署
建立部署
client.beta.deployments.create(params, options?): BetaManagedAgentsDeploymentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出部署
client.beta.deployments.list(params?, options?): PageCursor<BetaManagedAgentsDeployment>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.取得部署
client.beta.deployments.retrieve(deploymentID, params?, options?): BetaManagedAgentsDeploymentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新部署
client.beta.deployments.update(deploymentID, params, options?): BetaManagedAgentsDeploymentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.封存部署
client.beta.deployments.archive(deploymentID, params?, options?): BetaManagedAgentsDeploymentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.立即執行部署
client.beta.deployments.run(deploymentID, params?, options?): BetaManagedAgentsDeploymentRunanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.暫停部署
client.beta.deployments.pause(deploymentID, params?, options?): BetaManagedAgentsDeploymentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.取消暫停部署
client.beta.deployments.unpause(deploymentID, params?, options?): BetaManagedAgentsDeploymentanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta部署執行
列出部署執行
client.beta.deploymentRuns.list(params?, options?): PageCursor<BetaManagedAgentsDeploymentRun>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.取得部署執行
client.beta.deploymentRuns.retrieve(deploymentRunID, params?, options?): BetaManagedAgentsDeploymentRunanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta保存庫
建立保存庫
client.beta.vaults.create(params, options?): BetaManagedAgentsVaultanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出保存庫
client.beta.vaults.list(params?, options?): PageCursor<BetaManagedAgentsVault>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.擷取保存庫
client.beta.vaults.retrieve(vaultID, params?, options?): BetaManagedAgentsVaultanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新保存庫
client.beta.vaults.update(vaultID, params, options?): BetaManagedAgentsVaultanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.刪除保存庫
client.beta.vaults.delete(vaultID, params?, options?): BetaManagedAgentsDeletedVaultanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.封存保存庫
client.beta.vaults.archive(vaultID, params?, options?): BetaManagedAgentsVaultanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta保存庫憑證
建立憑證
client.beta.vaults.credentials.create(vaultID, params, options?): BetaManagedAgentsCredentialanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出憑證
client.beta.vaults.credentials.list(vaultID, params?, options?): PageCursor<BetaManagedAgentsCredential>anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.擷取憑證
client.beta.vaults.credentials.retrieve(credentialID, params, options?): BetaManagedAgentsCredentialanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新憑證
client.beta.vaults.credentials.update(credentialID, params, options?): BetaManagedAgentsCredentialanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.刪除憑證
client.beta.vaults.credentials.delete(credentialID, params, options?): BetaManagedAgentsDeletedCredentialanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.封存憑證
client.beta.vaults.credentials.archive(credentialID, params, options?): BetaManagedAgentsCredentialanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.驗證 MCP OAuth 憑證
client.beta.vaults.credentials.mcpOAuthValidate(credentialID, params, options?): BetaManagedAgentsCredentialValidationanthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta記憶儲存區
建立記憶儲存區
client.beta.memoryStores.create(params, options?): BetaManagedAgentsMemoryStoreanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出記憶儲存區
client.beta.memoryStores.list(params?, options?): PageCursor<BetaManagedAgentsMemoryStore>anthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.擷取記憶儲存區
client.beta.memoryStores.retrieve(memoryStoreID, params?, options?): BetaManagedAgentsMemoryStoreanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新記憶儲存區
client.beta.memoryStores.update(memoryStoreID, params, options?): BetaManagedAgentsMemoryStoreanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.刪除記憶儲存區
client.beta.memoryStores.delete(memoryStoreID, params?, options?): BetaManagedAgentsDeletedMemoryStoreanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.封存記憶儲存區
client.beta.memoryStores.archive(memoryStoreID, params?, options?): BetaManagedAgentsMemoryStoreanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta記憶儲存區記憶
建立記憶
client.beta.memoryStores.memories.create(memoryStoreID, params, options?): BetaManagedAgentsMemoryanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.列出記憶
client.beta.memoryStores.memories.list(memoryStoreID, params?, options?): PageCursor<BetaManagedAgentsMemoryListItem>anthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.擷取記憶
client.beta.memoryStores.memories.retrieve(memoryID, params, options?): BetaManagedAgentsMemoryanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.更新記憶
client.beta.memoryStores.memories.update(memoryID, params, options?): BetaManagedAgentsMemoryanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.刪除記憶
client.beta.memoryStores.memories.delete(memoryID, params, options?): BetaManagedAgentsDeletedMemoryanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta記憶儲存區記憶版本
列出記憶版本
client.beta.memoryStores.memoryVersions.list(memoryStoreID, params?, options?): PageCursor<BetaManagedAgentsMemoryVersion>anthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.擷取記憶版本
client.beta.memoryStores.memoryVersions.retrieve(memoryVersionID, params, options?): BetaManagedAgentsMemoryVersionanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.塗銷記憶版本
client.beta.memoryStores.memoryVersions.redact(memoryVersionID, params, options?): BetaManagedAgentsMemoryVersionanthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.Beta檔案
取得檔案中繼資料
client.beta.files.retrieveMetadata(fileID, params?, options?): BetaFileMetadataBeta技能
刪除技能
client.beta.skills.delete(skillID, params?, options?): BetaDeletedSkillBeta技能版本
建立技能版本
client.beta.skills.versions.create(skillID, params, options?): BetaSkillVersion列出技能版本
client.beta.skills.versions.list(skillID, params?, options?): PageCursor<BetaSkillVersion>下載技能版本內容
client.beta.skills.versions.download(version, params, options?): Response以 zip 壓縮檔形式下載技能版本的內容。
取得技能版本
client.beta.skills.versions.retrieve(version, params, options?): BetaSkillVersion刪除技能版本
client.beta.skills.versions.delete(version, params, options?): BetaDeletedSkillVersionBetaWebhook
解包
client.beta.webhooks.unwrap(body, options): BetaWebhookEvent使用您的 webhook 簽署金鑰,從 webhook-id、webhook-timestamp 與 webhook-signature
標頭驗證 webhook 簽章,然後將酬載剖析為事件。若
簽章遺失或無效,則會失敗。
未驗證剖析
client.beta.webhooks.parseUnverified(body): BetaWebhookEvent將 webhook 酬載剖析為事件,但不驗證其簽章。除非
您已自行驗證簽章,否則建議優先使用 unwrap()。
Beta使用者設定檔
Register the end customers that your platform serves, so each request can name who it's for. To get started, see the User profiles guide.
建立使用者設定檔
client.beta.userProfiles.create(params, options?): BetaUserProfileRegister one of your end customers and get the ID to send on the requests you make for them.
列出使用者設定檔
client.beta.userProfiles.list(params?, options?): PageCursor<BetaUserProfile>List the user profiles in your organization, newest first by default.
取得使用者設定檔
client.beta.userProfiles.retrieve(userProfileID, params?, options?): BetaUserProfileGet a user profile by ID to check the details stored for it.
更新使用者設定檔
client.beta.userProfiles.update(userProfileID, params, options?): BetaUserProfileChange the details of a user profile, leaving the fields that you don't send as they are.
刪除使用者設定檔
client.beta.userProfiles.delete(userProfileID, params?, options?): BetaDeletedUserProfileDelete a user profile, for example when the end customer closes their account.
建立註冊 URL
client.beta.userProfiles.createEnrollmentURL(userProfileID, params?, options?): BetaUserProfileEnrollmentURLCreate a link that sends the profile's end customer to the Verification Portal from Claude Platform on AWS.
Beta使用者設定檔動作 URL
建立動作 URL
client.beta.userProfiles.actionURLs.create(userProfileID, params, options?): BetaUserProfileActionURLCreate a link that sends the profile's end customer to the Verification Portal.
Beta夢境
建立夢境
client.beta.dreams.create(params, options?): BetaDreamanthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.啟動一個非同步工作,利用過去的工作階段產生記憶儲存區的重新組織版本,並取回夢境以輪詢結果。
列出夢境
client.beta.dreams.list(params?, options?): PageCursor<BetaDream>anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.列出工作區中的夢境,最新的在前。
取得夢境
client.beta.dreams.retrieve(dreamID, params?, options?): BetaDreamanthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.依 ID 取得夢境,以檢查其狀態、輸出記憶儲存區及權杖用量。
取消夢境
client.beta.dreams.cancel(dreamID, params?, options?): BetaDreamanthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.停止處於 pending 或 running 狀態的夢境。
封存夢境
client.beta.dreams.archive(dreamID, params?, options?): BetaDreamanthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.將 completed、failed 或 canceled 的夢境從預設的夢境清單中隱藏。
Beta通道
建立通道
client.beta.tunnels.create(params, options?): BetaTunnelanthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
取得通道
client.beta.tunnels.retrieve(tunnelID, params?, options?): BetaTunnelanthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
列出通道
client.beta.tunnels.list(params?, options?): PageCursor<BetaTunnel>anthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
封存通道
client.beta.tunnels.archive(tunnelID, params?, options?): BetaTunnelanthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
顯示通道權杖
client.beta.tunnels.revealToken(tunnelID, params?, options?): BetaTunnelTokenanthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
輪替通道權杖
client.beta.tunnels.rotateToken(tunnelID, params, options?): BetaTunnelTokenanthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
Beta通道憑證
建立通道憑證
client.beta.tunnels.certificates.create(tunnelID, params, options?): BetaTunnelCertificateanthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
取得通道憑證
client.beta.tunnels.certificates.retrieve(certificateID, params, options?): BetaTunnelCertificateanthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
列出通道憑證
client.beta.tunnels.certificates.list(tunnelID, params?, options?): PageCursor<BetaTunnelCertificate>anthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
封存通道憑證
client.beta.tunnels.certificates.archive(certificateID, params, options?): BetaTunnelCertificateanthropic-beta: mcp-tunnels-2026-06-22. Learn how to send beta headers.Tunnels API 目前為研究預覽版。它需要 anthropic-beta: mcp-tunnels-2026-06-22 標頭,且可能在沒有棄用期的情況下變更。它取代了位於 /v1/organizations/tunnels 的 Admin API 端點,這些端點在遷移期間內仍可使用。
Beta組織
取得目前組織
client.beta.organization.retrieve(options?): BetaOrganization擷取與已驗證 API 金鑰相關聯之組織的資訊。
Beta組織API 金鑰
列出 API 金鑰
client.beta.organization.apiKeys.list(query?, options?): Page<BetaAPIKey>擷取 API 金鑰(Admin API)
client.beta.organization.apiKeys.retrieve(apiKeyID, options?): BetaAPIKey依 ID 查詢並擷取您組織中單一 API 金鑰的資訊。此 Admin API 端點需要 Admin API 金鑰,適用於以程式方式管理金鑰,且絕不會傳回金鑰的秘密值。若要檢視或建立您自己的 API 金鑰,請前往 Claude Console 中的 API 金鑰。
更新 API 金鑰
client.beta.organization.apiKeys.update(apiKeyID, body, options?): BetaAPIKeyBeta組織外部金鑰
建立外部金鑰
client.beta.organization.externalKeys.create(body, options?): BetaExternalKey建立由呼叫者組織擁有的外部金鑰設定。
列出外部金鑰
client.beta.organization.externalKeys.list(query?, options?): PageCursor<BetaExternalKey>列出呼叫者組織中的外部金鑰設定。
取得外部金鑰
client.beta.organization.externalKeys.retrieve(externalKeyID, options?): BetaExternalKey依 ID 擷取呼叫者組織中的單一外部金鑰設定。
更新外部金鑰
client.beta.organization.externalKeys.update(externalKeyID, body, options?): BetaExternalKeyPartially update an external key config. Omitted fields are left unchanged.
刪除外部金鑰
client.beta.organization.externalKeys.delete(externalKeyID, options?): ExternalKeyDeleteResponse刪除外部金鑰設定。
驗證外部金鑰
client.beta.organization.externalKeys.validate(externalKeyID, options?): ExternalKeyValidateResponse針對客戶的 KMS 驗證外部金鑰設定。
Beta組織聯合簽發者
建立聯合簽發者
client.beta.organization.federation.issuers.create(params, options?): BetaFederationIssuer需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合簽發者
client.beta.organization.federation.issuers.list(params?, options?): PageCursor<BetaFederationIssuer>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得聯合簽發者
client.beta.organization.federation.issuers.retrieve(federationIssuerID, params?, options?): BetaFederationIssuer需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新聯合簽發者
client.beta.organization.federation.issuers.update(federationIssuerID, params, options?): BetaFederationIssuer需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存聯合簽發者
client.beta.organization.federation.issuers.archive(federationIssuerID, params?, options?): BetaFederationIssuer需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
Beta組織聯合規則
建立聯合規則
client.beta.organization.federation.rules.create(params, options?): BetaFederationRule需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合規則
client.beta.organization.federation.rules.list(params?, options?): PageCursor<BetaFederationRule>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得聯合規則
client.beta.organization.federation.rules.retrieve(federationRuleID, params?, options?): BetaFederationRule需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新聯合規則
client.beta.organization.federation.rules.update(federationRuleID, params, options?): BetaFederationRule需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存聯合規則
client.beta.organization.federation.rules.archive(federationRuleID, params?, options?): BetaFederationRule需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
Beta組織聯合規則工作區
新增聯合規則工作區
client.beta.organization.federation.rules.workspaces.add(federationRuleID, params, options?): BetaFederationRuleWorkspace需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合規則工作區
client.beta.organization.federation.rules.workspaces.list(federationRuleID, params?, options?): PageCursor<BetaFederationRuleWorkspace>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
移除聯合規則工作區
client.beta.organization.federation.rules.workspaces.remove(workspaceID, params, options?): WorkspaceRemoveResponse需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
Beta組織邀請
建立邀請
client.beta.organization.invites.create(body, options?): BetaOrganizationInvite透過電子郵件邀請使用者加入組織。
列出邀請
client.beta.organization.invites.list(query?, options?): Page<BetaOrganizationInvite>列出組織的邀請。
取得邀請
client.beta.organization.invites.retrieve(inviteID, options?): BetaOrganizationInvite依 ID 擷取邀請。
刪除邀請
client.beta.organization.invites.delete(inviteID, options?): InviteDeleteResponse刪除待處理的邀請。
Beta組織服務帳戶
建立服務帳戶
client.beta.organization.serviceAccounts.create(params, options?): BetaServiceAccount需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出服務帳戶
client.beta.organization.serviceAccounts.list(params?, options?): PageCursor<BetaServiceAccount>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得服務帳戶
client.beta.organization.serviceAccounts.retrieve(serviceAccountID, params?, options?): BetaServiceAccount需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新服務帳戶
client.beta.organization.serviceAccounts.update(serviceAccountID, params, options?): BetaServiceAccount需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存服務帳戶
client.beta.organization.serviceAccounts.archive(serviceAccountID, params?, options?): BetaServiceAccount需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
Beta組織服務帳戶工作區
將工作區新增至服務帳戶
client.beta.organization.serviceAccounts.workspaces.add(serviceAccountID, params, options?): BetaServiceAccountWorkspaceMember需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出服務帳戶的工作區
client.beta.organization.serviceAccounts.workspaces.list(serviceAccountID, params?, options?): PageCursor<BetaServiceAccountWorkspaceMember>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
從服務帳戶移除工作區
client.beta.organization.serviceAccounts.workspaces.remove(workspaceID, params, options?): WorkspaceRemoveResponse需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
Beta組織External Storage
建立 External Storage
client.beta.organization.externalStorage.create(params, options?): BetaExternalStorageanthropic-beta: efs-2026-10-01. Learn how to send beta headers.註冊組織自有雲端帳戶中的儲存貯體。它會儲存為
pending_configuration,並在啟用時進行驗證。
列出 External Storage
client.beta.organization.externalStorage.list(params?, options?): PageCursor<BetaExternalStorage>anthropic-beta: efs-2026-10-01. Learn how to send beta headers.列出組織的 External Storage,依最新優先排序。
取得 External Storage
client.beta.organization.externalStorage.retrieve(externalStorageID, params?, options?): BetaExternalStorageanthropic-beta: efs-2026-10-01. Learn how to send beta headers.取得組織中的單一 External Storage。
更新 External Storage
client.beta.organization.externalStorage.update(externalStorageID, params, options?): BetaExternalStorageanthropic-beta: efs-2026-10-01. Learn how to send beta headers.重新命名 External Storage 或清除其名稱,適用於任何狀態。
刪除 External Storage
client.beta.organization.externalStorage.delete(externalStorageID, params?, options?): BetaDeletedExternalStorageanthropic-beta: efs-2026-10-01. Learn how to send beta headers.刪除 External Storage。處於待設定或可用狀態,或處於作用中狀態但從未附加的儲存空間會立即刪除,
除非有 Enterprise Frontier Safeguards 工作區政策列出它。其他儲存空間會收到 400,說明下一步該怎麼做。
對於 draining 的儲存空間,該 400 可能表示此次刪除已啟動無法復原的移除作業。
若要確認,請取得該儲存空間:如果 status.removal_started 為 true,請稍後再次刪除以完成作業。
啟用 External Storage
client.beta.organization.externalStorage.activate(externalStorageID, params?, options?): BetaExternalStorageanthropic-beta: efs-2026-10-01. Learn how to send beta headers.驗證待設定的 External Storage 並使其變為可用。 已處於可用、作用中或 Draining 狀態的儲存空間會原樣傳回, 不進行任何檢查。
Beta組織使用者
列出使用者
client.beta.organization.users.list(query?, options?): Page<BetaOrganizationUser>列出組織的成員。
取得使用者
client.beta.organization.users.retrieve(userID, options?): BetaOrganizationUser依使用者 ID 擷取組織成員。
更新使用者
client.beta.organization.users.update(userID, body, options?): BetaOrganizationUser更新成員的組織角色。
移除使用者
client.beta.organization.users.remove(userID, options?): UserRemoveResponse從組織中移除成員。
登出使用者
client.beta.organization.users.signOut(userID, params?, options?): BetaOrganizationUseranthropic-beta: admin-user-sign-out-2026-10-08. Learn how to send beta headers.將成員從其使用 Claude 的所有地方登出,而不會將其從組織中移除。這會結束其登入工作階段,並移除其在任何使用 Claude 之處的受信任裝置,包括其他組織和個人方案。這也會終止為此組織核發給他們的 OAuth 權杖,因此 Claude Code 等應用程式必須重新登入。
Beta組織工作區
列出工作區
client.beta.organization.workspaces.list(params?, options?): Page<BetaWorkspace>建立工作區
client.beta.organization.workspaces.create(params, options?): BetaWorkspace取得工作區
client.beta.organization.workspaces.retrieve(workspaceID, params?, options?): BetaWorkspace更新工作區
client.beta.organization.workspaces.update(workspaceID, params, options?): BetaWorkspace封存工作區
client.beta.organization.workspaces.archive(workspaceID, params?, options?): BetaWorkspaceBeta組織工作區速率限制
列出工作區速率限制
client.beta.organization.workspaces.rateLimits.list(workspaceID, query?, options?): PageCursor<BetaWorkspaceRateLimit>列出工作區的速率限制。
設定工作區速率限制
client.beta.organization.workspaces.rateLimits.update(rateLimitID, params, options?): BetaWorkspaceRateLimit為工作區中的單一速率限制群組設定或清除速率限制覆寫。
Beta組織工作區成員
列出工作區成員
client.beta.organization.workspaces.members.list(workspaceID, query?, options?): Page<BetaWorkspaceMember>建立工作區成員
client.beta.organization.workspaces.members.add(workspaceID, body, options?): BetaWorkspaceMember取得工作區成員
client.beta.organization.workspaces.members.retrieve(userID, params, options?): BetaWorkspaceMember更新工作區成員
client.beta.organization.workspaces.members.update(userID, params, options?): BetaWorkspaceMember刪除工作區成員
client.beta.organization.workspaces.members.remove(userID, params, options?): MemberRemoveResponseBeta組織工作區服務帳戶
列出服務帳戶工作區成員
client.beta.organization.workspaces.serviceAccounts.list(workspaceID, params?, options?): PageCursor<BetaServiceAccountWorkspaceMember>需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
建立服務帳戶工作區成員
client.beta.organization.workspaces.serviceAccounts.add(workspaceID, params, options?): BetaServiceAccountWorkspaceMember需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得服務帳戶工作區成員
client.beta.organization.workspaces.serviceAccounts.retrieve(serviceAccountID, params, options?): BetaServiceAccountWorkspaceMember需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新服務帳戶工作區成員
client.beta.organization.workspaces.serviceAccounts.update(serviceAccountID, params, options?): BetaServiceAccountWorkspaceMember需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
刪除服務帳戶工作區成員
client.beta.organization.workspaces.serviceAccounts.remove(serviceAccountID, params, options?): ServiceAccountRemoveResponse需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
Beta組織速率限制
列出組織速率限制
client.beta.organization.rateLimits.list(query?, options?): PageCursor<BetaOrganizationRateLimit>列出您組織的 Messages API 速率限制。
Beta組織合規設定
取得合規設定
client.beta.organization.complianceSettings.retrieve(params?, options?): BetaComplianceSettings擷取您組織的合規設定。
更新合規設定
client.beta.organization.complianceSettings.update(params, options?): BetaComplianceSettings更新您組織的合規設定。
Beta組織分析摘要
取得活動摘要
client.beta.organization.analytics.summaries.list(query, options?): PageCursor<BetaAnalyticsSingleDayActivitySummary>取得指定日期範圍內的全組織活動摘要。
Beta組織分析使用者
列出使用者活動
client.beta.organization.analytics.users.list(query?, options?): PageCursor<BetaAnalyticsUserActivity>取得指定日期的每位使用者活動,採用游標式分頁。
Beta組織分析應用程式聊天專案
取得聊天專案用量
client.beta.organization.analytics.apps.chat.projects.list(query?, options?): PageCursor<BetaAnalyticsProjectActivity>取得指定日期的每個專案活動,並支援以游標為基礎的分頁。
Beta組織分析連接器
取得連接器使用量
client.beta.organization.analytics.connectors.list(query?, options?): PageCursor<BetaAnalyticsConnectorActivity>取得指定日期的每個連接器用量,採用游標式分頁。
Beta組織分析外掛程式
取得外掛程式使用量
client.beta.organization.analytics.plugins.list(query?, options?): PageCursor<BetaAnalyticsPluginActivity>取得指定日期的每個外掛程式安裝與呼叫用量,採用分頁。
Beta組織分析技能
取得技能使用量
client.beta.organization.analytics.skills.list(query?, options?): PageCursor<BetaAnalyticsSkillActivity>取得指定日期的每項技能用量,採用游標式分頁。
Beta組織分析Artifacts
取得 Artifact 活動
client.beta.organization.analytics.artifacts.list(query, options?): PageCursor<BetaAnalyticsArtifactActivity>取得指定日期的 artifact 建立活動,依 MIME 類型細分。
Beta組織分析用量
依維度取得 token 用量
client.beta.organization.analytics.usage.list(params, options?): ReportPageCursor<BetaAnalyticsUsageItem>anthropic-beta: analytics-usage-cost-2026-08-24. Learn how to send beta headers.Get token usage across a date range, broken out by dimension.
Beta組織分析成本
依維度取得成本
client.beta.organization.analytics.cost.list(params, options?): ReportPageCursor<BetaAnalyticsCostItem>anthropic-beta: analytics-usage-cost-2026-08-24. Learn how to send beta headers.Get cost in USD across a date range, broken out by dimension.
Beta組織分析使用量報告
取得隨時間變化的 Token 用量
client.beta.organization.analytics.usageReport.list(query, options?): ReportPageCursor<BetaAnalyticsUsageReportTimeBucket>[舊版] 取得某個日期範圍內隨時間變化的 token 用量。
Beta組織分析使用者用量報告
取得每位使用者的 Token 用量
client.beta.organization.analytics.userUsageReport.list(query, options?): ReportPageCursor<BetaAnalyticsUsageUsersItem>[Legacy] Get per-user token usage across a date range.
Beta組織分析成本報告
取得隨時間變化的成本
client.beta.organization.analytics.costReport.list(query, options?): ReportPageCursor<BetaAnalyticsCostReportTimeBucket>[舊版] 取得某個日期範圍內隨時間變化的成本(以美元計)。
Beta組織分析使用者成本報告
取得每位使用者的成本
client.beta.organization.analytics.userCostReport.list(query, options?): ReportPageCursor<BetaAnalyticsCostUsersItem>[Legacy] Get per-user cost in USD across a date range.
Beta組織支出限制
設定支出限制
client.beta.organization.spendLimits.set(params, options?): BetaSpendLimit設定支出限制。
取得支出限制
client.beta.organization.spendLimits.retrieve(spendLimitID, options?): BetaSpendLimit依 ID 擷取支出限制。
刪除支出限制
client.beta.organization.spendLimits.delete(spendLimitID, options?): SpendLimitDeleteResponse刪除支出限制。
列出支出限制
client.beta.organization.spendLimits.list(params?, options?): PageCursor<BetaSpendLimit>anthropic-beta: spend-limit-reads-2026-09-26. Learn how to send beta headers.列出組織的支出限制。
Beta組織支出限制有效
列出有效支出限制
client.beta.organization.spendLimits.effective.list(query?, options?): PageCursor<BetaSpendSummary>列出每位成員的有效支出限制及本期至今的支出。
Beta組織支出限制提高請求
列出支出限制提高請求
client.beta.organization.spendLimits.increaseRequests.list(query?, options?): PageCursor<BetaSpendLimitIncreaseRequest>列出支出限制提高請求,最新的在前。
取得支出限制提高請求
client.beta.organization.spendLimits.increaseRequests.retrieve(spendLimitIncreaseRequestID, options?): BetaSpendLimitIncreaseRequest擷取支出限制提高請求。
核准支出限制提高請求
client.beta.organization.spendLimits.increaseRequests.approve(spendLimitIncreaseRequestID, body, options?): IncreaseRequestApproveResponse核准待處理的支出限制提高請求。
拒絕支出限制提高請求
client.beta.organization.spendLimits.increaseRequests.deny(spendLimitIncreaseRequestID, body, options?): BetaSpendLimitIncreaseRequest拒絕待處理的支出限制提高請求。
Beta組織RBAC 群組
建立 RBAC 群組
client.beta.organization.rbacGroups.create(body, options?): BetaRBACGroup在 Claude Enterprise 租戶中建立 RBAC 群組。透過 API 建立的群組其來源類型為 "direct"。
列出 RBAC 群組
client.beta.organization.rbacGroups.list(query?, options?): PageCursor<BetaRBACGroup>列出 Claude Enterprise 租戶中的 RBAC 群組。
取得 RBAC 群組
client.beta.organization.rbacGroups.retrieve(rbacGroupID, options?): BetaRBACGroup依 ID 擷取 RBAC 群組。
更新 RBAC 群組
client.beta.organization.rbacGroups.update(rbacGroupID, body, options?): BetaRBACGroup更新 RBAC 群組的名稱。當租用戶中的組織使用 SCIM 佈建時,由身分識別提供者佈建的群組(來源類型為 "scim")無法透過 API 修改。
刪除 RBAC 群組
client.beta.organization.rbacGroups.delete(rbacGroupID, options?): BetaDeletedRBACGroup刪除 RBAC 群組。當租用戶中的組織使用 SCIM 佈建時,由身分識別提供者佈建的群組(來源類型為 "scim")無法透過 API 刪除。
Beta組織RBAC 群組成員
列出 RBAC 群組成員
client.beta.organization.rbacGroups.members.list(rbacGroupID, query?, options?): PageCursor<BetaRBACGroupMember>列出 RBAC 群組的成員。
新增 RBAC 群組成員
client.beta.organization.rbacGroups.members.add(rbacGroupID, body, options?): BetaRBACGroupMember將使用者新增至 RBAC 群組。當租用戶中的組織使用 SCIM 佈建時,由身分識別提供者佈建的群組(來源類型為 "scim")其成員資格無法透過 API 修改。
移除 RBAC 群組成員
client.beta.organization.rbacGroups.members.remove(userID, params, options?): BetaDeletedRBACGroupMember從 RBAC 群組中移除使用者。當租用戶中的組織使用 SCIM 佈建時,由身分識別提供者佈建的群組(來源類型為 "scim")其成員資格無法透過 API 修改。
Beta組織RBAC 角色
列出 RBAC 角色
client.beta.organization.rbacRoles.list(query?, options?): PageCursor<BetaRBACRole>列出組織中的 RBAC 角色。
取得 RBAC 角色
client.beta.organization.rbacRoles.retrieve(rbacRoleID, options?): BetaRBACRole依 ID 擷取 RBAC 角色。
Beta組織RBAC 角色權限
列出 RBAC 角色權限
client.beta.organization.rbacRoles.permissions.list(rbacRoleID, query?, options?): PageCursor<BetaRBACRolePermission>列出 RBAC 角色所授予的權限。
Beta組織外掛程式
建立外掛程式
client.beta.organization.plugins.create(params, options?): BetaPluginanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.Create an organization-owned Plugin and its first version by uploading the version's files.
取得外掛程式
client.beta.organization.plugins.retrieve(pluginID, params?, options?): BetaPluginanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.依 ID 擷取外掛程式。
更新外掛程式
client.beta.organization.plugins.update(pluginID, params, options?): BetaPluginanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.Change which stored version of an organization-owned Plugin is served to members, for example to roll back to an earlier one. This pins the served version: later uploads through this API are stored but no longer change what is served, and pinning cannot currently be undone, here or in claude.ai.
列出外掛程式
client.beta.organization.plugins.list(params?, options?): PageCursor<BetaPlugin>anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.List the Plugins created under the organization, newest first: those in the organization's own plugin marketplaces and those in members' personal plugin marketplaces.
刪除外掛程式
client.beta.organization.plugins.delete(pluginID, params?, options?): BetaDeletedPluginanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.Permanently delete a Plugin and every version it holds, exactly as when an administrator deletes it in claude.ai. The Plugin may belong to the organization or to a member, including a member who has since left the organization. Do not delete a Plugin only because your pipeline did not create it: a member or an administrator might have added it in claude.ai.
Beta組織外掛程式版本
建立外掛程式版本
client.beta.organization.plugins.versions.create(pluginID, params, options?): BetaPluginVersionanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.Add a version to an organization-owned Plugin by uploading the new version's files; it becomes the version served to members unless the Plugin's served version has been pinned.
列出外掛程式版本
client.beta.organization.plugins.versions.list(pluginID, params?, options?): PageCursor<BetaPluginVersion>anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.列出外掛程式的版本,依最新優先排序。
取得外掛程式版本
client.beta.organization.plugins.versions.retrieve(version, params, options?): BetaPluginVersionanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.依 ID 擷取外掛程式的某個版本,或擷取外掛程式的最新版本。
下載外掛程式版本封存檔
client.beta.organization.plugins.versions.download(version, params, options?): Responseanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.Download one version's .zip archive, exactly as stored. Downloads of Plugins from
members' personal plugin marketplaces can be recorded on the Compliance API activity
feed.
Beta組織外掛程式安裝設定
列出外掛程式安裝設定
client.beta.organization.plugins.installationSettings.list(pluginID, params?, options?): PageCursor<BetaPluginInstallationSetting>anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.列出組織擁有的外掛程式的安裝設定(用於指定該外掛程式適用於哪些成員),依建立時間由新到舊排序。
設定外掛程式安裝設定
client.beta.organization.plugins.installationSettings.set(target, params, options?): BetaPluginInstallationSettinganthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.為整個組織或單一 RBAC 群組設定或變更組織擁有的外掛程式的安裝設定。
移除外掛程式安裝設定
client.beta.organization.plugins.installationSettings.remove(target, params, options?): BetaDeletedPluginInstallationSettinganthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.移除組織擁有的外掛程式針對整個組織或單一 RBAC 群組本身的安裝設定。
Beta組織外掛程式市集
列出外掛程式市集
client.beta.organization.pluginMarketplaces.list(params?, options?): PageCursor<BetaPluginMarketplace>anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.列出外掛程式所在的外掛程式市集,依最新優先排序:包括組織自有的市集及其成員的個人市集。
取得外掛程式市集
client.beta.organization.pluginMarketplaces.retrieve(marketplaceID, params?, options?): BetaPluginMarketplaceanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.依 ID 擷取外掛程式市集。
更新外掛程式市集
client.beta.organization.pluginMarketplaces.update(marketplaceID, params, options?): BetaPluginMarketplaceanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.設定組織自有外掛程式市集之一的預設安裝設定。該市集中每個沒有自身設定的外掛程式(包括之後新增的外掛程式)都會以此預設值作為其全組織設定。
驗證外掛程式市集儲存庫
client.beta.organization.pluginMarketplaces.validateRepository(params, options?): BetaPluginMarketplaceValidationReportanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.檢查存放於公開 GitHub 儲存庫中的外掛程式市集是否能同步至 claude.ai,而不會連接或儲存該市集。
驗證外掛程式市集封存檔
client.beta.organization.pluginMarketplaces.validateArchive(params, options?): BetaPluginMarketplaceValidationReportanthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.檢查以市集目錄 .zip 形式上傳的外掛程式市集是否能同步至 claude.ai,而不會連接或儲存該市集。
Beta組織遙測目的地
建立遙測目的地
client.beta.organization.telemetryDestinations.create(params, options?): BetaTelemetryDestinationanthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.為組織註冊 OpenTelemetry 目的地。
列出遙測目的地
client.beta.organization.telemetryDestinations.list(params?, options?): PageCursor<BetaTelemetryDestination>anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.列出組織的目的地,最新的排在最前面,可選擇僅列出涵蓋指定工作區的目的地。
擷取遙測目的地
client.beta.organization.telemetryDestinations.retrieve(destinationID, params?, options?): BetaTelemetryDestinationanthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.讀取目的地的設定、狀態及最近的傳遞結果。
更新遙測目的地
client.beta.organization.telemetryDestinations.update(destinationID, params, options?): BetaTelemetryDestinationanthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.變更遙測目的地的設定、狀態或其涵蓋的工作區。
刪除遙測目的地
client.beta.organization.telemetryDestinations.delete(destinationID, params?, options?): BetaDeletedTelemetryDestinationanthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.刪除目的地及其工作區清單。
測試遙測目的地
client.beta.organization.telemetryDestinations.test(destinationID, params?, options?): BetaTelemetryDestinationTestResponseanthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.將一個名為 anthropic.test 的測試 span 連同已註冊的標頭傳送至目的地,僅傳送一次且不重試,並回報目的地的回應。無論目的地是否以 2xx 狀態回應,回應皆為 200:其 result 的類型為 success,或類型為 failure 並在 error 中附上原因。目的地的設定、state 與 delivery_health 不會變更。已停用的目的地也可以測試。對同一目的地的兩次測試之間請等待 10 秒;過早送出的請求可能會收到狀態 429。
Beta組織遙測目的地工作區
列出遙測目的地工作區
client.beta.organization.telemetryDestinations.workspaces.list(destinationID, params?, options?): PageCursor<BetaTelemetryDestinationWorkspace>anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.列出目的地工作區清單中的工作區,最新的項目排在最前面。
新增遙測目的地工作區
client.beta.organization.telemetryDestinations.workspaces.add(workspaceID, params, options?): BetaTelemetryDestinationWorkspaceanthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.將一個工作區新增至目的地的工作區清單。
移除遙測目的地工作區
client.beta.organization.telemetryDestinations.workspaces.remove(workspaceID, params, options?): BetaDeletedTelemetryDestinationWorkspaceanthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.從目的地的工作區清單中移除一個工作區。
Beta組織Webhook
建立組織 Webhook 端點
client.beta.organization.webhooks.create(params, options?): BetaNewOrganizationWebhookEndpointanthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.建立組織 webhook 端點。
列出組織 Webhook 端點
client.beta.organization.webhooks.list(params?, options?): Page<BetaOrganizationWebhookEndpoint>anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.列出組織的 webhook 端點。
取得組織 Webhook 端點
client.beta.organization.webhooks.retrieve(webhookEndpointID, params?, options?): BetaOrganizationWebhookEndpointanthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.依 ID 擷取組織 webhook 端點。
更新組織 Webhook 端點
client.beta.organization.webhooks.update(webhookEndpointID, params, options?): BetaOrganizationWebhookEndpointanthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.更新組織 webhook 端點。只有您傳送的欄位會被變更。
刪除組織 Webhook 端點
client.beta.organization.webhooks.delete(webhookEndpointID, params?, options?): BetaDeletedOrganizationWebhookEndpointanthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.刪除組織 webhook 端點。
重新產生組織 Webhook 端點簽署密鑰
client.beta.organization.webhooks.regenerateSigningSecret(webhookEndpointID, params?, options?): BetaOrganizationWebhookEndpointSigningSecretanthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.替換組織 webhook 端點的簽署密鑰。舊密鑰會立即失效。新密鑰僅會在此回應中傳回。
Beta組織Claude CodeManaged SettingsConfiguration
Get Claude Code Managed Settings Configuration
client.beta.organization.claudeCode.managedSettings.configuration.retrieve(params?, options?): BetaClaudeCodeManagedSettingsConfigurationanthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.Retrieve the organization's Claude Code managed settings mode and RBAC Group order.
Update Claude Code Managed Settings Configuration
client.beta.organization.claudeCode.managedSettings.configuration.update(params, options?): BetaClaudeCodeManagedSettingsConfigurationanthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.Change the organization's Claude Code managed settings mode, the RBAC Group order, or both, in one atomic write.
Beta組織Claude CodeManaged SettingsRBAC 群組
List RBAC Group Claude Code Managed Settings
client.beta.organization.claudeCode.managedSettings.rbacGroups.list(params?, options?): PageCursor<BetaClaudeCodeRBACGroupManagedSettingsSummary>anthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.List the RBAC Groups that have Claude Code managed settings, highest precedence first.
Get RBAC Group Claude Code Managed Settings
client.beta.organization.claudeCode.managedSettings.rbacGroups.retrieve(rbacGroupID, params?, options?): BetaClaudeCodeRBACGroupManagedSettingsanthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.Retrieve an RBAC Group's Claude Code managed settings.
Set RBAC Group Claude Code Managed Settings
client.beta.organization.claudeCode.managedSettings.rbacGroups.set(rbacGroupID, params, options?): BetaClaudeCodeRBACGroupManagedSettingsanthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.Create or replace an RBAC Group's Claude Code managed settings.
Delete RBAC Group Claude Code Managed Settings
client.beta.organization.claudeCode.managedSettings.rbacGroups.delete(rbacGroupID, params?, options?): BetaDeletedClaudeCodeRBACGroupManagedSettingsanthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.Delete an RBAC Group's Claude Code managed settings and remove the group from rbac_group_order.
Beta組織Claude CodeManaged SettingsRBAC Group Default
Get RBAC Group Default Claude Code Managed Settings
client.beta.organization.claudeCode.managedSettings.rbacGroupDefault.retrieve(params?, options?): BetaClaudeCodeRBACGroupDefaultManagedSettingsanthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.Retrieve the default Claude Code managed settings, which members who belong to no RBAC Group in rbac_group_order receive in rbac_groups mode.
Update RBAC Group Default Claude Code Managed Settings
client.beta.organization.claudeCode.managedSettings.rbacGroupDefault.update(params, options?): BetaClaudeCodeRBACGroupDefaultManagedSettingsanthropic-beta: ce-claude-code-managed-settings-2026-10-06. Learn how to send beta headers.Set or replace the default Claude Code managed settings, or clear them with null.
Beta組織Claude TagSlack 頻道
設定 Slack 頻道
client.beta.organization.claudeTag.slackChannels.create(params, options?): BetaClaudeTagSlackChannelanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.為 Claude Tag 設定 Slack 頻道,並連同其識別碼一併傳回。若該頻道已設定(無論是在 claude.ai 中、因 Claude 首次在其中使用,或由先前的請求所設定),則會傳回現有頻道,因此此請求可以重複執行。若有傳送 settings,其套用方式與更新相同。在設定頻道之前,Claude 的 Slack 應用程式會向 Slack 確認該頻道位於工作區中、未封存且對應用程式可見;未通過確認的頻道會傳回 404。設定頻道與套用 settings 是兩個步驟:當第二個步驟遭拒時,回應即為該拒絕,頻道仍維持已設定狀態且所有設定皆未設定,而錯誤的 details.slack_channel_id 會包含該頻道的識別碼。
列出 Slack 頻道
client.beta.organization.claudeTag.slackChannels.list(params, options?): PageCursor<BetaClaudeTagSlackChannel>anthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.列出單一 Slack 工作區中已設定的 Slack 頻道,依 created_at 最新優先排序。未設定的頻道不會列出:工作區的完整頻道清單由 Slack 保存。另外傳入 slack_channel_id 即可依 Slack 識別碼查詢單一頻道:此時 data 會包含該頻道,若頻道未設定則為空,且會忽略 limit 與 page。組織僅透過 Slack Enterprise Grid 擁有的工作區,在設定之前會傳回 404。使用 include_inherited=true 時,每個頻道的 settings 會包含在該頻道中實際套用的設定;若有無法讀取的設定層級,請求會以 503 失敗,而不會在缺少該層級的情況下解析。page 游標只能接續 include_inherited 相同的請求。
取得 Slack 頻道
client.beta.organization.claudeTag.slackChannels.retrieve(id, params?, options?): BetaClaudeTagSlackChannelanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.取得單一 Slack 頻道及其設定。預設情況下,settings 包含頻道本身儲存的內容:其中為 null 的設定表示未在頻道上設定,而是沿用繼承值。使用 include_inherited=true 時,settings 包含考量其上方各設定層級後在頻道中實際套用的設定;若有無法讀取的設定層級,請求會以 503 失敗,而不會在缺少該層級的情況下解析。無論哪種情況,sources 都會指出每個值來自哪個設定層級,因此呼叫者應依據來源(而非是否為 null)來區分頻道本身的值與繼承的值。
更新 Slack 頻道
client.beta.organization.claudeTag.slackChannels.update(id, params, options?): BetaClaudeTagSlackChannelanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.變更 Slack 頻道儲存的設定。此更新為部分更新:未傳送的設定保持不變,傳送為 null 的設定會被清除,使頻道改為繼承該設定。若有任何值遭拒,請求中的所有設定都不會被儲存。群組私訊不接受設定,會傳回 400。
移除 Slack 頻道
client.beta.organization.claudeTag.slackChannels.delete(id, params?, options?): BetaClaudeTagDeletedSlackChannelanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.從 Claude Tag 移除 Slack 頻道。此操作會立即刪除頻道儲存的設定及其 Bundle 目標,接著在背景刪除頻道的工作階段及其對話記錄、記憶、例行程序以及從該頻道發佈的成品。這些內容都無法還原。Slack 中的頻道及其訊息不會改變。當頻道的 enabled 解析為 true(以 include_inherited=true 讀取時所傳回的值)時,請求會以 400 及 error.details.error_code slack_channel_enabled 遭拒:請先在頻道上將 enabled 設為 false。這是為了防止誤刪使用中的頻道,並非阻止 Claude 使用的方法,因為移除操作會連同其他設定一併刪除頻道本身的 enabled: false,之後頻道會再次沿用繼承值,而 Claude 下次使用時可以用新的識別碼重新設定該頻道。請求一傳回,該識別碼即會傳回 404,因此重複移除會傳回 404。群組私訊會傳回 400,包含此 API 未管理之設定的頻道也會傳回 400。
Beta組織Claude TagSlack 工作區
列出 Slack 工作區
client.beta.organization.claudeTag.slackWorkspaces.list(params?, options?): PageCursor<BetaClaudeTagSlackWorkspace>anthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.列出組織擁有的已設定 Slack 工作區,依 created_at 最新優先排序。傳入 slack_workspace_id 即可依 Slack 識別碼查詢單一工作區:此時 data 會包含該工作區,若工作區未設定則為空。組織已連接之 Slack Enterprise Grid 中的工作區,在設定之前會傳回 404。使用 include_inherited=true 時,每個工作區的 settings 會包含在該工作區中實際套用的設定;若有無法讀取的設定層級,請求會以 503 失敗,而不會在缺少該層級的情況下解析。page 游標只能接續 include_inherited 相同的請求。
取得 Slack 工作區
client.beta.organization.claudeTag.slackWorkspaces.retrieve(id, params?, options?): BetaClaudeTagSlackWorkspaceanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.取得單一 Slack 工作區及其設定。預設情況下,settings 包含工作區本身儲存的內容:其中為 null 的設定表示未在工作區上設定,而是沿用繼承值。使用 include_inherited=true 時,settings 包含考量組織的 Slack 預設值後在工作區中實際套用的設定;若有無法讀取的設定層級,請求會以 503 失敗,而不會在缺少該層級的情況下解析。無論哪種情況,sources 都會指出每個值來自哪個設定層級。
更新 Slack 工作區
client.beta.organization.claudeTag.slackWorkspaces.update(id, params, options?): BetaClaudeTagSlackWorkspaceanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.變更 Slack 工作區儲存的設定。此更新為部分更新:未傳送的設定保持不變,傳送為 null 的設定會被清除,使工作區改為繼承該設定。若有任何值遭拒,請求中的所有設定都不會被儲存。
Beta組織Claude TagBundle
列出 Bundle
client.beta.organization.claudeTag.bundles.list(params?, options?): PageCursor<BetaClaudeTagBundle>anthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.列出組織的 Bundle,依 created_at 最新優先排序。由 Claude Tag 自行管理的 Bundle 不會列出。
取得 Bundle
client.beta.organization.claudeTag.bundles.retrieve(bundleID, params?, options?): BetaClaudeTagBundleanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.取得單一 Bundle。Bundle 所授予的內容(連接器、儲存庫與憑證)永遠不會傳回。
Update Bundle
client.beta.organization.claudeTag.bundles.update(bundleID, params, options?): BetaClaudeTagBundleanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.Change a Bundle's instructions. The update is partial: a field left out is unchanged, and instructions sent as null or as an empty string clears them. The later of two updates wins. Sessions that start after the change use the new instructions; sessions already running keep the ones they started with. Some Bundles are managed in claude.ai, and an update of one returns 400.
Beta組織Claude TagBundle目標
列出 Bundle 目標
client.beta.organization.claudeTag.bundles.targets.list(bundleID, params?, options?): PageCursor<BetaClaudeTagBundleTarget>anthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.列出 Bundle 所附加的 Slack 頻道與 Slack 工作區,依 created_at 最新優先排序。只會列出組織擁有的頻道與工作區;附加至其他對象的 Bundle 不會有對應的 Bundle 目標。
附加 Bundle
client.beta.organization.claudeTag.bundles.targets.create(bundleID, params, options?): BetaClaudeTagBundleTargetanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.將 Bundle 附加至 Slack 頻道或 Slack 工作區。附加至工作區的 Bundle 可在該工作區及其中的每個頻道使用。將 Bundle 附加至其已附加的頻道或工作區時,會傳回現有的 Bundle 目標。頻道或工作區必須已設定:附加操作絕不會設定頻道。群組私訊不接受 Bundle,會傳回 400。
取得 Bundle 目標
client.beta.organization.claudeTag.bundles.targets.retrieve(targetID, params, options?): BetaClaudeTagBundleTargetanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.取得單一 Bundle 目標。當 target_id 是另一個 Bundle 之 Bundle 目標的識別碼,或該 Bundle 目標已卸離時,會傳回 404。
卸離 Bundle
client.beta.organization.claudeTag.bundles.targets.delete(targetID, params, options?): BetaClaudeTagDeletedBundleTargetanthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.從 Slack 頻道或 Slack 工作區卸離 Bundle。重複卸離會傳回 404。