Claude Platform Docs

下载插件版本归档

$ ant beta:organization:plugins:versions download
GET/v1/organizations/plugins/{plugin_id}/versions/{version}/content

按原样下载某个版本的 .zip 归档文件。每次从成员个人插件市场下载插件都会记录在 Compliance API 活动源中。

响应正文即为归档文件(Content-Type: application/zip),以附件形式发送,其文件名根据插件名称生成;由于该文件名并不唯一,请使用请求路径中的 ID 为保存的文件命名。

接受的凭据:具有 read:plugins 或 read:org_audit 作用域的 Admin API 密钥,或具有 read:compliance_org_data 作用域的 Compliance Access Key。

上述每个读取作用域(read:plugins、read:org_audit 和 read:compliance_org_data)都可以下载成员个人市场中插件的文件,包括 claude.ai 管理设置中不显示的文件;并且为您的父组织的所有关联组织创建的 read:org_audit 或 read:compliance_org_data 密钥,可以通过传入 organization_id,在其下任何有权访问此 API 的组织中执行此操作。每次此类下载都会在 Compliance API 活动源中记录一个 claude_plugin_archive_accessed 事件,标识密钥、插件、版本和成员。下载组织所有的插件不会被记录。

每个请求都必须包含 beta 标头 anthropic-beta: ce-plugins-2026-09-01。缺少该标头的请求将返回 404,与端点不存在时完全相同。Plugins API 目前处于 beta 阶段,仅适用于 Claude Enterprise 组织。Claude Platform(Claude Console)组织以及启用了 HIPAA 就绪功能的组织无法使用。

Parameters
--plugin-id: string⁠Path parameter

ID of the Plugin (prefixed plugin_).

--version: string⁠Path parameter

ID of the Plugin Version (prefixed pluginver_). latest is not accepted here.

--organization-id: optional string⁠Query parameter

For a read:org_audit or read:compliance_org_data key created for all of a parent organization's linked organizations: a child organization of that parent to read instead of the organization the key was created in, given as the organization's UUID or its org_-prefixed ID. A value that is neither returns a 400; an organization that is not a child of the key's parent, or where the Plugins API is not available, returns a 404. Any other key may pass only its own organization's ID here; another organization returns a 404.

--beta: optional array of AnthropicBeta⁠Header parameter

This endpoint is in beta: requests must send ce-plugins-2026-09-01 in this header.

Returns
unnamed_schema_3: file path
下载插件版本归档
ant beta:organization:plugins:versions download \
  --api-key my-anthropic-api-key \
  --plugin-id plugin_id \
  --version version