Claude Platform Docs

Beta

Models
beta_api_error_object: object{ type: "api_error", message }
type: "api_error"

The broad category of the error.

message: string

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

beta_authentication_error_object: object{ type: "authentication_error", message }
type: "authentication_error"

The broad category of the error.

message: string

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

beta_billing_error_object: object{ type: "billing_error", message }
type: "billing_error"

The broad category of the error.

message: string

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

beta_cmek_not_approved_error_details: object{ error_code }
error_code: "cmek_not_approved"
beta_currency: "USD"
"USD"
beta_error_response: object{ type: "error", error, request_id }
type: "error"
request_id: string
beta_external_key_not_found_error_details: object{ error_code }
error_code: "external_key_not_found"
beta_external_key_provider_mismatch_error_details: object{ error_code }
error_code: "external_key_provider_mismatch"
beta_gateway_timeout_error_object: object{ type: "timeout_error", message }
type: "timeout_error"

The broad category of the error.

message: string

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

beta_gcp_project_controlled_by_another_organization_error_details: object{ error_code }
error_code: "gcp_project_controlled_by_another_organization"
beta_gcp_project_not_verified_error_details: object{ error_code }
error_code: "gcp_project_not_verified"
beta_invalid_request_error_object: object{ type: "invalid_request_error", message }
type: "invalid_request_error"

The broad category of the error.

message: string

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

beta_monetary_amount: object{ 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.

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

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.

beta_not_found_error_object: object{ type: "not_found_error", message }
type: "not_found_error"

The broad category of the error.

message: string

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

beta_organization_not_enrolled_in_beta_error_details: object{ error_code }
error_code: "organization_not_enrolled_in_beta"
beta_overloaded_error_object: object{ type: "overloaded_error", message }
type: "overloaded_error"

The broad category of the error.

message: string

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

beta_permission_error_object: object{ type: "permission_error", message }
type: "permission_error"

The broad category of the error.

message: string

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

beta_rate_limit_error_object: object{ type: "rate_limit_error", message }
type: "rate_limit_error"

The broad category of the error.

message: string

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

beta_region_not_supported_error_details: object{ error_code }
error_code: "region_not_supported"
beta_request_body_timeout_error_details: object{ error_code }
error_code: "request_body_timeout"
beta_storage_in_use_error_details: object{ error_code }
error_code: "storage_in_use"
beta_storage_not_approved_error_details: object{ error_code }
error_code: "storage_not_approved"
beta_unsupported_charset_error_details: object{ error_code }
error_code: "unsupported_charset"
Errors
"cmek_not_approved"⁠HTTP status 400

Anthropic has not approved customer-managed encryption keys for the organization, project or user profile this request applies to, or has paused or withdrawn its approval. If you did not expect this, contact Anthropic.

details: object{ error_code }
error_code: "cmek_not_approved"
"external_key_not_found"⁠HTTP status 400

The organization has no active External Key with this ID. The message names the field.

details: object{ error_code }
error_code: "external_key_not_found"
"external_key_provider_mismatch"⁠HTTP status 400

The External Key is held by a key management service that this endpoint does not take. The message names the field and the service it takes.

details: object{ error_code }
error_code: "external_key_provider_mismatch"
"gcp_project_not_verified"⁠HTTP status 400

The organization has not proved that it owns the Google Cloud project that holds the key or bucket. The message names the field.

details: object{ error_code }
error_code: "gcp_project_not_verified"
"organization_not_enrolled_in_beta"⁠HTTP status 400

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

details: object{ error_code }
error_code: "organization_not_enrolled_in_beta"
"region_not_supported"⁠HTTP status 400

The request names a region code that the control does not take from this organization. The message names the field.

details: object{ error_code }
error_code: "region_not_supported"
"request_body_timeout"⁠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.

details: object{ error_code }
error_code: "request_body_timeout"
"storage_not_approved"⁠HTTP status 400

Anthropic has not approved keeping data in a customer-owned storage bucket for the organization, project or user profile this request applies to, or has paused or withdrawn its approval. If you did not expect this, contact Anthropic.

details: object{ error_code }
error_code: "storage_not_approved"
"unsupported_charset"⁠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.

details: object{ error_code }
error_code: "unsupported_charset"
"gcp_project_controlled_by_another_organization"⁠HTTP status 409

Another organization has data controls turned on for this Google Cloud project, or turned them off recently. The message says how long to wait.

details: object{ error_code }
error_code: "gcp_project_controlled_by_another_organization"
"storage_in_use"⁠HTTP status 409

The bucket is already in use, or was in use recently. Name a different bucket.

details: object{ error_code }
error_code: "storage_in_use"

Beta模型

列出模型
$ ant beta:models list
GET/v1/models

列出可用的模型。

取得模型
$ ant beta:models retrieve
GET/v1/models/{model_id}

取得特定模型。

Beta訊息

建立訊息
$ ant beta:messages create
POST/v1/messages

傳送包含文字和/或圖片內容的結構化輸入訊息清單,模型將產生對話中的下一則訊息。

計算訊息中的 Token 數
$ ant beta:messages count-tokens
POST/v1/messages/count_tokens

計算訊息中的 Token 數量。

Beta訊息批次

建立訊息批次
$ ant beta:messages:batches create
POST/v1/messages/batches

傳送一批訊息建立請求。

擷取訊息批次
$ ant beta:messages:batches retrieve
GET/v1/messages/batches/{message_batch_id}

此端點具冪等性,可用於輪詢訊息批次是否完成。若要存取訊息批次的結果,請對回應中的 results_url 欄位發出請求。

列出訊息批次
$ ant beta:messages:batches list
GET/v1/messages/batches

列出工作區內的所有訊息批次。最近建立的批次會優先傳回。

取消訊息批次
$ ant beta:messages:batches cancel
POST/v1/messages/batches/{message_batch_id}/cancel

批次可在處理結束前隨時取消。一旦啟動取消,批次便會進入 canceling 狀態,此時系統可能會先完成任何進行中且不可中斷的請求,然後才完成取消。

刪除訊息批次
$ ant beta:messages:batches delete
DELETE/v1/messages/batches/{message_batch_id}

刪除訊息批次。

擷取訊息批次結果
$ ant beta:messages:batches results
GET/v1/messages/batches/{message_batch_id}/results

以 .jsonl 檔案的形式串流傳輸訊息批次的結果。

建立代理程式
$ ant beta:agents create
POST/v1/agents
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出代理程式
$ ant beta:agents list
GET/v1/agents
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
取得代理程式
$ ant beta:agents retrieve
GET/v1/agents/{agent_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新代理程式
$ ant beta:agents update
POST/v1/agents/{agent_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
封存代理程式
$ ant beta:agents archive
POST/v1/agents/{agent_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta代理程式版本

列出代理程式版本
$ ant beta:agents:versions list
GET/v1/agents/{agent_id}/versions
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta環境

建立環境
$ ant beta:environments create
POST/v1/environments

使用指定的設定建立新環境。

列出環境
$ ant beta:environments list
GET/v1/environments

列出環境,支援分頁。

取得環境
$ ant beta:environments retrieve
GET/v1/environments/{environment_id}

依 ID 擷取特定環境。

更新環境
$ ant beta:environments update
POST/v1/environments/{environment_id}

更新現有環境的設定。

刪除環境
$ ant beta:environments delete
DELETE/v1/environments/{environment_id}

依 ID 刪除環境。傳回刪除確認。

封存環境
$ ant beta:environments archive
POST/v1/environments/{environment_id}/archive

依 ID 封存環境。已封存的環境無法用於建立新的工作階段。

Beta環境工作

取得工作項目
$ ant beta:environments:work retrieve
GET/v1/environments/{environment_id}/work/{work_id}

擷取特定工作項目的詳細資訊。

輪詢工作
$ ant beta:environments:work poll
GET/v1/environments/{environment_id}/work/poll

注意:這些端點會由 SDK 和 CLI 中提供的預先建置環境工作程式自動呼叫,用於協調使用自行託管沙箱環境的工作階段。此處列出僅供參考;您無需直接呼叫它們。

確認工作
$ ant beta:environments:work ack
POST/v1/environments/{environment_id}/work/{work_id}/ack

注意:這些端點會由 SDK 和 CLI 中提供的預先建置環境工作程式自動呼叫,用於協調使用自行託管沙箱環境的工作階段。此處列出僅供參考;您無需直接呼叫它們。

記錄心跳
$ ant beta:environments:work heartbeat
POST/v1/environments/{environment_id}/work/{work_id}/heartbeat

注意:這些端點會由 SDK 和 CLI 中提供的預先建置環境工作程式自動呼叫,用於協調使用自行託管沙箱環境的工作階段。此處列出僅供參考;您無需直接呼叫它們。

停止工作
$ ant beta:environments:work stop
POST/v1/environments/{environment_id}/work/{work_id}/stop

停止工作項目,啟動正常或強制關閉程序。

列出工作項目
$ ant beta:environments:work list
GET/v1/environments/{environment_id}/work

列出環境中的工作項目。

更新工作項目
$ ant beta:environments:work update
POST/v1/environments/{environment_id}/work/{work_id}

以合併語意更新工作項目中繼資料。

取得佇列統計資料
$ ant beta:environments:work stats
GET/v1/environments/{environment_id}/work/stats

取得環境工作佇列的統計資料。

建立工作階段
$ ant beta:sessions create
POST/v1/sessions
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出工作階段
$ ant beta:sessions list
GET/v1/sessions
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
取得工作階段
$ ant beta:sessions retrieve
GET/v1/sessions/{session_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新工作階段
$ ant beta:sessions update
POST/v1/sessions/{session_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
刪除工作階段
$ ant beta:sessions delete
DELETE/v1/sessions/{session_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
封存工作階段
$ ant beta:sessions archive
POST/v1/sessions/{session_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta工作階段事件

列出事件
$ ant beta:sessions:events list
GET/v1/sessions/{session_id}/events
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
傳送事件
$ ant beta:sessions:events send
POST/v1/sessions/{session_id}/events
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
串流事件
$ ant beta:sessions:events stream
GET/v1/sessions/{session_id}/events/stream
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta工作階段資源

新增工作階段資源
$ ant beta:sessions:resources add
POST/v1/sessions/{session_id}/resources
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出工作階段資源
$ ant beta:sessions:resources list
GET/v1/sessions/{session_id}/resources
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
取得工作階段資源
$ ant beta:sessions:resources retrieve
GET/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新工作階段資源
$ ant beta:sessions:resources update
POST/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
刪除工作階段資源
$ ant beta:sessions:resources delete
DELETE/v1/sessions/{session_id}/resources/{resource_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta工作階段執行緒

列出工作階段執行緒
$ ant beta:sessions:threads list
GET/v1/sessions/{session_id}/threads
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
取得工作階段執行緒
$ ant beta:sessions:threads retrieve
GET/v1/sessions/{session_id}/threads/{thread_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
封存工作階段執行緒
$ ant beta:sessions:threads archive
POST/v1/sessions/{session_id}/threads/{thread_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta工作階段執行緒事件

列出工作階段執行緒事件
$ ant beta:sessions:threads:events list
GET/v1/sessions/{session_id}/threads/{thread_id}/events
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
串流工作階段執行緒事件
$ ant beta:sessions:threads:events stream
GET/v1/sessions/{session_id}/threads/{thread_id}/stream
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta部署

建立部署
$ ant beta:deployments create
POST/v1/deployments
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出部署
$ ant beta:deployments list
GET/v1/deployments
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
取得部署
$ ant beta:deployments retrieve
GET/v1/deployments/{deployment_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新部署
$ ant beta:deployments update
POST/v1/deployments/{deployment_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
封存部署
$ ant beta:deployments archive
POST/v1/deployments/{deployment_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
立即執行部署
$ ant beta:deployments run
POST/v1/deployments/{deployment_id}/run
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
暫停部署
$ ant beta:deployments pause
POST/v1/deployments/{deployment_id}/pause
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
取消暫停部署
$ ant beta:deployments unpause
POST/v1/deployments/{deployment_id}/unpause
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出部署執行
$ ant beta:deployment-runs list
GET/v1/deployment_runs
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
取得部署執行
$ ant beta:deployment-runs retrieve
GET/v1/deployment_runs/{deployment_run_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta保存庫

建立保存庫
$ ant beta:vaults create
POST/v1/vaults
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出保存庫
$ ant beta:vaults list
GET/v1/vaults
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
擷取保存庫
$ ant beta:vaults retrieve
GET/v1/vaults/{vault_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新保存庫
$ ant beta:vaults update
POST/v1/vaults/{vault_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
刪除保存庫
$ ant beta:vaults delete
DELETE/v1/vaults/{vault_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
封存保存庫
$ ant beta:vaults archive
POST/v1/vaults/{vault_id}/archive
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.

Beta保存庫憑證

建立憑證
$ ant beta:vaults:credentials create
POST/v1/vaults/{vault_id}/credentials
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
列出憑證
$ ant beta:vaults:credentials list
GET/v1/vaults/{vault_id}/credentials
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
擷取憑證
$ ant beta:vaults:credentials retrieve
GET/v1/vaults/{vault_id}/credentials/{credential_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
更新憑證
$ ant beta:vaults:credentials update
POST/v1/vaults/{vault_id}/credentials/{credential_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
刪除憑證
$ ant beta:vaults:credentials delete
DELETE/v1/vaults/{vault_id}/credentials/{credential_id}
Requires anthropic-beta: managed-agents-2026-04-01. Learn how to send beta headers.
封存憑證
$ ant beta:vaults:credentials archive
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 憑證
$ ant beta:vaults:credentials mcp-oauth-validate
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.
建立記憶儲存區
$ ant beta:memory-stores create
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.
列出記憶儲存區
$ ant beta:memory-stores list
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.
擷取記憶儲存區
$ ant beta:memory-stores retrieve
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.
更新記憶儲存區
$ ant beta:memory-stores update
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.
刪除記憶儲存區
$ ant beta:memory-stores delete
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.
封存記憶儲存區
$ ant beta:memory-stores archive
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記憶儲存區記憶

建立記憶
$ ant beta:memory-stores:memories create
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.
列出記憶
$ ant beta:memory-stores:memories list
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.
擷取記憶
$ ant beta:memory-stores:memories retrieve
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.
更新記憶
$ ant beta:memory-stores:memories update
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.
刪除記憶
$ ant beta:memory-stores:memories delete
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記憶儲存區記憶版本

列出記憶版本
$ ant beta:memory-stores:memory-versions list
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.
擷取記憶版本
$ ant beta:memory-stores:memory-versions retrieve
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.
塗銷記憶版本
$ ant beta:memory-stores:memory-versions redact
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檔案

上傳檔案
$ ant beta:files upload
POST/v1/files
列出檔案
$ ant beta:files list
GET/v1/files
下載檔案
$ ant beta:files download
GET/v1/files/{file_id}/content
取得檔案中繼資料
$ ant beta:files retrieve-metadata
GET/v1/files/{file_id}
刪除檔案
$ ant beta:files delete
DELETE/v1/files/{file_id}

Beta技能

建立技能
$ ant beta:skills create
POST/v1/skills
列出技能
$ ant beta:skills list
GET/v1/skills
取得技能
$ ant beta:skills retrieve
GET/v1/skills/{skill_id}
刪除技能
$ ant beta:skills delete
DELETE/v1/skills/{skill_id}

Beta技能版本

建立技能版本
$ ant beta:skills:versions create
POST/v1/skills/{skill_id}/versions
列出技能版本
$ ant beta:skills:versions list
GET/v1/skills/{skill_id}/versions
下載技能版本內容
$ ant beta:skills:versions download
GET/v1/skills/{skill_id}/versions/{version}/content

以 zip 壓縮檔形式下載技能版本的內容。

取得技能版本
$ ant beta:skills:versions retrieve
GET/v1/skills/{skill_id}/versions/{version}
刪除技能版本
$ ant beta:skills:versions delete
DELETE/v1/skills/{skill_id}/versions/{version}

Beta使用者設定檔

註冊您的平台所服務的終端客戶,讓每個請求都能指明其服務對象。若要開始使用,請參閱使用者設定檔指南。

建立使用者設定檔
$ ant beta:user-profiles create
POST/v1/user_profiles

註冊您的一位終端客戶,並取得 ID,以便在您代其發出的請求中傳送。

列出使用者設定檔
$ ant beta:user-profiles list
GET/v1/user_profiles

列出您組織中的使用者設定檔,預設以最新的優先排列。

取得使用者設定檔
$ ant beta:user-profiles retrieve
GET/v1/user_profiles/{user_profile_id}

依 ID 取得使用者設定檔,以檢查為其儲存的詳細資訊。

更新使用者設定檔
$ ant beta:user-profiles update
POST/v1/user_profiles/{user_profile_id}

變更使用者設定檔的詳細資訊,您未傳送的欄位將維持不變。

刪除使用者設定檔
$ ant beta:user-profiles delete
DELETE/v1/user_profiles/{user_profile_id}

刪除使用者設定檔,例如在終端客戶關閉其帳戶時。

建立註冊 URL
$ ant beta:user-profiles create-enrollment-url
POST/v1/user_profiles/{user_profile_id}/enrollment_url

從 Claude Platform on AWS 建立連結,將該設定檔的終端客戶導向 Verification Portal。

Beta使用者設定檔動作 URL

建立動作 URL
$ ant beta:user-profiles:action-urls create
POST/v1/user_profiles/{user_profile_id}/action_urls

建立連結,將該設定檔的終端客戶導向 Verification Portal。

Beta使用者設定檔供應商Google資料控制項

取得 Google-Managed 資料控制項
$ ant beta:user-profiles:providers:google:data-controls retrieve
GET/v1/user_profiles/{user_profile_id}/providers/google/data_controls
Requires anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.

取得設定檔用於 Google Cloud's Agent Platform 上的 Claude 的加密金鑰與儲存貯體,以及每個區域的狀態。

更新 Google-Managed 資料控制項
$ ant beta:user-profiles:providers:google:data-controls update
POST/v1/user_profiles/{user_profile_id}/providers/google/data_controls
Requires anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.

開啟或關閉控制項,或變更為某個區域設定的金鑰或儲存貯體。您未指定的控制項與區域將維持不變。

Beta夢境

建立夢境
$ ant beta:dreams create
POST/v1/dreams
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

啟動一個非同步工作,利用過去的工作階段產生記憶儲存區的重新組織版本,並取回夢境以輪詢結果。

列出夢境
$ ant beta:dreams list
GET/v1/dreams
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

列出工作區中的夢境,最新的在前。

取得夢境
$ ant beta:dreams retrieve
GET/v1/dreams/{dream_id}
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

依 ID 取得夢境,以檢查其狀態、輸出記憶儲存區及權杖用量。

取消夢境
$ ant beta:dreams cancel
POST/v1/dreams/{dream_id}/cancel
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

停止處於 pending 或 running 狀態的夢境。

封存夢境
$ ant beta:dreams archive
POST/v1/dreams/{dream_id}/archive
Requires anthropic-beta: dreaming-2026-04-21. Learn how to send beta headers.

將 completed、failed 或 canceled 的夢境從預設的夢境清單中隱藏。

Beta通道

建立通道
$ ant beta:tunnels create
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 端點,這些端點在遷移期間內仍可使用。

取得通道
$ ant beta:tunnels retrieve
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 端點,這些端點在遷移期間內仍可使用。

列出通道
$ ant beta:tunnels list
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 端點,這些端點在遷移期間內仍可使用。

封存通道
$ ant beta:tunnels archive
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 端點,這些端點在遷移期間內仍可使用。

顯示通道權杖
$ ant beta:tunnels reveal-token
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 端點,這些端點在遷移期間內仍可使用。

輪替通道權杖
$ ant beta:tunnels rotate-token
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通道憑證

建立通道憑證
$ ant beta:tunnels:certificates create
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 端點,這些端點在遷移期間內仍可使用。

取得通道憑證
$ ant beta:tunnels:certificates retrieve
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 端點,這些端點在遷移期間內仍可使用。

列出通道憑證
$ ant beta:tunnels:certificates list
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 端點,這些端點在遷移期間內仍可使用。

封存通道憑證
$ ant beta:tunnels:certificates archive
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合規審查案件

列出審查案件
$ ant beta:compliance:review:cases list
GET/v1/compliance/review/cases

列出 API 金鑰可存取之所有組織的審查案件,預設依最新優先排序。除非設定了 status,否則會同時傳回開啟中與已關閉的案件。

取得審查案件
$ ant beta:compliance:review:cases retrieve
GET/v1/compliance/review/cases/{case_id}

讀取單一審查案件。

回應審查案件
$ ant beta:compliance:review:cases respond
POST/v1/compliance/review/cases/{case_id}/respond

傳送您對審查案件的結論。回應會關閉該案件,且已關閉的案件無法重新開啟。

Beta合規審查通知

列出審查通知
$ ant beta:compliance:review:notices list
GET/v1/compliance/review/notices

列出 Anthropic 發送給 API 金鑰可存取之組織的通知,預設依最新優先排序。只有在 API 金鑰可讀取通知 case_ids 中的每個案件時,才會傳回該通知。

Beta合規審查項目

取得審查項目
$ ant beta:compliance:review:items retrieve
GET/v1/compliance/review/items/{item_id}

讀取 Anthropic 標記給您的組織審查的單一訊息,包含其請求與回應。

Beta組織

取得目前組織
$ ant beta:organization retrieve
GET/v1/organizations/me

擷取與已驗證 API 金鑰相關聯之組織的資訊。

Beta組織API 金鑰

列出 API 金鑰
$ ant beta:organization:api-keys list
GET/v1/organizations/api_keys
擷取 API 金鑰(Admin API)
$ ant beta:organization:api-keys retrieve
GET/v1/organizations/api_keys/{api_key_id}

依 ID 查詢並擷取您組織中單一 API 金鑰的資訊。此 Admin API 端點需要 Admin API 金鑰,專為程式化金鑰管理而設計,且絕不會回傳金鑰的祕密值。若要檢視或建立您自己的 API 金鑰,請前往 Claude Console 中的 API 金鑰。

更新 API 金鑰
$ ant beta:organization:api-keys update
POST/v1/organizations/api_keys/{api_key_id}

Beta組織外部金鑰

建立外部金鑰
$ ant beta:organization:external-keys create
POST/v1/organizations/external_keys

建立由呼叫者組織擁有的外部金鑰設定。

列出外部金鑰
$ ant beta:organization:external-keys list
GET/v1/organizations/external_keys

列出呼叫者組織中的外部金鑰設定。

取得外部金鑰
$ ant beta:organization:external-keys retrieve
GET/v1/organizations/external_keys/{external_key_id}

依 ID 擷取呼叫者組織中的單一外部金鑰設定。

更新外部金鑰
$ ant beta:organization:external-keys update
POST/v1/organizations/external_keys/{external_key_id}

部分更新外部金鑰設定。省略的欄位將保持不變。

刪除外部金鑰
$ ant beta:organization:external-keys delete
DELETE/v1/organizations/external_keys/{external_key_id}

刪除外部金鑰設定。

驗證外部金鑰
$ ant beta:organization:external-keys validate
POST/v1/organizations/external_keys/{external_key_id}/validate

針對客戶的 KMS 驗證外部金鑰設定。

Beta組織聯合簽發者

建立聯合簽發者
$ ant beta:organization:federation:issuers create
POST/v1/organizations/federation_issuers

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

列出聯合簽發者
$ ant beta:organization:federation:issuers list
GET/v1/organizations/federation_issuers

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

取得聯合簽發者
$ ant beta:organization:federation:issuers retrieve
GET/v1/organizations/federation_issuers/{federation_issuer_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

更新聯合簽發者
$ ant beta:organization:federation:issuers update
POST/v1/organizations/federation_issuers/{federation_issuer_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

封存聯合簽發者
$ ant beta:organization:federation:issuers archive
POST/v1/organizations/federation_issuers/{federation_issuer_id}/archive

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

Beta組織聯合規則

建立聯合規則
$ ant beta:organization:federation:rules create
POST/v1/organizations/federation_rules

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

列出聯合規則
$ ant beta:organization:federation:rules list
GET/v1/organizations/federation_rules

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

取得聯合規則
$ ant beta:organization:federation:rules retrieve
GET/v1/organizations/federation_rules/{federation_rule_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

更新聯合規則
$ ant beta:organization:federation:rules update
POST/v1/organizations/federation_rules/{federation_rule_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

封存聯合規則
$ ant beta:organization:federation:rules archive
POST/v1/organizations/federation_rules/{federation_rule_id}/archive

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

Beta組織聯合規則工作區

新增聯合規則工作區
$ ant beta:organization:federation:rules:workspaces add
POST/v1/organizations/federation_rules/{federation_rule_id}/workspaces

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

列出聯合規則工作區
$ ant beta:organization:federation:rules:workspaces list
GET/v1/organizations/federation_rules/{federation_rule_id}/workspaces

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

移除聯合規則工作區
$ ant beta:organization:federation:rules:workspaces remove
DELETE/v1/organizations/federation_rules/{federation_rule_id}/workspaces/{workspace_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

Beta組織邀請

建立邀請
$ ant beta:organization:invites create
POST/v1/organizations/invites

透過電子郵件邀請使用者加入組織。

列出邀請
$ ant beta:organization:invites list
GET/v1/organizations/invites

列出組織的邀請。

取得邀請
$ ant beta:organization:invites retrieve
GET/v1/organizations/invites/{invite_id}

依 ID 擷取邀請。

刪除邀請
$ ant beta:organization:invites delete
DELETE/v1/organizations/invites/{invite_id}

刪除待處理的邀請。

Beta組織服務帳戶

建立服務帳戶
$ ant beta:organization:service-accounts create
POST/v1/organizations/service_accounts

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

列出服務帳戶
$ ant beta:organization:service-accounts list
GET/v1/organizations/service_accounts

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

取得服務帳戶
$ ant beta:organization:service-accounts retrieve
GET/v1/organizations/service_accounts/{service_account_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

更新服務帳戶
$ ant beta:organization:service-accounts update
POST/v1/organizations/service_accounts/{service_account_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

封存服務帳戶
$ ant beta:organization:service-accounts archive
POST/v1/organizations/service_accounts/{service_account_id}/archive

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

Beta組織服務帳戶工作區

將工作區新增至服務帳戶
$ ant beta:organization:service-accounts:workspaces add
POST/v1/organizations/service_accounts/{service_account_id}/workspaces

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

列出服務帳戶的工作區
$ ant beta:organization:service-accounts:workspaces list
GET/v1/organizations/service_accounts/{service_account_id}/workspaces

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

從服務帳戶移除工作區
$ ant beta:organization:service-accounts:workspaces remove
DELETE/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

Beta組織External Storage

建立 External Storage
$ ant beta:organization:external-storage create
POST/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

註冊組織自有雲端帳戶中的儲存貯體。它會儲存為 pending_configuration,並在啟用時進行驗證。

列出 External Storage
$ ant beta:organization:external-storage list
GET/v1/organizations/external_storage
Requires anthropic-beta: efs-2026-10-01. Learn how to send beta headers.

列出組織的 External Storage,依最新優先排序。

取得 External Storage
$ ant beta:organization:external-storage retrieve
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
$ ant beta:organization:external-storage update
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
$ ant beta:organization:external-storage delete
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
$ ant beta:organization:external-storage activate
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組織供應商Google專案資料控制項

取得 Google-Managed 專案資料控制項
$ ant beta:organization:providers:google:projects:data-controls retrieve
GET/v1/organizations/providers/google/projects/{project_number}/data_controls
Requires anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.

取得 Google Cloud 專案用於 Google Cloud's Agent Platform 上的 Claude 的加密金鑰與儲存貯體,以及每個區域的狀態。

更新 Google-Managed 專案資料控制項
$ ant beta:organization:providers:google:projects:data-controls update
POST/v1/organizations/providers/google/projects/{project_number}/data_controls
Requires anthropic-beta: google-managed-data-controls-2026-09-01. Learn how to send beta headers.

開啟或關閉控制項,或變更為某個區域設定的金鑰或儲存貯體。您未指定的控制項與區域將維持不變。

Beta組織使用者

列出使用者
$ ant beta:organization:users list
GET/v1/organizations/users

列出組織的成員。

取得使用者
$ ant beta:organization:users retrieve
GET/v1/organizations/users/{user_id}

依使用者 ID 擷取組織成員。

更新使用者
$ ant beta:organization:users update
POST/v1/organizations/users/{user_id}

更新成員的組織角色。

移除使用者
$ ant beta:organization:users remove
DELETE/v1/organizations/users/{user_id}

從組織中移除成員。

登出使用者
$ ant beta:organization:users sign-out
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組織工作區

列出工作區
$ ant beta:organization:workspaces list
GET/v1/organizations/workspaces
建立工作區
$ ant beta:organization:workspaces create
POST/v1/organizations/workspaces
取得工作區
$ ant beta:organization:workspaces retrieve
GET/v1/organizations/workspaces/{workspace_id}
更新工作區
$ ant beta:organization:workspaces update
POST/v1/organizations/workspaces/{workspace_id}
封存工作區
$ ant beta:organization:workspaces archive
POST/v1/organizations/workspaces/{workspace_id}/archive

Beta組織工作區速率限制

列出工作區速率限制
$ ant beta:organization:workspaces:rate-limits list
GET/v1/organizations/workspaces/{workspace_id}/rate_limits

列出工作區的速率限制。

設定工作區速率限制
$ ant beta:organization:workspaces:rate-limits update
POST/v1/organizations/workspaces/{workspace_id}/rate_limits/{rate_limit_id}

為工作區中的單一速率限制群組設定或清除速率限制覆寫。

Beta組織工作區成員

列出工作區成員
$ ant beta:organization:workspaces:members list
GET/v1/organizations/workspaces/{workspace_id}/members
建立工作區成員
$ ant beta:organization:workspaces:members add
POST/v1/organizations/workspaces/{workspace_id}/members
取得工作區成員
$ ant beta:organization:workspaces:members retrieve
GET/v1/organizations/workspaces/{workspace_id}/members/{user_id}
更新工作區成員
$ ant beta:organization:workspaces:members update
POST/v1/organizations/workspaces/{workspace_id}/members/{user_id}
刪除工作區成員
$ ant beta:organization:workspaces:members remove
DELETE/v1/organizations/workspaces/{workspace_id}/members/{user_id}

Beta組織工作區服務帳戶

列出服務帳戶工作區成員
$ ant beta:organization:workspaces:service-accounts list
GET/v1/organizations/workspaces/{workspace_id}/service_accounts

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

建立服務帳戶工作區成員
$ ant beta:organization:workspaces:service-accounts add
POST/v1/organizations/workspaces/{workspace_id}/service_accounts

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

取得服務帳戶工作區成員
$ ant beta:organization:workspaces:service-accounts retrieve
GET/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。

更新服務帳戶工作區成員
$ ant beta:organization:workspaces:service-accounts update
POST/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。

刪除服務帳戶工作區成員
$ ant beta:organization:workspaces:service-accounts remove
DELETE/v1/organizations/workspaces/{workspace_id}/service_accounts/{service_account_id}

需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。

Beta組織速率限制

列出組織速率限制
$ ant beta:organization:rate-limits list
GET/v1/organizations/rate_limits

列出您組織的 Messages API 速率限制。

Beta組織合規設定

取得合規設定
$ ant beta:organization:compliance-settings retrieve
GET/v1/organizations/compliance_settings

擷取您組織的合規設定。

更新合規設定
$ ant beta:organization:compliance-settings update
POST/v1/organizations/compliance_settings

更新您組織的合規設定。

Beta組織分析摘要

取得活動摘要
$ ant beta:organization:analytics:summaries list
GET/v1/organizations/analytics/summaries

取得指定日期範圍內的全組織活動摘要。

Beta組織分析使用者

列出使用者活動
$ ant beta:organization:analytics:users list
GET/v1/organizations/analytics/users

取得指定日期的每位使用者活動,採用游標式分頁。

Beta組織分析應用程式聊天專案

取得聊天專案用量
$ ant beta:organization:analytics:apps:chat:projects list
GET/v1/organizations/analytics/apps/chat/projects

取得指定日期的每個專案活動,並支援以游標為基礎的分頁。

Beta組織分析專案

取得專案使用量
$ ant beta:organization:analytics:projects list
GET/v1/organizations/analytics/projects

取得指定日期的各專案活動,採用游標式分頁。

Beta組織分析連接器

取得連接器使用量
$ ant beta:organization:analytics:connectors list
GET/v1/organizations/analytics/connectors

取得指定日期的每個連接器用量,採用游標式分頁。

Beta組織分析外掛程式

取得外掛程式使用量
$ ant beta:organization:analytics:plugins list
GET/v1/organizations/analytics/plugins

取得指定日期的每個外掛程式安裝與呼叫用量,採用分頁。

Beta組織分析技能

取得技能使用量
$ ant beta:organization:analytics:skills list
GET/v1/organizations/analytics/skills

取得指定日期的每項技能用量,採用游標式分頁。

Beta組織分析Artifacts

取得 Artifact 活動
$ ant beta:organization:analytics:artifacts list
GET/v1/organizations/analytics/artifacts

取得指定日期的 artifact 建立活動,依 MIME 類型細分。

Beta組織分析用量

依維度取得 token 用量
$ ant beta:organization:analytics:usage list
GET/v1/organizations/analytics/usage
Requires anthropic-beta: analytics-usage-cost-2026-08-24. Learn how to send beta headers.

取得某個日期範圍內依維度細分的 token 用量。

Beta組織分析成本

依維度取得成本
$ ant beta:organization:analytics:cost list
GET/v1/organizations/analytics/cost
Requires anthropic-beta: analytics-usage-cost-2026-08-24. Learn how to send beta headers.

取得某個日期範圍內依維度細分的成本(以美元計)。

Beta組織分析使用量報告

取得隨時間變化的 Token 用量
$ ant beta:organization:analytics:usage-report list
GET/v1/organizations/analytics/usage_report

[舊版] 取得某個日期範圍內隨時間變化的 token 用量。

Beta組織分析使用者用量報告

取得每位使用者的 Token 用量
$ ant beta:organization:analytics:user-usage-report list
GET/v1/organizations/analytics/user_usage_report

[舊版] 取得某個日期範圍內每位使用者的 token 用量。

Beta組織分析成本報告

取得隨時間變化的成本
$ ant beta:organization:analytics:cost-report list
GET/v1/organizations/analytics/cost_report

[舊版] 取得某個日期範圍內隨時間變化的成本(以美元計)。

Beta組織分析使用者成本報告

取得每位使用者的成本
$ ant beta:organization:analytics:user-cost-report list
GET/v1/organizations/analytics/user_cost_report

[舊版] 取得某個日期範圍內每位使用者的成本(以美元計)。

Beta組織支出限制

設定支出限制
$ ant beta:organization:spend-limits set
POST/v1/organizations/spend_limits

設定支出限制。

取得支出限制
$ ant beta:organization:spend-limits retrieve
GET/v1/organizations/spend_limits/{spend_limit_id}

依 ID 擷取支出限制。

刪除支出限制
$ ant beta:organization:spend-limits delete
DELETE/v1/organizations/spend_limits/{spend_limit_id}

刪除支出限制。

列出支出限制
$ ant beta:organization:spend-limits list
GET/v1/organizations/spend_limits
Requires anthropic-beta: spend-limit-reads-2026-09-26. Learn how to send beta headers.

列出組織的支出限制。

Beta組織支出限制有效

列出有效支出限制
$ ant beta:organization:spend-limits:effective list
GET/v1/organizations/spend_limits/effective

列出每位成員的有效支出限制及本期至今的支出。

Beta組織支出限制提高請求

列出支出限制提高請求
$ ant beta:organization:spend-limits:increase-requests list
GET/v1/organizations/spend_limit_increase_requests

列出支出限制提高請求,最新的在前。

取得支出限制提高請求
$ ant beta:organization:spend-limits:increase-requests retrieve
GET/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}

擷取支出限制提高請求。

核准支出限制提高請求
$ ant beta:organization:spend-limits:increase-requests approve
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/approve

核准待處理的支出限制提高請求。

拒絕支出限制提高請求
$ ant beta:organization:spend-limits:increase-requests deny
POST/v1/organizations/spend_limit_increase_requests/{spend_limit_increase_request_id}/deny

拒絕待處理的支出限制提高請求。

Beta組織RBAC 群組

建立 RBAC 群組
$ ant beta:organization:rbac-groups create
POST/v1/organizations/rbac_groups

在 Claude Enterprise 租戶中建立 RBAC 群組。透過 API 建立的群組其來源類型為 "direct"。

列出 RBAC 群組
$ ant beta:organization:rbac-groups list
GET/v1/organizations/rbac_groups

列出 Claude Enterprise 租戶中的 RBAC 群組。

取得 RBAC 群組
$ ant beta:organization:rbac-groups retrieve
GET/v1/organizations/rbac_groups/{rbac_group_id}

依 ID 擷取 RBAC 群組。

更新 RBAC 群組
$ ant beta:organization:rbac-groups update
POST/v1/organizations/rbac_groups/{rbac_group_id}

更新 RBAC 群組的名稱。由身分識別提供者佈建的群組(來源類型為 "scim")無法透過 API 修改。

刪除 RBAC 群組
$ ant beta:organization:rbac-groups delete
DELETE/v1/organizations/rbac_groups/{rbac_group_id}

刪除 RBAC 群組。已連接目錄時,由身分識別提供者佈建的群組(來源類型為 "scim")無法透過 API 刪除。

Beta組織RBAC 群組成員

列出 RBAC 群組成員
$ ant beta:organization:rbac-groups:members list
GET/v1/organizations/rbac_groups/{rbac_group_id}/members

列出 RBAC 群組的成員。

新增 RBAC 群組成員
$ ant beta:organization:rbac-groups:members add
POST/v1/organizations/rbac_groups/{rbac_group_id}/members

將使用者新增至 RBAC 群組。由身分識別提供者佈建的群組(來源類型為 "scim")其成員資格無法透過 API 修改。

移除 RBAC 群組成員
$ ant beta:organization:rbac-groups:members remove
DELETE/v1/organizations/rbac_groups/{rbac_group_id}/members/{user_id}

從 RBAC 群組中移除使用者。由身分識別提供者佈建的群組(來源類型為 "scim")其成員資格無法透過 API 修改。

Beta組織RBAC 角色

列出 RBAC 角色
$ ant beta:organization:rbac-roles list
GET/v1/organizations/rbac_roles

列出組織中的 RBAC 角色。

取得 RBAC 角色
$ ant beta:organization:rbac-roles retrieve
GET/v1/organizations/rbac_roles/{rbac_role_id}

依 ID 擷取 RBAC 角色。

Beta組織RBAC 角色權限

列出 RBAC 角色權限
$ ant beta:organization:rbac-roles:permissions list
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions

列出 RBAC 角色所授予的權限。

Beta組織外掛程式

建立外掛程式
$ ant beta:organization:plugins create
POST/v1/organizations/plugins
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

上傳版本的檔案,以建立組織擁有的外掛程式(Plugin)及其 第一個版本。

取得外掛程式
$ ant beta:organization:plugins retrieve
GET/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

依 ID 擷取外掛程式。

更新外掛程式
$ ant beta:organization:plugins update
POST/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

變更向成員提供的組織擁有外掛程式的已儲存版本,例如回復到較早的版本。這會釘選所提供的版本:之後透過此 API 上傳的版本仍會儲存,但不再改變所提供的內容,且目前無法取消釘選,無論在此處或在 claude.ai 中皆然。

列出外掛程式
$ ant beta:organization:plugins list
GET/v1/organizations/plugins
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

列出在組織下建立的外掛程式,依最新優先排序:包括組織自有外掛程式市集中的外掛程式,以及成員個人外掛程式市集中的外掛程式。

刪除外掛程式
$ ant beta:organization:plugins delete
DELETE/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

永久刪除外掛程式及其所有版本,效果與管理員在 claude.ai 中刪除時完全相同。該外掛程式可以屬於組織或成員,包括已離開組織的成員。請勿僅因外掛程式並非由您的管線建立就將其刪除:成員或管理員可能已在 claude.ai 中新增了它。

Beta組織外掛程式版本

建立外掛程式版本
$ ant beta:organization:plugins:versions create
POST/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

透過上傳新版本的檔案,為組織擁有的外掛程式新增版本;除非該外掛程式所提供的版本已被釘選,否則新版本會成為向成員提供的版本。

列出外掛程式版本
$ ant beta:organization:plugins:versions list
GET/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

列出外掛程式的版本,依最新優先排序。

取得外掛程式版本
$ ant beta:organization:plugins:versions retrieve
GET/v1/organizations/plugins/{plugin_id}/versions/{version}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

依 ID 擷取外掛程式的某個版本,或擷取外掛程式的最新版本。

下載外掛程式版本封存檔
$ ant beta:organization:plugins:versions download
GET/v1/organizations/plugins/{plugin_id}/versions/{version}/content
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

下載某個版本的 .zip 封存檔,內容與儲存時完全相同。從成員個人外掛程式市集下載外掛程式,可能會記錄在 Compliance API 活動摘要中。

Beta組織外掛程式安裝設定

列出外掛程式安裝設定
$ ant beta:organization:plugins:installation-settings list
GET/v1/organizations/plugins/{plugin_id}/installation_settings
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

列出組織擁有的外掛程式的安裝設定(用於指定該外掛程式適用於哪些成員),依建立時間由新到舊排序。

設定外掛程式安裝設定
$ ant beta:organization:plugins:installation-settings set
POST/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

為整個組織或單一 RBAC 群組設定或變更組織擁有的外掛程式的安裝設定。

移除外掛程式安裝設定
$ ant beta:organization:plugins:installation-settings remove
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組織外掛程式分享

列出外掛程式分享
$ ant beta:organization:plugins:shares list
GET/v1/organizations/plugins/{plugin_id}/shares
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

列出成員擁有的外掛程式的擁有者所提供的分享(分享給組織的所有成員、某個 RBAC 群組或單一成員),依授予時間由新到舊排序。

Beta組織外掛程式市集

列出外掛程式市集
$ ant beta:organization:plugin-marketplaces list
GET/v1/organizations/plugin_marketplaces
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

列出外掛程式所在的外掛程式市集,依最新優先排序:包括組織自有的市集及其成員的個人市集。

取得外掛程式市集
$ ant beta:organization:plugin-marketplaces retrieve
GET/v1/organizations/plugin_marketplaces/{marketplace_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

依 ID 擷取外掛程式市集。

更新外掛程式市集
$ ant beta:organization:plugin-marketplaces update
POST/v1/organizations/plugin_marketplaces/{marketplace_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

設定組織自有外掛程式市集之一的預設安裝設定。該市集中每個沒有自身設定的外掛程式(包括之後新增的外掛程式)都會以此預設值作為其全組織設定。

驗證外掛程式市集儲存庫
$ ant beta:organization:plugin-marketplaces validate-repository
POST/v1/organizations/plugin_marketplaces/validate_repository
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

檢查存放於公開 GitHub 儲存庫中的外掛程式市集是否能同步至 claude.ai,而不會連接或儲存該市集。

驗證外掛程式市集封存檔
$ ant beta:organization:plugin-marketplaces validate-archive
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組織遙測目的地

建立遙測目的地
$ ant beta:organization:telemetry-destinations create
POST/v1/organizations/telemetry_destinations
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

為組織註冊 OpenTelemetry 目的地。

列出遙測目的地
$ ant beta:organization:telemetry-destinations list
GET/v1/organizations/telemetry_destinations
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

列出組織的目的地,最新的排在最前面,可選擇僅列出涵蓋指定工作區的目的地。

擷取遙測目的地
$ ant beta:organization:telemetry-destinations retrieve
GET/v1/organizations/telemetry_destinations/{destination_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

讀取目的地的設定、狀態及最近的傳遞結果。

更新遙測目的地
$ ant beta:organization:telemetry-destinations update
POST/v1/organizations/telemetry_destinations/{destination_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

變更遙測目的地的設定、狀態或其涵蓋的工作區。

刪除遙測目的地
$ ant beta:organization:telemetry-destinations delete
DELETE/v1/organizations/telemetry_destinations/{destination_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

刪除目的地及其工作區清單。

測試遙測目的地
$ ant beta:organization:telemetry-destinations test
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組織遙測目的地工作區

列出遙測目的地工作區
$ ant beta:organization:telemetry-destinations:workspaces list
GET/v1/organizations/telemetry_destinations/{destination_id}/workspaces
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

列出目的地工作區清單中的工作區,最新的項目排在最前面。

新增遙測目的地工作區
$ ant beta:organization:telemetry-destinations:workspaces add
POST/v1/organizations/telemetry_destinations/{destination_id}/workspaces/{workspace_id}
Requires anthropic-beta: telemetry-destinations-2026-08-11. Learn how to send beta headers.

將一個工作區新增至目的地的工作區清單。

移除遙測目的地工作區
$ ant beta:organization:telemetry-destinations:workspaces remove
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 端點
$ ant beta:organization:webhooks create
POST/v1/organizations/webhooks
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

建立組織 webhook 端點。

列出組織 Webhook 端點
$ ant beta:organization:webhooks list
GET/v1/organizations/webhooks
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

列出組織的 webhook 端點。

取得組織 Webhook 端點
$ ant beta:organization:webhooks retrieve
GET/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

依 ID 擷取組織 webhook 端點。

更新組織 Webhook 端點
$ ant beta:organization:webhooks update
POST/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

更新組織 webhook 端點。只有您傳送的欄位會被變更。

刪除組織 Webhook 端點
$ ant beta:organization:webhooks delete
DELETE/v1/organizations/webhooks/{webhook_endpoint_id}
Requires anthropic-beta: webhooks-2026-10-07. Learn how to send beta headers.

刪除組織 webhook 端點。

重新產生組織 Webhook 端點簽署密鑰
$ ant beta:organization:webhooks regenerate-signing-secret
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 Code受管理設定組態

取得 Claude Code 受管理設定組態
$ ant beta:organization:claude-code:managed-settings:configuration retrieve
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.

擷取組織的 Claude Code managed settings(受管理設定)模式和 RBAC 群組順序。

更新 Claude Code 受管理設定組態
$ ant beta:organization:claude-code:managed-settings:configuration update
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.

以單一不可分割的寫入作業,變更組織的 Claude Code managed settings(受管理設定)模式、RBAC 群組順序,或兩者。

Beta組織Claude Code受管理設定RBAC 群組

列出 RBAC 群組 Claude Code 受管理設定
$ ant beta:organization:claude-code:managed-settings:rbac-groups list
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.

列出具有 Claude Code managed settings(受管理設定)的 RBAC 群組,優先順序最高者在前。

取得 RBAC 群組 Claude Code 受管理設定
$ ant beta:organization:claude-code:managed-settings:rbac-groups retrieve
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.

擷取 RBAC 群組的 Claude Code managed settings(受管理設定)。

設定 RBAC 群組 Claude Code 受管理設定
$ ant beta:organization:claude-code:managed-settings:rbac-groups set
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.

建立或取代 RBAC 群組的 Claude Code managed settings(受管理設定)。

刪除 RBAC 群組 Claude Code 受管理設定
$ ant beta:organization:claude-code:managed-settings:rbac-groups delete
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.

刪除 RBAC 群組的 Claude Code managed settings(受管理設定),並將該群組從 rbac_group_order 中移除。

Beta組織Claude Code受管理設定RBAC 群組預設值

取得 RBAC 群組預設 Claude Code 受管理設定
$ ant beta:organization:claude-code:managed-settings:rbac-group-default retrieve
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.

擷取預設的 Claude Code managed settings(受管理設定);在 rbac_groups 模式下,不屬於 rbac_group_order 中任何 RBAC 群組的成員會收到這些設定。

更新 RBAC 群組預設 Claude Code 受管理設定
$ ant beta:organization:claude-code:managed-settings:rbac-group-default update
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.

設定或取代預設的 Claude Code managed settings(受管理設定),或以 null 清除。

Beta組織Claude TagSlack 頻道

設定 Slack 頻道
$ ant beta:organization:claude-tag:slack-channels create
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 頻道
$ ant beta:organization:claude-tag:slack-channels list
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 頻道
$ ant beta:organization:claude-tag:slack-channels retrieve
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 頻道
$ ant beta:organization:claude-tag:slack-channels update
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 頻道
$ ant beta:organization:claude-tag:slack-channels delete
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 目標,接著在背景刪除頻道的工作階段及其對話記錄、記憶、例行程序以及從該頻道發佈的成品。這些內容都無法還原。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 工作區
$ ant beta:organization:claude-tag:slack-workspaces list
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 工作區
$ ant beta:organization:claude-tag:slack-workspaces retrieve
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 工作區
$ ant beta:organization:claude-tag:slack-workspaces update
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
$ ant beta:organization:claude-tag:bundles list
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
$ ant beta:organization:claude-tag:bundles retrieve
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 所授予的內容(連接器、儲存庫與憑證)永遠不會傳回。

更新 Bundle
$ ant beta:organization:claude-tag:bundles update
POST/v1/organizations/claude_tag/bundles/{bundle_id}
Requires anthropic-beta: experimental-claude-tag-2026-10-21. Learn how to send beta headers.

變更 Bundle 的指示。此更新為部分更新:省略的欄位維持不變,而將 instructions 傳送為 null 或空字串則會清除指示。兩次更新中以較晚者為準。變更後才開始的工作階段會使用新的指示;已在執行中的工作階段則會保留其開始時的指示。部分 Bundle 是在 claude.ai 中管理,更新這類 Bundle 會傳回 400。

Beta組織Claude TagBundle目標

列出 Bundle 目標
$ ant beta:organization:claude-tag:bundles:targets list
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
$ ant beta:organization:claude-tag:bundles:targets create
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 目標
$ ant beta:organization:claude-tag:bundles:targets retrieve
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
$ ant beta:organization:claude-tag:bundles:targets delete
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.

從 Slack 頻道或 Slack 工作區卸離 Bundle。重複卸離會傳回 404。