Claude Platform Docs

插件

创建插件
BetaPlugin Beta.Organization.Plugins.Create(parameters, cancellationToken = default)
POST/v1/organizations/plugins
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

通过上传版本文件,创建组织拥有的插件及其第一个版本。

获取插件
BetaPlugin Beta.Organization.Plugins.Retrieve(parameters, cancellationToken = default)
GET/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

按 ID 检索插件。

更新插件
BetaPlugin Beta.Organization.Plugins.Update(parameters, cancellationToken = default)
POST/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

更改向成员提供的组织所有插件的已存储版本,例如回滚到较早的版本。此操作会固定所提供的版本:之后上传的版本仍会被存储,但不再改变所提供的内容,并且固定目前无法撤销,无论是在此处还是在 claude.ai 中。

列出插件
PluginListPage Beta.Organization.Plugins.List(parameters, cancellationToken = default)
GET/v1/organizations/plugins
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

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

删除插件
BetaDeletedPlugin Beta.Organization.Plugins.Delete(parameters, cancellationToken = default)
DELETE/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

永久删除一个插件及其包含的所有版本,效果与管理员在 claude.ai 中删除它完全相同。该插件可以属于组织,也可以属于某个成员,包括此后已离开组织的成员。

Models
class BetaDeletedPlugin { Type = "plugin_deleted"; ID; }
JsonElement Type = "plugin_deleted"

Always plugin_deleted.

required string ID

The deleted Plugin's ID.

class BetaPlugin { Type = "plugin"; ID; Components; /* 16 more */ }
class BetaPluginApiActor { Type = "api_actor"; ApiKeyID; }
JsonElement Type = "api_actor"

An Admin API key, in the same form the Compliance API activity feed uses for it.

required string ApiKeyID

The key's ID.

class BetaPluginComponent { Type; Description; Name; }
required Type Type

The kind of component.

One of the following:
Agent("agent")
Cli("cli")
Command("command")
Hook("hook")
McpServer("mcp_server")
Skill("skill")
required string? Description

What the component declares about itself; always null for MCP servers, hooks, and CLIs.

required string Name

The component's name: a skill's, command's or agent's name, an MCP server's key in the manifest, the event a hook runs on, or a CLI's executable.

class BetaPluginContentScan { Assessment; Reason; Status; }
required Assessment? Assessment

The scan's verdict; set only when status is completed. A warn can mean a fail that was allowed in claude.ai.

One of the following:
Fail("fail")
Pass("pass")
Unknown("unknown")
Warn("warn")
required string? Reason

The primary mechanism behind a warn or fail, such as credential-exposure or guardrail-tampering; a mechanism this API does not yet name reads as other. Null on a pass, whenever assessment is null, and when no mechanism is reported for the verdict.

required Status Status

processing while a scan runs, completed when it ran to completion, errored when it could not run. Once a scan of the version has completed, content_scan describes the newest completed scan, even while a later scan runs. While the scan outcome cannot be read, status is errored instead.

One of the following:
Completed("completed")
Errored("errored")
Processing("processing")
class BetaPluginOwnerOrganization { Type = "organization"; }
JsonElement Type = "organization"

The Plugin lives in a plugin marketplace the organization owns.

class BetaPluginOwnerUser { Type = "user"; UserID; }
JsonElement Type = "user"

The Plugin lives in one member's personal plugin marketplace.

required string UserID

The member's User ID.

class BetaPluginTargetOrganization { Type = "organization"; }
JsonElement Type = "organization"

Every member of the organization.

class BetaPluginTargetOrganizationMember { Type = "organization_member"; UserID; }
JsonElement Type = "organization_member"

One member of the organization.

required string UserID

The member's User ID.

class BetaPluginTargetRbacGroup { Type = "rbac_group"; RbacGroupID; }
JsonElement Type = "rbac_group"

An RBAC Group.

required string RbacGroupID

The RBAC Group's ID.

class BetaPluginUserActor { Type = "user_actor"; EmailAddress; UserID; }
JsonElement Type = "user_actor"

A member of the organization.

required string? EmailAddress

The member's email address; may be null, for example when they are no longer a member of the organization.

required string UserID

The member's User ID.

插件版本

创建插件版本
BetaPluginVersion Beta.Organization.Plugins.Versions.Create(parameters, cancellationToken = default)
POST/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

通过上传新版本的文件为组织所有的插件添加一个版本;除非该插件的提供版本已被固定,否则新版本将成为向成员提供的版本。

列出插件版本
VersionListPage Beta.Organization.Plugins.Versions.List(parameters, cancellationToken = default)
GET/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

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

获取插件版本
BetaPluginVersion Beta.Organization.Plugins.Versions.Retrieve(parameters, cancellationToken = default)
GET/v1/organizations/plugins/{plugin_id}/versions/{version}
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

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

下载插件版本归档
HttpResponse Beta.Organization.Plugins.Versions.Download(parameters, cancellationToken = default)
GET/v1/organizations/plugins/{plugin_id}/versions/{version}/content
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

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

插件安装设置

列出插件安装设置
InstallationSettingListPage Beta.Organization.Plugins.InstallationSettings.List(parameters, cancellationToken = default)
GET/v1/organizations/plugins/{plugin_id}/installation_settings
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

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

设置插件安装设置
BetaPluginInstallationSetting Beta.Organization.Plugins.InstallationSettings.Set(parameters, cancellationToken = default)
POST/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

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

移除插件安装设置
BetaDeletedPluginInstallationSetting Beta.Organization.Plugins.InstallationSettings.Remove(parameters, cancellationToken = default)
DELETE/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

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

插件共享

列出插件共享
ShareListPage Beta.Organization.Plugins.Shares.List(parameters, cancellationToken = default)
GET/v1/organizations/plugins/{plugin_id}/shares
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

列出成员所有插件的所有者所授予的共享(共享给组织的所有成员、某个 RBAC 组或某个成员),按授予时间从新到旧排序。