Claude Platform Docs

Beta

Models
type AnthropicBeta = (string & {}) | "computer-use-2024-10-22" | "computer-use-2025-01-24" | "output-128k-2025-02-19" | 56 more

Beta names you can send in the anthropic-beta header.

See Beta headers for how to send them and where to find the name a feature needs.

One of the following:
interface BetaAPIErrorObject { type: "api_error"; message }
type: "api_error"

The broad category of the error.

defaultapi_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultInternal server error
interface BetaAuthenticationErrorObject { type: "authentication_error"; message }
type: "authentication_error"

The broad category of the error.

defaultauthentication_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultAuthentication error
interface BetaBillingErrorObject { type: "billing_error"; message }
type: "billing_error"

The broad category of the error.

defaultbilling_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultBilling error
type BetaCurrency = "USD"
One of the following:
interface BetaErrorResponse { type: "error"; error; request_id }
type: "error"
defaulterror
One of the following:
request_id: string | null
interface BetaGatewayTimeoutErrorObject { type: "timeout_error"; message }
type: "timeout_error"

The broad category of the error.

defaulttimeout_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultRequest timeout
interface BetaInvalidRequestErrorObject { type: "invalid_request_error"; message }
type: "invalid_request_error"

The broad category of the error.

defaultinvalid_request_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultInvalid request
interface BetaMonetaryAmount { amount; currency }

A monetary amount in a specific currency.

amount: string

Amount in minor units of the currency, as an integer decimal string with no leading zeros: "2500" is $25.00 and "50" is fifty cents. A string rather than a number so no float rounding is ever applied.

pattern^(0|[1-9]\d*)$
currency: BetaCurrency

Uppercase ISO-4217 currency code. USD is the only currency currently supported; the accepted set is closed and grows only when a new currency is priced.

interface BetaNotFoundErrorObject { type: "not_found_error"; message }
type: "not_found_error"

The broad category of the error.

defaultnot_found_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultNot found
interface BetaOrganizationNotEnrolledInBetaErrorDetails { error_code }
error_code: "organization_not_enrolled_in_beta"
interface BetaOverloadedErrorObject { type: "overloaded_error"; message }
type: "overloaded_error"

The broad category of the error.

defaultoverloaded_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultOverloaded
interface BetaPermissionErrorObject { type: "permission_error"; message }
type: "permission_error"

The broad category of the error.

defaultpermission_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultPermission denied
interface BetaRateLimitErrorObject { type: "rate_limit_error"; message }
type: "rate_limit_error"

The broad category of the error.

defaultrate_limit_error
message: string

A human-readable explanation of the error. Its wording can change, so don't match on it.

defaultRate limited
interface BetaRequestBodyTimeoutErrorDetails { error_code }
error_code: "request_body_timeout"
interface BetaUnsupportedCharsetErrorDetails { error_code }
error_code: "unsupported_charset"
Errors
class BetaOrganizationNotEnrolledInBetaError extends BadRequestError { errorCode; details }⁠HTTP status 400

The beta that the endpoint requires is not enabled for the organization. The message names the beta value.

errorCode: "organization_not_enrolled_in_beta"
error_code: "organization_not_enrolled_in_beta"
class BetaRequestBodyTimeoutError extends BadRequestError { errorCode; details }⁠HTTP status 400

The request body did not finish arriving in time, so nothing was done. Send a smaller body, or send it over a faster connection.

errorCode: "request_body_timeout"
details: BetaRequestBodyTimeoutErrorDetails { error_code }
error_code: "request_body_timeout"
class BetaUnsupportedCharsetError extends BadRequestError { errorCode; details }⁠HTTP status 400

The request's Content-Type header names a charset other than UTF-8, ISO-8859-1 or US-ASCII. Send the request with no charset, or with one of these.

errorCode: "unsupported_charset"
details: BetaUnsupportedCharsetErrorDetails { error_code }
error_code: "unsupported_charset"

Beta模型

列出模型
client.beta.models.list(params?, options?): Page<BetaModelInfo>
GET/v1/models

列出可用模型。

获取模型
client.beta.models.retrieve(modelID, params?, options?): BetaModelInfo
GET/v1/models/{model_id}

获取特定模型。

Beta消息

创建消息
client.beta.messages.create(params, options?): BetaMessage | Stream<BetaRawMessageStreamEvent>
POST/v1/messages

发送包含文本和/或图像内容的结构化输入消息列表,模型将生成对话中的下一条消息。

计算消息中的令牌数
client.beta.messages.countTokens(params, options?): BetaMessageTokensCount
POST/v1/messages/count_tokens

计算消息中的令牌数量。

Beta消息批处理

创建消息批次
client.beta.messages.batches.create(params, options?): BetaMessageBatch
POST/v1/messages/batches

发送一批消息创建请求。

检索消息批次
client.beta.messages.batches.retrieve(messageBatchID, params?, options?): BetaMessageBatch
GET/v1/messages/batches/{message_batch_id}

此端点是幂等的,可用于轮询消息批次是否完成。要访问消息批次的结果,请向响应中的 results_url 字段发起请求。

列出消息批次
client.beta.messages.batches.list(params?, options?): Page<BetaMessageBatch>
GET/v1/messages/batches

列出工作区内的所有消息批次。最近创建的批次最先返回。

取消消息批次
client.beta.messages.batches.cancel(messageBatchID, params?, options?): BetaMessageBatch
POST/v1/messages/batches/{message_batch_id}/cancel

批次可在处理结束前的任何时间取消。一旦发起取消,批次将进入 canceling 状态,此时系统可能会先完成任何正在进行的、不可中断的请求,然后再最终完成取消。

删除消息批次
client.beta.messages.batches.delete(messageBatchID, params?, options?): BetaDeletedMessageBatch
DELETE/v1/messages/batches/{message_batch_id}

删除消息批次。

检索消息批次结果
client.beta.messages.batches.results(messageBatchID, params?, options?): JSONLDecoder<BetaMessageBatchIndividualResponse>
GET/v1/messages/batches/{message_batch_id}/results

以 .jsonl 文件的形式流式传输消息批次的结果。

Beta代理

创建代理
client.beta.agents.create(params, options?): BetaManagedAgentsAgent
POST/v1/agents
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出代理
client.beta.agents.list(params?, options?): PageCursor<BetaManagedAgentsAgent>
GET/v1/agents
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
获取代理
client.beta.agents.retrieve(agentID, params?, options?): BetaManagedAgentsAgent
GET/v1/agents/{agent_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新代理
client.beta.agents.update(agentID, params, options?): BetaManagedAgentsAgent
POST/v1/agents/{agent_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
归档代理
client.beta.agents.archive(agentID, params?, options?): BetaManagedAgentsAgent
POST/v1/agents/{agent_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta代理版本

列出代理版本
client.beta.agents.versions.list(agentID, params?, options?): PageCursor<BetaManagedAgentsAgent>
GET/v1/agents/{agent_id}/versions
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta环境

创建环境
client.beta.environments.create(params, options?): BetaEnvironment
POST/v1/environments

使用指定配置创建新环境。

列出环境
client.beta.environments.list(params?, options?): PageCursor<BetaEnvironment>
GET/v1/environments

列出环境,支持分页。

获取环境
client.beta.environments.retrieve(environmentID, params?, options?): BetaEnvironment
GET/v1/environments/{environment_id}

按 ID 检索特定环境。

更新环境
client.beta.environments.update(environmentID, params, options?): BetaEnvironment
POST/v1/environments/{environment_id}

更新现有环境的配置。

删除环境
client.beta.environments.delete(environmentID, params?, options?): BetaEnvironmentDeleteResponse
DELETE/v1/environments/{environment_id}

按 ID 删除环境。返回删除确认。

归档环境
client.beta.environments.archive(environmentID, params?, options?): BetaEnvironment
POST/v1/environments/{environment_id}/archive

按 ID 归档环境。已归档的环境不能用于创建新会话。

Beta环境工作

获取工作项
client.beta.environments.work.retrieve(workID, params, options?): BetaSelfHostedWork
GET/v1/environments/{environment_id}/work/{work_id}

Retrieve detailed information about a specific work item.

轮询工作
client.beta.environments.work.poll(environmentID, params?, options?): BetaSelfHostedWork | null
GET/v1/environments/{environment_id}/work/poll

注意:这些端点由 SDK 和 CLI 中提供的预构建环境工作器自动调用,用于编排使用自托管沙箱环境的会话。此处列出仅供参考;您无需直接调用它们。

确认工作
client.beta.environments.work.ack(workID, params, options?): BetaSelfHostedWork
POST/v1/environments/{environment_id}/work/{work_id}/ack

注意:这些端点由 SDK 和 CLI 中提供的预构建环境工作器自动调用,用于编排使用自托管沙箱环境的会话。此处列出仅供参考;您无需直接调用它们。

记录心跳
client.beta.environments.work.heartbeat(workID, params, options?): BetaSelfHostedWorkHeartbeatResponse
POST/v1/environments/{environment_id}/work/{work_id}/heartbeat

注意:这些端点由 SDK 和 CLI 中提供的预构建环境工作器自动调用,用于编排使用自托管沙箱环境的会话。此处列出仅供参考;您无需直接调用它们。

停止工作
client.beta.environments.work.stop(workID, params, options?): BetaSelfHostedWork
POST/v1/environments/{environment_id}/work/{work_id}/stop

Stop a work item, initiating graceful or forced shutdown.

列出工作项
client.beta.environments.work.list(environmentID, params?, options?): PageCursor<BetaSelfHostedWork>
GET/v1/environments/{environment_id}/work

List work items in an environment.

更新工作项
client.beta.environments.work.update(workID, params, options?): BetaSelfHostedWork
POST/v1/environments/{environment_id}/work/{work_id}

Update work item metadata with merge semantics.

获取队列统计信息
client.beta.environments.work.stats(environmentID, params?, options?): BetaSelfHostedWorkQueueStats
GET/v1/environments/{environment_id}/work/stats

获取某个环境的工作队列统计信息。

Beta会话

创建会话
client.beta.sessions.create(params, options?): BetaManagedAgentsSession
POST/v1/sessions
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出会话
client.beta.sessions.list(params?, options?): BidirectionalPageCursor<BetaManagedAgentsSession>
GET/v1/sessions
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
获取会话
client.beta.sessions.retrieve(sessionID, params?, options?): BetaManagedAgentsSession
GET/v1/sessions/{session_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新会话
client.beta.sessions.update(sessionID, params, options?): BetaManagedAgentsSession
POST/v1/sessions/{session_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
删除会话
client.beta.sessions.delete(sessionID, params?, options?): BetaManagedAgentsDeletedSession
DELETE/v1/sessions/{session_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
归档会话
client.beta.sessions.archive(sessionID, params?, options?): BetaManagedAgentsSession
POST/v1/sessions/{session_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta会话事件

列出事件
client.beta.sessions.events.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionEvent>
GET/v1/sessions/{session_id}/events
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
发送事件
client.beta.sessions.events.send(sessionID, params, options?): BetaManagedAgentsSendSessionEvents
POST/v1/sessions/{session_id}/events
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
流式传输事件
client.beta.sessions.events.stream(sessionID, params?, options?): Stream<BetaManagedAgentsStreamSessionEvents>
GET/v1/sessions/{session_id}/events/stream
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta会话资源

添加会话资源
client.beta.sessions.resources.add(sessionID, params, options?): BetaManagedAgentsFileResource
POST/v1/sessions/{session_id}/resources
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出会话资源
client.beta.sessions.resources.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionResource>
GET/v1/sessions/{session_id}/resources
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
获取会话资源
client.beta.sessions.resources.retrieve(resourceID, params, options?): ResourceRetrieveResponse
GET/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新会话资源
client.beta.sessions.resources.update(resourceID, params, options?): ResourceUpdateResponse
POST/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
删除会话资源
client.beta.sessions.resources.delete(resourceID, params, options?): BetaManagedAgentsDeleteSessionResource
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta会话线程

列出会话线程
client.beta.sessions.threads.list(sessionID, params?, options?): PageCursor<BetaManagedAgentsSessionThread>
GET/v1/sessions/{session_id}/threads
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
获取会话线程
client.beta.sessions.threads.retrieve(threadID, params, options?): BetaManagedAgentsSessionThread
GET/v1/sessions/{session_id}/threads/{thread_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
归档会话线程
client.beta.sessions.threads.archive(threadID, params, options?): BetaManagedAgentsSessionThread
POST/v1/sessions/{session_id}/threads/{thread_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta会话线程事件

列出会话线程事件
client.beta.sessions.threads.events.list(threadID, params, options?): 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.
流式传输会话线程事件
client.beta.sessions.threads.events.stream(threadID, params, options?): 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.

Beta部署

创建部署
client.beta.deployments.create(params, options?): BetaManagedAgentsDeployment
POST/v1/deployments
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出部署
client.beta.deployments.list(params?, options?): PageCursor<BetaManagedAgentsDeployment>
GET/v1/deployments
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
获取部署
client.beta.deployments.retrieve(deploymentID, params?, options?): BetaManagedAgentsDeployment
GET/v1/deployments/{deployment_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新部署
client.beta.deployments.update(deploymentID, params, options?): BetaManagedAgentsDeployment
POST/v1/deployments/{deployment_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
归档部署
client.beta.deployments.archive(deploymentID, params?, options?): BetaManagedAgentsDeployment
POST/v1/deployments/{deployment_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
立即运行部署
client.beta.deployments.run(deploymentID, params?, options?): BetaManagedAgentsDeploymentRun
POST/v1/deployments/{deployment_id}/run
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
暂停部署
client.beta.deployments.pause(deploymentID, params?, options?): BetaManagedAgentsDeployment
POST/v1/deployments/{deployment_id}/pause
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
取消暂停部署
client.beta.deployments.unpause(deploymentID, params?, options?): BetaManagedAgentsDeployment
POST/v1/deployments/{deployment_id}/unpause
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出部署运行
client.beta.deploymentRuns.list(params?, options?): PageCursor<BetaManagedAgentsDeploymentRun>
GET/v1/deployment_runs
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
获取部署运行
client.beta.deploymentRuns.retrieve(deploymentRunID, params?, options?): BetaManagedAgentsDeploymentRun
GET/v1/deployment_runs/{deployment_run_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta保管库

创建保管库
client.beta.vaults.create(params, options?): BetaManagedAgentsVault
POST/v1/vaults
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出保管库
client.beta.vaults.list(params?, options?): PageCursor<BetaManagedAgentsVault>
GET/v1/vaults
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
检索保管库
client.beta.vaults.retrieve(vaultID, params?, options?): BetaManagedAgentsVault
GET/v1/vaults/{vault_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新保管库
client.beta.vaults.update(vaultID, params, options?): BetaManagedAgentsVault
POST/v1/vaults/{vault_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
删除保管库
client.beta.vaults.delete(vaultID, params?, options?): BetaManagedAgentsDeletedVault
DELETE/v1/vaults/{vault_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
归档保管库
client.beta.vaults.archive(vaultID, params?, options?): BetaManagedAgentsVault
POST/v1/vaults/{vault_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta保管库凭证

创建凭证
client.beta.vaults.credentials.create(vaultID, params, options?): BetaManagedAgentsCredential
POST/v1/vaults/{vault_id}/credentials
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出凭证
client.beta.vaults.credentials.list(vaultID, params?, options?): PageCursor<BetaManagedAgentsCredential>
GET/v1/vaults/{vault_id}/credentials
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
检索凭证
client.beta.vaults.credentials.retrieve(credentialID, params, options?): BetaManagedAgentsCredential
GET/v1/vaults/{vault_id}/credentials/{credential_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新凭证
client.beta.vaults.credentials.update(credentialID, params, options?): BetaManagedAgentsCredential
POST/v1/vaults/{vault_id}/credentials/{credential_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
删除凭证
client.beta.vaults.credentials.delete(credentialID, params, options?): BetaManagedAgentsDeletedCredential
DELETE/v1/vaults/{vault_id}/credentials/{credential_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
归档凭证
client.beta.vaults.credentials.archive(credentialID, params, options?): BetaManagedAgentsCredential
POST/v1/vaults/{vault_id}/credentials/{credential_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
验证 MCP OAuth 凭证
client.beta.vaults.credentials.mcpOAuthValidate(credentialID, params, options?): BetaManagedAgentsCredentialValidation
POST/v1/vaults/{vault_id}/credentials/{credential_id}/mcp_oauth_validate
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
创建记忆存储
client.beta.memoryStores.create(params, options?): BetaManagedAgentsMemoryStore
POST/v1/memory_stores
Requires anthropic-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>
GET/v1/memory_stores
Requires 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?): BetaManagedAgentsMemoryStore
GET/v1/memory_stores/{memory_store_id}
Requires anthropic-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?): BetaManagedAgentsMemoryStore
POST/v1/memory_stores/{memory_store_id}
Requires anthropic-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?): BetaManagedAgentsDeletedMemoryStore
DELETE/v1/memory_stores/{memory_store_id}
Requires anthropic-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?): BetaManagedAgentsMemoryStore
POST/v1/memory_stores/{memory_store_id}/archive
Requires anthropic-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?): BetaManagedAgentsMemory
POST/v1/memory_stores/{memory_store_id}/memories
Requires 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.list(memoryStoreID, params?, options?): PageCursor<BetaManagedAgentsMemoryListItem>
GET/v1/memory_stores/{memory_store_id}/memories
Requires 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?): BetaManagedAgentsMemory
GET/v1/memory_stores/{memory_store_id}/memories/{memory_id}
Requires 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.update(memoryID, params, options?): BetaManagedAgentsMemory
POST/v1/memory_stores/{memory_store_id}/memories/{memory_id}
Requires 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.delete(memoryID, params, options?): BetaManagedAgentsDeletedMemory
DELETE/v1/memory_stores/{memory_store_id}/memories/{memory_id}
Requires anthropic-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>
GET/v1/memory_stores/{memory_store_id}/memory_versions
Requires 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?): BetaManagedAgentsMemoryVersion
GET/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}
Requires 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.redact(memoryVersionID, params, options?): BetaManagedAgentsMemoryVersion
POST/v1/memory_stores/{memory_store_id}/memory_versions/{memory_version_id}/redact
Requires anthropic-beta: agent-memory-2026-07-22 or anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta文件

上传文件
client.beta.files.upload(params, options?): BetaFileMetadata
POST/v1/files
列出文件
client.beta.files.list(params?, options?): PageCursor<BetaFileMetadata>
GET/v1/files
下载文件
client.beta.files.download(fileID, params?, options?): Response
GET/v1/files/{file_id}/content
获取文件元数据
client.beta.files.retrieveMetadata(fileID, params?, options?): BetaFileMetadata
GET/v1/files/{file_id}
删除文件
client.beta.files.delete(fileID, params?, options?): BetaDeletedFile
DELETE/v1/files/{file_id}

Beta技能

创建技能
client.beta.skills.create(params, options?): BetaSkill
POST/v1/skills
列出技能
client.beta.skills.list(params?, options?): PageCursor<BetaSkill>
GET/v1/skills
获取技能
client.beta.skills.retrieve(skillID, params?, options?): BetaSkill
GET/v1/skills/{skill_id}
删除技能
client.beta.skills.delete(skillID, params?, options?): BetaDeletedSkill
DELETE/v1/skills/{skill_id}

Beta技能版本

创建技能版本
client.beta.skills.versions.create(skillID, params, options?): BetaSkillVersion
POST/v1/skills/{skill_id}/versions
列出技能版本
client.beta.skills.versions.list(skillID, params?, options?): PageCursor<BetaSkillVersion>
GET/v1/skills/{skill_id}/versions
下载技能版本内容
client.beta.skills.versions.download(version, params, options?): Response
GET/v1/skills/{skill_id}/versions/{version}/content

以 zip 压缩包形式下载技能版本的内容。

获取技能版本
client.beta.skills.versions.retrieve(version, params, options?): BetaSkillVersion
GET/v1/skills/{skill_id}/versions/{version}
删除技能版本
client.beta.skills.versions.delete(version, params, options?): BetaDeletedSkillVersion
DELETE/v1/skills/{skill_id}/versions/{version}

BetaWebhook

解包
client.beta.webhooks.unwrap(body, options): BetaWebhookEvent
Function

使用您的 webhook 签名密钥,根据 webhook-id、webhook-timestamp 和 webhook-signature 标头验证 webhook 签名,然后将负载解析为事件。如果 签名缺失或无效,则会失败。

解析(不验证)
client.beta.webhooks.parseUnverified(body): BetaWebhookEvent
Function

将 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?): BetaUserProfile
POST/v1/user_profiles

Register 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>
GET/v1/user_profiles

List the user profiles in your organization, newest first by default.

获取用户配置文件
client.beta.userProfiles.retrieve(userProfileID, params?, options?): BetaUserProfile
GET/v1/user_profiles/{user_profile_id}

Get a user profile by ID to check the details stored for it.

更新用户配置文件
client.beta.userProfiles.update(userProfileID, params, options?): BetaUserProfile
POST/v1/user_profiles/{user_profile_id}

Change the details of a user profile, leaving the fields that you don't send as they are.

删除用户配置文件
client.beta.userProfiles.delete(userProfileID, params?, options?): BetaDeletedUserProfile
DELETE/v1/user_profiles/{user_profile_id}

Delete a user profile, for example when the end customer closes their account.

创建注册 URL
client.beta.userProfiles.createEnrollmentURL(userProfileID, params?, options?): BetaUserProfileEnrollmentURL
POST/v1/user_profiles/{user_profile_id}/enrollment_url

Create 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?): BetaUserProfileActionURL
POST/v1/user_profiles/{user_profile_id}/action_urls

Create a link that sends the profile's end customer to the Verification Portal.

Beta梦境

创建梦境
client.beta.dreams.create(params, options?): BetaDream
POST/v1/dreams
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

启动一个异步作业,该作业使用过去的会话生成记忆存储的重组版本,并返回梦境以供您轮询结果。

列出梦境
client.beta.dreams.list(params?, options?): PageCursor<BetaDream>
GET/v1/dreams
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

按从新到旧的顺序列出工作区中的梦境。

获取梦境
client.beta.dreams.retrieve(dreamID, params?, options?): BetaDream
GET/v1/dreams/{dream_id}
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

通过 ID 获取梦境,以检查其状态、输出记忆存储和令牌用量。

取消梦境
client.beta.dreams.cancel(dreamID, params?, options?): BetaDream
POST/v1/dreams/{dream_id}/cancel
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

停止处于 pending 或 running 状态的梦境。

归档梦境
client.beta.dreams.archive(dreamID, params?, options?): BetaDream
POST/v1/dreams/{dream_id}/archive
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

将处于 completed、failed 或 canceled 状态的梦境从默认梦境列表中隐藏。

Beta隧道

创建隧道
client.beta.tunnels.create(params, options?): BetaTunnel
POST/v1/tunnels
Requires 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.retrieve(tunnelID, params?, options?): BetaTunnel
GET/v1/tunnels/{tunnel_id}
Requires 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.list(params?, options?): PageCursor<BetaTunnel>
GET/v1/tunnels
Requires 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?): BetaTunnel
POST/v1/tunnels/{tunnel_id}/archive
Requires 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.revealToken(tunnelID, params?, options?): BetaTunnelToken
POST/v1/tunnels/{tunnel_id}/reveal_token
Requires 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.rotateToken(tunnelID, params, options?): BetaTunnelToken
POST/v1/tunnels/{tunnel_id}/rotate_token
Requires 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 端点,这些端点在迁移窗口期内仍然可用。

Beta隧道证书

创建隧道证书
client.beta.tunnels.certificates.create(tunnelID, params, options?): BetaTunnelCertificate
POST/v1/tunnels/{tunnel_id}/certificates
Requires 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.retrieve(certificateID, params, options?): BetaTunnelCertificate
GET/v1/tunnels/{tunnel_id}/certificates/{certificate_id}
Requires 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.list(tunnelID, params?, options?): PageCursor<BetaTunnelCertificate>
GET/v1/tunnels/{tunnel_id}/certificates
Requires 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?): BetaTunnelCertificate
POST/v1/tunnels/{tunnel_id}/certificates/{certificate_id}/archive
Requires 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 端点,这些端点在迁移窗口期内仍然可用。

Beta组织

获取当前组织
client.beta.organization.retrieve(options?): BetaOrganization
GET/v1/organizations/me

检索与经过身份验证的 API 密钥关联的组织的信息。

Beta组织API 密钥

列出 API 密钥
client.beta.organization.apiKeys.list(query?, options?): Page<BetaAPIKey>
GET/v1/organizations/api_keys
检索 API 密钥(Admin API)
client.beta.organization.apiKeys.retrieve(apiKeyID, options?): BetaAPIKey
GET/v1/organizations/api_keys/{api_key_id}

按 ID 检索您组织中单个 API 密钥的信息。此 Admin API 端点需要 Admin API 密钥,用于以编程方式管理密钥,并且绝不会返回密钥的机密值。要查看或创建您自己的 API 密钥,请前往 Claude Console 中的 API 密钥页面。

更新 API 密钥
client.beta.organization.apiKeys.update(apiKeyID, body, options?): BetaAPIKey
POST/v1/organizations/api_keys/{api_key_id}

Beta组织外部密钥

创建外部密钥
client.beta.organization.externalKeys.create(body, options?): BetaExternalKey
POST/v1/organizations/external_keys

创建一个归调用方组织所有的外部密钥配置。

列出外部密钥
client.beta.organization.externalKeys.list(query?, options?): PageCursor<BetaExternalKey>
GET/v1/organizations/external_keys

列出调用方组织中的外部密钥配置。

获取外部密钥
client.beta.organization.externalKeys.retrieve(externalKeyID, options?): BetaExternalKey
GET/v1/organizations/external_keys/{external_key_id}

按 ID 检索调用方组织中的单个外部密钥配置。

更新外部密钥
client.beta.organization.externalKeys.update(externalKeyID, body, options?): BetaExternalKey
POST/v1/organizations/external_keys/{external_key_id}

Partially update an external key config. Omitted fields are left unchanged.

删除外部密钥
client.beta.organization.externalKeys.delete(externalKeyID, options?): ExternalKeyDeleteResponse
DELETE/v1/organizations/external_keys/{external_key_id}

删除外部密钥配置。

验证外部密钥
client.beta.organization.externalKeys.validate(externalKeyID, options?): ExternalKeyValidateResponse
POST/v1/organizations/external_keys/{external_key_id}/validate

针对客户的 KMS 验证外部密钥配置。

Beta组织联合颁发者

创建联合颁发者
client.beta.organization.federation.issuers.create(params, options?): BetaFederationIssuer
POST/v1/organizations/federation_issuers

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

列出联合颁发者
client.beta.organization.federation.issuers.list(params?, options?): PageCursor<BetaFederationIssuer>
GET/v1/organizations/federation_issuers

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

获取联合颁发者
client.beta.organization.federation.issuers.retrieve(federationIssuerID, params?, options?): BetaFederationIssuer
GET/v1/organizations/federation_issuers/{federation_issuer_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

更新联合颁发者
client.beta.organization.federation.issuers.update(federationIssuerID, params, options?): BetaFederationIssuer
POST/v1/organizations/federation_issuers/{federation_issuer_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

归档联合颁发者
client.beta.organization.federation.issuers.archive(federationIssuerID, params?, options?): BetaFederationIssuer
POST/v1/organizations/federation_issuers/{federation_issuer_id}/archive

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

Beta组织联合规则

创建联合规则
client.beta.organization.federation.rules.create(params, options?): BetaFederationRule
POST/v1/organizations/federation_rules

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

列出联合规则
client.beta.organization.federation.rules.list(params?, options?): PageCursor<BetaFederationRule>
GET/v1/organizations/federation_rules

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

获取联合规则
client.beta.organization.federation.rules.retrieve(federationRuleID, params?, options?): BetaFederationRule
GET/v1/organizations/federation_rules/{federation_rule_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

更新联合规则
client.beta.organization.federation.rules.update(federationRuleID, params, options?): BetaFederationRule
POST/v1/organizations/federation_rules/{federation_rule_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

归档联合规则
client.beta.organization.federation.rules.archive(federationRuleID, params?, options?): BetaFederationRule
POST/v1/organizations/federation_rules/{federation_rule_id}/archive

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

Beta组织联合规则工作区

添加联合规则工作区
client.beta.organization.federation.rules.workspaces.add(federationRuleID, params, options?): BetaFederationRuleWorkspace
POST/v1/organizations/federation_rules/{federation_rule_id}/workspaces

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

列出联合规则工作区
client.beta.organization.federation.rules.workspaces.list(federationRuleID, params?, options?): PageCursor<BetaFederationRuleWorkspace>
GET/v1/organizations/federation_rules/{federation_rule_id}/workspaces

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

移除联合规则工作区
client.beta.organization.federation.rules.workspaces.remove(workspaceID, params, options?): WorkspaceRemoveResponse
DELETE/v1/organizations/federation_rules/{federation_rule_id}/workspaces/{workspace_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

Beta组织邀请

创建邀请
client.beta.organization.invites.create(body, options?): BetaOrganizationInvite
POST/v1/organizations/invites

通过电子邮件邀请用户加入组织。

列出邀请
client.beta.organization.invites.list(query?, options?): Page<BetaOrganizationInvite>
GET/v1/organizations/invites

列出组织的邀请。

获取邀请
client.beta.organization.invites.retrieve(inviteID, options?): BetaOrganizationInvite
GET/v1/organizations/invites/{invite_id}

按 ID 检索邀请。

删除邀请
client.beta.organization.invites.delete(inviteID, options?): InviteDeleteResponse
DELETE/v1/organizations/invites/{invite_id}

删除待处理的邀请。

Beta组织服务账号

创建服务账号
client.beta.organization.serviceAccounts.create(params, options?): BetaServiceAccount
POST/v1/organizations/service_accounts

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

列出服务账号
client.beta.organization.serviceAccounts.list(params?, options?): PageCursor<BetaServiceAccount>
GET/v1/organizations/service_accounts

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

获取服务账号
client.beta.organization.serviceAccounts.retrieve(serviceAccountID, params?, options?): BetaServiceAccount
GET/v1/organizations/service_accounts/{service_account_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

更新服务账号
client.beta.organization.serviceAccounts.update(serviceAccountID, params, options?): BetaServiceAccount
POST/v1/organizations/service_accounts/{service_account_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

归档服务账号
client.beta.organization.serviceAccounts.archive(serviceAccountID, params?, options?): BetaServiceAccount
POST/v1/organizations/service_accounts/{service_account_id}/archive

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

Beta组织服务账号工作区

将工作区添加到服务账号
client.beta.organization.serviceAccounts.workspaces.add(serviceAccountID, params, options?): BetaServiceAccountWorkspaceMember
POST/v1/organizations/service_accounts/{service_account_id}/workspaces

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

列出服务账号所属的工作区
client.beta.organization.serviceAccounts.workspaces.list(serviceAccountID, params?, options?): PageCursor<BetaServiceAccountWorkspaceMember>
GET/v1/organizations/service_accounts/{service_account_id}/workspaces

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

从服务账号中移除工作区
client.beta.organization.serviceAccounts.workspaces.remove(workspaceID, params, options?): WorkspaceRemoveResponse
DELETE/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

Beta组织External Storage

创建 External Storage
client.beta.organization.externalStorage.create(params, options?): BetaExternalStorage
POST/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

注册组织自有云账户中的存储桶。它会被保存为 pending_configuration,并在激活时进行验证。

列出 External Storage
client.beta.organization.externalStorage.list(params?, options?): PageCursor<BetaExternalStorage>
GET/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

列出组织的 External Storage,按从新到旧排序。

获取 External Storage
client.beta.organization.externalStorage.retrieve(externalStorageID, params?, options?): BetaExternalStorage
GET/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

获取组织中的一个 External Storage。

更新 External Storage
client.beta.organization.externalStorage.update(externalStorageID, params, options?): BetaExternalStorage
POST/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

重命名 External Storage 或清除其名称,适用于任何状态。

删除 External Storage
client.beta.organization.externalStorage.delete(externalStorageID, params?, options?): BetaDeletedExternalStorage
DELETE/v1/organizations/external_storage/{external_storage_id}
Requires anthropic-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?): BetaExternalStorage
POST/v1/organizations/external_storage/{external_storage_id}/activate
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

验证待配置的 External Storage 并使其可用。 已处于可用、活跃或 Draining 状态的存储将原样返回, 不进行任何检查。

Beta组织用户

列出用户
client.beta.organization.users.list(query?, options?): Page<BetaOrganizationUser>
GET/v1/organizations/users

列出组织的成员。

获取用户
client.beta.organization.users.retrieve(userID, options?): BetaOrganizationUser
GET/v1/organizations/users/{user_id}

按用户 ID 检索组织成员。

更新用户
client.beta.organization.users.update(userID, body, options?): BetaOrganizationUser
POST/v1/organizations/users/{user_id}

更新成员的组织角色。

移除用户
client.beta.organization.users.remove(userID, options?): UserRemoveResponse
DELETE/v1/organizations/users/{user_id}

将成员从组织中移除。

登出用户
client.beta.organization.users.signOut(userID, params?, options?): BetaOrganizationUser
POST/v1/organizations/users/{user_id}/sign_out
Requires anthropic-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>
GET/v1/organizations/workspaces
创建工作区
client.beta.organization.workspaces.create(params, options?): BetaWorkspace
POST/v1/organizations/workspaces
获取工作区
client.beta.organization.workspaces.retrieve(workspaceID, params?, options?): BetaWorkspace
GET/v1/organizations/workspaces/{workspace_id}
更新工作区
client.beta.organization.workspaces.update(workspaceID, params, options?): BetaWorkspace
POST/v1/organizations/workspaces/{workspace_id}
归档工作区
client.beta.organization.workspaces.archive(workspaceID, params?, options?): BetaWorkspace
POST/v1/organizations/workspaces/{workspace_id}/archive

Beta组织工作区速率限制

列出工作区速率限制
client.beta.organization.workspaces.rateLimits.list(workspaceID, query?, options?): PageCursor<BetaWorkspaceRateLimit>
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

列出工作区的速率限制(rate limit)。

设置工作区速率限制
client.beta.organization.workspaces.rateLimits.update(rateLimitID, params, options?): BetaWorkspaceRateLimit
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

为工作区中的某个速率限制组设置或清除速率限制覆盖值。

Beta组织工作区成员

列出工作区成员
client.beta.organization.workspaces.members.list(workspaceID, query?, options?): Page<BetaWorkspaceMember>
GET/v1/organizations/workspaces/{workspace_id}/members
创建工作区成员
client.beta.organization.workspaces.members.add(workspaceID, body, options?): BetaWorkspaceMember
POST/v1/organizations/workspaces/{workspace_id}/members
获取工作区成员
client.beta.organization.workspaces.members.retrieve(userID, params, options?): BetaWorkspaceMember
GET/v1/organizations/workspaces/{workspace_id}/members/{user_id}
更新工作区成员
client.beta.organization.workspaces.members.update(userID, params, options?): BetaWorkspaceMember
POST/v1/organizations/workspaces/{workspace_id}/members/{user_id}
删除工作区成员
client.beta.organization.workspaces.members.remove(userID, params, options?): MemberRemoveResponse
DELETE/v1/organizations/workspaces/{workspace_id}/members/{user_id}

Beta组织工作区服务账号

列出服务账号工作区成员
client.beta.organization.workspaces.serviceAccounts.list(workspaceID, params?, options?): PageCursor<BetaServiceAccountWorkspaceMember>
GET/v1/organizations/workspaces/{workspace_id}/service_accounts

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

创建服务账号工作区成员
client.beta.organization.workspaces.serviceAccounts.add(workspaceID, params, options?): BetaServiceAccountWorkspaceMember
POST/v1/organizations/workspaces/{workspace_id}/service_accounts

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

获取服务账号工作区成员
client.beta.organization.workspaces.serviceAccounts.retrieve(serviceAccountID, params, options?): BetaServiceAccountWorkspaceMember
GET/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

更新服务账号工作区成员
client.beta.organization.workspaces.serviceAccounts.update(serviceAccountID, params, options?): BetaServiceAccountWorkspaceMember
POST/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

需要具有 org:admin 作用域的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或工作负载身份联合规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

删除服务账号工作区成员
client.beta.organization.workspaces.serviceAccounts.remove(serviceAccountID, params, options?): ServiceAccountRemoveResponse
DELETE/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

需要具有 org:admin 范围的 OAuth 访问令牌,可通过 ant auth login --scope org:admin 或 "workload identity federation"(工作负载身份联合)规则获取;不接受 Admin API 密钥。请参阅使用 Admin API 管理 WIF。

Beta组织速率限制

列出组织速率限制
client.beta.organization.rateLimits.list(query?, options?): PageCursor<BetaOrganizationRateLimit>
GET/v1/organizations/rate_limits

列出您组织的 Messages API "rate limit"(速率限制)。

Beta组织合规设置

获取合规设置
client.beta.organization.complianceSettings.retrieve(params?, options?): BetaComplianceSettings
GET/v1/organizations/compliance_settings

检索您组织的合规设置。

更新合规设置
client.beta.organization.complianceSettings.update(params, options?): BetaComplianceSettings
POST/v1/organizations/compliance_settings

更新您组织的合规设置。

Beta组织分析摘要

获取活动摘要
client.beta.organization.analytics.summaries.list(query, options?): PageCursor<BetaAnalyticsSingleDayActivitySummary>
GET/v1/organizations/analytics/summaries

获取某个日期范围内的组织级活动摘要。

Beta组织分析用户

列出用户活动
client.beta.organization.analytics.users.list(query?, options?): PageCursor<BetaAnalyticsUserActivity>
GET/v1/organizations/analytics/users

获取给定日期的每用户活动,支持基于游标的分页。

Beta组织分析应用聊天项目

获取聊天项目用量
client.beta.organization.analytics.apps.chat.projects.list(query?, options?): PageCursor<BetaAnalyticsProjectActivity>
GET/v1/organizations/analytics/apps/chat/projects

获取指定日期的每项目活动,支持基于游标的分页。

Beta组织分析连接器

获取连接器使用情况
client.beta.organization.analytics.connectors.list(query?, options?): PageCursor<BetaAnalyticsConnectorActivity>
GET/v1/organizations/analytics/connectors

获取给定日期的每连接器使用情况,支持基于游标的分页。

Beta组织分析插件

获取插件使用情况
client.beta.organization.analytics.plugins.list(query?, options?): PageCursor<BetaAnalyticsPluginActivity>
GET/v1/organizations/analytics/plugins

获取给定日期的每插件安装 + 调用使用情况,支持分页。

Beta组织分析技能

获取技能使用情况
client.beta.organization.analytics.skills.list(query?, options?): PageCursor<BetaAnalyticsSkillActivity>
GET/v1/organizations/analytics/skills

获取给定日期的每技能使用情况,支持基于游标的分页。

Beta组织分析Artifacts

获取 Artifact 活动
client.beta.organization.analytics.artifacts.list(query, options?): PageCursor<BetaAnalyticsArtifactActivity>
GET/v1/organizations/analytics/artifacts

获取给定日期的 Artifact 创建活动,按 MIME 类型细分。

Beta组织分析用量

按维度获取令牌用量
client.beta.organization.analytics.usage.list(params, options?): ReportPageCursor<BetaAnalyticsUsageItem>
GET/v1/organizations/analytics/usage
Requires 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>
GET/v1/organizations/analytics/cost
Requires 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组织分析使用情况报告

获取随时间变化的令牌用量
client.beta.organization.analytics.usageReport.list(query, options?): ReportPageCursor<BetaAnalyticsUsageReportTimeBucket>
GET/v1/organizations/analytics/usage_report

[旧版] 获取某个日期范围内随时间变化的令牌用量。

Beta组织分析用户用量报告

获取每用户令牌用量
client.beta.organization.analytics.userUsageReport.list(query, options?): ReportPageCursor<BetaAnalyticsUsageUsersItem>
GET/v1/organizations/analytics/user_usage_report

[Legacy] Get per-user token usage across a date range.

Beta组织分析成本报告

获取随时间变化的成本
client.beta.organization.analytics.costReport.list(query, options?): ReportPageCursor<BetaAnalyticsCostReportTimeBucket>
GET/v1/organizations/analytics/cost_report

[旧版] 获取某个日期范围内随时间变化的成本(以美元计)。

Beta组织分析用户成本报告

获取每用户成本
client.beta.organization.analytics.userCostReport.list(query, options?): ReportPageCursor<BetaAnalyticsCostUsersItem>
GET/v1/organizations/analytics/user_cost_report

[Legacy] Get per-user cost in USD across a date range.

Beta组织支出限额

设置支出限额
client.beta.organization.spendLimits.set(params, options?): BetaSpendLimit
POST/v1/organizations/spend_limits

设置支出限额。

获取支出限额
client.beta.organization.spendLimits.retrieve(spendLimitID, options?): BetaSpendLimit
GET/v1/organizations/spend_limits/{spend_limit_id}

按 ID 检索支出限额。

删除支出限额
client.beta.organization.spendLimits.delete(spendLimitID, options?): SpendLimitDeleteResponse
DELETE/v1/organizations/spend_limits/{spend_limit_id}

删除支出限额。

列出支出限额
client.beta.organization.spendLimits.list(params?, options?): PageCursor<BetaSpendLimit>
GET/v1/organizations/spend_limits
Requires 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>
GET/v1/organizations/spend_limits/effective

列出每位成员的生效支出限额及本周期至今的支出。

Beta组织支出限额提额请求

列出支出限额提额请求
client.beta.organization.spendLimits.increaseRequests.list(query?, options?): PageCursor<BetaSpendLimitIncreaseRequest>
GET/v1/organizations/spend_limit_increase_requests

列出支出限额提额请求,最新的在前。

获取支出限额提额请求
client.beta.organization.spendLimits.increaseRequests.retrieve(spendLimitIncreaseRequestID, options?): BetaSpendLimitIncreaseRequest
GET/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}

检索支出限额提额请求。

批准支出限额提额请求
client.beta.organization.spendLimits.increaseRequests.approve(spendLimitIncreaseRequestID, body, options?): IncreaseRequestApproveResponse
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve

批准待处理的支出限额提额请求。

拒绝支出限额提额请求
client.beta.organization.spendLimits.increaseRequests.deny(spendLimitIncreaseRequestID, body, options?): BetaSpendLimitIncreaseRequest
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny

拒绝待处理的支出限额提额请求。

Beta组织RBAC 组

创建 RBAC 组
client.beta.organization.rbacGroups.create(body, options?): BetaRBACGroup
POST/v1/organizations/rbac_groups

在 Claude Enterprise 租户中创建 RBAC 组。通过 API 创建的组的来源类型为 "direct"。

列出 RBAC 组
client.beta.organization.rbacGroups.list(query?, options?): PageCursor<BetaRBACGroup>
GET/v1/organizations/rbac_groups

列出 Claude Enterprise 租户中的 RBAC 组。

获取 RBAC 组
client.beta.organization.rbacGroups.retrieve(rbacGroupID, options?): BetaRBACGroup
GET/v1/organizations/rbac_groups/{rbac_group_id}

按 ID 检索 RBAC 组。

更新 RBAC 组
client.beta.organization.rbacGroups.update(rbacGroupID, body, options?): BetaRBACGroup
POST/v1/organizations/rbac_groups/{rbac_group_id}

更新 RBAC 组的名称。当租户中的某个组织使用 SCIM 预配时,由身份提供商预配的组(来源类型为 "scim")无法通过 API 修改。

删除 RBAC 组
client.beta.organization.rbacGroups.delete(rbacGroupID, options?): BetaDeletedRBACGroup
DELETE/v1/organizations/rbac_groups/{rbac_group_id}

删除 RBAC 组。当租户中的某个组织使用 SCIM 预配时,由身份提供商预配的组(来源类型为 "scim")无法通过 API 删除。

Beta组织RBAC 组成员

列出 RBAC 组成员
client.beta.organization.rbacGroups.members.list(rbacGroupID, query?, options?): PageCursor<BetaRBACGroupMember>
GET/v1/organizations/rbac_groups/{rbac_group_id}/members

列出 RBAC 组的成员。

添加 RBAC 组成员
client.beta.organization.rbacGroups.members.add(rbacGroupID, body, options?): BetaRBACGroupMember
POST/v1/organizations/rbac_groups/{rbac_group_id}/members

将用户添加到 RBAC 组。当租户中的某个组织使用 SCIM 预配时,由身份提供商预配的组(来源类型为 "scim")的成员资格无法通过 API 修改。

移除 RBAC 组成员
client.beta.organization.rbacGroups.members.remove(userID, params, options?): BetaDeletedRBACGroupMember
DELETE/v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}

从 RBAC 组中移除用户。当租户中的某个组织使用 SCIM 预配时,由身份提供商预配的组(来源类型为 "scim")的成员资格无法通过 API 修改。

Beta组织RBAC 角色

列出 RBAC 角色
client.beta.organization.rbacRoles.list(query?, options?): PageCursor<BetaRBACRole>
GET/v1/organizations/rbac_roles

列出组织中的 RBAC 角色。

获取 RBAC 角色
client.beta.organization.rbacRoles.retrieve(rbacRoleID, options?): BetaRBACRole
GET/v1/organizations/rbac_roles/{rbac_role_id}

按 ID 检索 RBAC 角色。

Beta组织RBAC 角色权限

列出 RBAC 角色权限
client.beta.organization.rbacRoles.permissions.list(rbacRoleID, query?, options?): PageCursor<BetaRBACRolePermission>
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions

列出 RBAC 角色授予的权限。

Beta组织插件

创建插件
client.beta.organization.plugins.create(params, options?): BetaPlugin
POST/v1/organizations/plugins
Requires anthropic-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?): BetaPlugin
GET/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

按 ID 检索插件。

更新插件
client.beta.organization.plugins.update(pluginID, params, options?): BetaPlugin
POST/v1/organizations/plugins/{plugin_id}
Requires anthropic-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>
GET/v1/organizations/plugins
Requires 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?): BetaDeletedPlugin
DELETE/v1/organizations/plugins/{plugin_id}
Requires anthropic-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?): BetaPluginVersion
POST/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-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>
GET/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

列出插件的版本,按从新到旧排序。

获取插件版本
client.beta.organization.plugins.versions.retrieve(version, params, options?): BetaPluginVersion
GET/v1/organizations/plugins/{plugin_id}/versions/{version}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

按 ID 检索插件的某个版本,或检索插件的最新版本。

下载插件版本归档
client.beta.organization.plugins.versions.download(version, params, options?): Response
GET/v1/organizations/plugins/{plugin_id}/versions/{version}/content
Requires anthropic-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>
GET/v1/organizations/plugins/{plugin_id}/installation_settings
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

列出组织所有插件的安装设置(这些设置说明插件面向哪些成员),按创建时间从新到旧排序。

设置插件安装设置
client.beta.organization.plugins.installationSettings.set(target, params, options?): BetaPluginInstallationSetting
POST/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

为整个组织或某个 RBAC 组设置或更改组织所有插件的安装设置。

移除插件安装设置
client.beta.organization.plugins.installationSettings.remove(target, params, options?): BetaDeletedPluginInstallationSetting
DELETE/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

移除组织所有插件针对整个组织或某个 RBAC 组的自身安装设置。

Beta组织插件共享

列出插件共享
client.beta.organization.plugins.shares.list(pluginID, params?, options?): PageCursor<BetaPluginShare>
GET/v1/organizations/plugins/{plugin_id}/shares
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

List the shares the owner of a member-owned Plugin has given — to every member of the organization, to an RBAC Group, or to one member — most recently granted first.

Beta组织插件市场

列出插件市场
client.beta.organization.pluginMarketplaces.list(params?, options?): PageCursor<BetaPluginMarketplace>
GET/v1/organizations/plugin_marketplaces
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

列出插件所在的插件市场,按从新到旧排序:包括组织自有的市场及其成员的个人市场。

获取插件市场
client.beta.organization.pluginMarketplaces.retrieve(marketplaceID, params?, options?): BetaPluginMarketplace
GET/v1/organizations/plugin_marketplaces/{marketplace_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

按 ID 检索插件市场。

更新插件市场
client.beta.organization.pluginMarketplaces.update(marketplaceID, params, options?): BetaPluginMarketplace
POST/v1/organizations/plugin_marketplaces/{marketplace_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

设置组织自有插件市场之一的默认安装设置。该市场中所有没有自身设置的插件(包括之后添加的插件)都会将此默认值作为其组织范围设置。

验证插件市场代码仓库
client.beta.organization.pluginMarketplaces.validateRepository(params, options?): BetaPluginMarketplaceValidationReport
POST/v1/organizations/plugin_marketplaces/validate_repository
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

检查存放在公共 GitHub 代码仓库中的插件市场能否同步到 claude.ai,而不会连接或存储该市场。

验证插件市场归档
client.beta.organization.pluginMarketplaces.validateArchive(params, options?): BetaPluginMarketplaceValidationReport
POST/v1/organizations/plugin_marketplaces/validate_archive
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

检查以市场目录 .zip 文件形式上传的插件市场能否同步到 claude.ai,而不会连接或存储该市场。

Beta组织遥测目标

创建遥测目标
client.beta.organization.telemetryDestinations.create(params, options?): BetaTelemetryDestination
POST/v1/organizations/telemetry_destinations
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

为组织注册一个 OpenTelemetry 目标。

列出遥测目标
client.beta.organization.telemetryDestinations.list(params?, options?): PageCursor<BetaTelemetryDestination>
GET/v1/organizations/telemetry_destinations
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

列出组织的目标,最新的排在最前,可选择仅列出覆盖指定工作区的目标。

检索遥测目标
client.beta.organization.telemetryDestinations.retrieve(destinationID, params?, options?): BetaTelemetryDestination
GET/v1/organizations/telemetry_destinations/{destination_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

读取目标的配置、状态和最近的投递结果。

更新遥测目标
client.beta.organization.telemetryDestinations.update(destinationID, params, options?): BetaTelemetryDestination
POST/v1/organizations/telemetry_destinations/{destination_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

更改遥测目标的设置、状态或其覆盖的工作区。

删除遥测目标
client.beta.organization.telemetryDestinations.delete(destinationID, params?, options?): BetaDeletedTelemetryDestination
DELETE/v1/organizations/telemetry_destinations/{destination_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

删除目标及其工作区列表。

测试遥测目标
client.beta.organization.telemetryDestinations.test(destinationID, params?, options?): BetaTelemetryDestinationTestResponse
POST/v1/organizations/telemetry_destinations/{destination_id}/test
Requires anthropic-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>
GET/v1/organizations/telemetry_destinations/{destination_id}/workspaces
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

列出目标工作区列表中的工作区,最新条目排在最前。

添加遥测目标工作区
client.beta.organization.telemetryDestinations.workspaces.add(workspaceID, params, options?): BetaTelemetryDestinationWorkspace
POST/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

向目标的工作区列表中添加一个工作区。

移除遥测目标工作区
client.beta.organization.telemetryDestinations.workspaces.remove(workspaceID, params, options?): BetaDeletedTelemetryDestinationWorkspace
DELETE/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

从目标的工作区列表中移除一个工作区。

Beta组织Webhook

创建组织 Webhook 端点
client.beta.organization.webhooks.create(params, options?): BetaNewOrganizationWebhookEndpoint
POST/v1/organizations/webhooks
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

创建组织 webhook 端点。

列出组织 Webhook 端点
client.beta.organization.webhooks.list(params?, options?): Page<BetaOrganizationWebhookEndpoint>
GET/v1/organizations/webhooks
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

列出组织的 webhook 端点。

获取组织 Webhook 端点
client.beta.organization.webhooks.retrieve(webhookEndpointID, params?, options?): BetaOrganizationWebhookEndpoint
GET/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

按 ID 检索组织 webhook 端点。

更新组织 Webhook 端点
client.beta.organization.webhooks.update(webhookEndpointID, params, options?): BetaOrganizationWebhookEndpoint
POST/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

更新组织 webhook 端点。仅更改您发送的字段。

删除组织 Webhook 端点
client.beta.organization.webhooks.delete(webhookEndpointID, params?, options?): BetaDeletedOrganizationWebhookEndpoint
DELETE/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

删除组织 webhook 端点。

重新生成组织 Webhook 端点签名密钥
client.beta.organization.webhooks.regenerateSigningSecret(webhookEndpointID, params?, options?): BetaOrganizationWebhookEndpointSigningSecret
POST/v1/organizations/webhooks/{webhook_endpoint_id}/regenerate_signing_secret
Requires anthropic-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?): BetaClaudeCodeManagedSettingsConfiguration
GET/v1/organizations/claude_code/managed_settings/configuration
Requires anthropic-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?): BetaClaudeCodeManagedSettingsConfiguration
POST/v1/organizations/claude_code/managed_settings/configuration
Requires anthropic-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>
GET/v1/organizations/claude_code/managed_settings/rbac_groups
Requires 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?): BetaClaudeCodeRBACGroupManagedSettings
GET/v1/organizations/claude_code/managed_settings/rbac_groups/{rbac_group_id}
Requires anthropic-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?): BetaClaudeCodeRBACGroupManagedSettings
POST/v1/organizations/claude_code/managed_settings/rbac_groups/{rbac_group_id}
Requires anthropic-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?): BetaDeletedClaudeCodeRBACGroupManagedSettings
DELETE/v1/organizations/claude_code/managed_settings/rbac_groups/{rbac_group_id}
Requires anthropic-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?): BetaClaudeCodeRBACGroupDefaultManagedSettings
GET/v1/organizations/claude_code/managed_settings/rbac_group_default
Requires anthropic-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?): BetaClaudeCodeRBACGroupDefaultManagedSettings
POST/v1/organizations/claude_code/managed_settings/rbac_group_default
Requires anthropic-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?): BetaClaudeTagSlackChannel
POST/v1/organizations/claude_tag/slack_channels
Requires anthropic-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>
GET/v1/organizations/claude_tag/slack_channels
Requires 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?): BetaClaudeTagSlackChannel
GET/v1/organizations/claude_tag/slack_channels/{id}
Requires anthropic-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?): BetaClaudeTagSlackChannel
POST/v1/organizations/claude_tag/slack_channels/{id}
Requires anthropic-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?): BetaClaudeTagDeletedSlackChannel
DELETE/v1/organizations/claude_tag/slack_channels/{id}
Requires anthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.

从 Claude Tag 中移除一个 Slack 频道。此操作会立即删除该频道存储的设置及其 Bundle 目标,然后在后台删除该频道的会话及其对话记录、记忆、例程以及从中发布的 Artifacts。这些内容均无法恢复。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>
GET/v1/organizations/claude_tag/slack_workspaces
Requires 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?): BetaClaudeTagSlackWorkspace
GET/v1/organizations/claude_tag/slack_workspaces/{id}
Requires anthropic-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?): BetaClaudeTagSlackWorkspace
POST/v1/organizations/claude_tag/slack_workspaces/{id}
Requires anthropic-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>
GET/v1/organizations/claude_tag/bundles
Requires 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?): BetaClaudeTagBundle
GET/v1/organizations/claude_tag/bundles/{bundle_id}
Requires anthropic-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?): BetaClaudeTagBundle
POST/v1/organizations/claude_tag/bundles/{bundle_id}
Requires anthropic-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>
GET/v1/organizations/claude_tag/bundles/{bundle_id}/targets
Requires 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?): BetaClaudeTagBundleTarget
POST/v1/organizations/claude_tag/bundles/{bundle_id}/targets
Requires anthropic-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?): BetaClaudeTagBundleTarget
GET/v1/organizations/claude_tag/bundles/{bundle_id}/targets/{target_id}
Requires anthropic-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?): BetaClaudeTagDeletedBundleTarget
DELETE/v1/organizations/claude_tag/bundles/{bundle_id}/targets/{target_id}
Requires anthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.

将 Bundle 从 Slack 频道或 Slack 工作区分离。重复分离将返回 404。