Claude Platform Docs

Плагины

Создание плагина
beta.organization.plugins.create(**kwargs) -> BetaPlugin
POST/v1/organizations/plugins
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Создаёт плагин, принадлежащий организации, и его первую версию путём загрузки файлов версии.

Получение плагина
beta.organization.plugins.retrieve(plugin_id, **kwargs) -> BetaPlugin
GET/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Получает плагин по ID.

Обновление плагина
beta.organization.plugins.update(plugin_id, **kwargs) -> BetaPlugin
POST/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Изменяет, какая из сохранённых версий плагина, принадлежащего организации, предоставляется участникам, — например, чтобы откатиться к более ранней. Это закрепляет предоставляемую версию: последующие загрузки через этот API сохраняются, но больше не меняют предоставляемую версию, а закрепление в настоящее время нельзя отменить ни здесь, ни в claude.ai.

Список плагинов
beta.organization.plugins.list(**kwargs) -> PageCursor<BetaPlugin>
GET/v1/organizations/plugins
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Возвращает список плагинов, созданных в организации, начиная с самых новых: как находящихся в собственных маркетплейсах плагинов организации, так и в личных маркетплейсах плагинов участников.

Удаление плагина
beta.organization.plugins.delete(plugin_id, **kwargs) -> BetaDeletedPlugin
DELETE/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Безвозвратно удаляет плагин и все его версии — точно так же, как при удалении администратором в claude.ai. Плагин может принадлежать организации или участнику, в том числе участнику, который с тех пор покинул организацию. Не удаляйте плагин только потому, что его создал не ваш конвейер: его мог добавить в claude.ai участник или администратор.

Models
class BetaDeletedPlugin { type: :plugin_deleted, id }
type: :plugin_deleted

Always plugin_deleted.

id: String

The deleted Plugin's ID.

class BetaPlugin { type: :plugin, id, components, 16 more }
class BetaPluginAPIActor { type: :api_actor, api_key_id }
type: :api_actor

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

api_key_id: String

The key's ID.

class BetaPluginComponent { type, description, name }
type: :agent | :cli | :command | 3 more

The kind of component.

One of the following:
:agent
:cli
:command
:hook
:mcp_server
:skill
description: String | nil

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

name: String

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 }
assessment: :fail | :pass | :unknown | :warn | nil

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
:pass
:unknown
:warn
reason: String | nil

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. Read status first: on an errored scan it is not a finding but why there is no verdict: scan-invalid-archive, the scan refused the version's archive, or could not process it, before checking what its files say, and running it again will not help, so change the files and store a new version; scan-did-not-finish, the scan did not finish or its result is no longer available, so retry the scan in claude.ai if it offers a retry; scan-unavailable, the scan could not run or its result cannot be read right now, so read the version again later, then retry the scan in claude.ai if it offers a retry. If these steps do not help, contact support. Null on a pass, while a scan runs, and when no mechanism is reported for the verdict. On an errored scan, null means that a compliance configuration ruled out the scan.

status: :completed | :errored | :processing

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
:errored
:processing
class BetaPluginNameTakenErrorDetails { error_code, plugin_id }
error_code: :plugin_name_taken
plugin_id: optional String | nil
class BetaPluginOwnerOrganization { type: :organization }
type: :organization

The Plugin lives in a plugin marketplace the organization owns.

class BetaPluginOwnerUser { type: :user, user_id }
type: :user

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

user_id: String

The member's User ID.

class BetaPluginTargetOrganization { type: :organization }
type: :organization

Every member of the organization.

class BetaPluginTargetOrganizationMember { type: :organization_member, user_id }
type: :organization_member

One member of the organization.

user_id: String

The member's User ID.

class BetaPluginTargetRBACGroup { type: :rbac_group, rbac_group_id }
type: :rbac_group

An RBAC Group.

rbac_group_id: String

The RBAC Group's ID.

class BetaPluginUserActor { type: :user_actor, email_address, user_id }
type: :user_actor

A member of the organization.

email_address: String | nil

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

user_id: String

The member's User ID.

class BetaRegistrationPendingErrorDetails { error_code, plugin_id, plugin_version_id }
error_code: :registration_pending
plugin_id: String
plugin_version_id: String
class BetaScanFailedErrorDetails { error_code, plugin_version_id }
error_code: :scan_failed
plugin_version_id: String
class BetaScanPendingErrorDetails { error_code, plugin_version_id }
error_code: :scan_pending
plugin_version_id: String
class BetaSkillNameTakenErrorDetails { error_code, skill_name }
error_code: :skill_name_taken
skill_name: String
Errors
class BetaScanFailedError < Anthropic::Errors::BadRequestError { error_code, details }⁠HTTP status 400

The version in plugin_version_id did not pass its content scan, so it cannot be served.

error_code: :scan_failed
details: BetaScanFailedErrorDetails { error_code, plugin_version_id }
error_code: :scan_failed
plugin_version_id: String
class BetaPluginNameTakenError < Anthropic::Errors::ConflictError { error_code, details }⁠HTTP status 409

The marketplace already holds this name. plugin_id is the Plugin that holds it, and can be absent.

error_code: :plugin_name_taken
details: BetaPluginNameTakenErrorDetails { error_code, plugin_id }
error_code: :plugin_name_taken
plugin_id: optional String | nil
class BetaScanPendingError < Anthropic::Errors::ConflictError { error_code, details }⁠HTTP status 409

The content scan of the version in plugin_version_id is still running. Retry once the scan finishes.

error_code: :scan_pending
details: BetaScanPendingErrorDetails { error_code, plugin_version_id }
error_code: :scan_pending
plugin_version_id: String
class BetaSkillNameTakenError < Anthropic::Errors::ConflictError { error_code, details }⁠HTTP status 409

One of the Plugin's skills has the name of an organization skill. skill_name is that name.

error_code: :skill_name_taken
details: BetaSkillNameTakenErrorDetails { error_code, skill_name }
error_code: :skill_name_taken
skill_name: String
class BetaRegistrationPendingError < Anthropic::Errors::ServiceUnavailableError { error_code, details }⁠HTTP status 503

The Plugin version was stored but is not yet usable in claude.ai. plugin_id and plugin_version_id identify what was stored.

error_code: :registration_pending
details: BetaRegistrationPendingErrorDetails { error_code, plugin_id, plugin_version_id }
error_code: :registration_pending
plugin_id: String
plugin_version_id: String

ПлагиныВерсии

Создание версии плагина
beta.organization.plugins.versions.create(plugin_id, **kwargs) -> BetaPluginVersion
POST/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Добавляет версию в плагин, принадлежащий организации, путём загрузки файлов новой версии; она становится версией, предоставляемой участникам, если только предоставляемая версия плагина не была закреплена.

Список версий плагина
beta.organization.plugins.versions.list(plugin_id, **kwargs) -> PageCursor<BetaPluginVersion>
GET/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Возвращает список версий плагина, начиная с самых новых.

Получение версии плагина
beta.organization.plugins.versions.retrieve(version, **kwargs) -> BetaPluginVersion
GET/v1/organizations/plugins/{plugin_id}/versions/{version}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Получает одну версию плагина по её идентификатору или самую новую версию плагина.

Скачивание архива версии плагина
beta.organization.plugins.versions.download(version, **kwargs) -> StringIO
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.organization.plugins.installation_settings.list(plugin_id, **kwargs) -> PageCursor<BetaPluginInstallationSetting>
GET/v1/organizations/plugins/{plugin_id}/installation_settings
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Возвращает список параметров установки плагина, принадлежащего организации, которые определяют, для каких участников он предназначен, начиная с созданных последними.

Задание параметра установки плагина
beta.organization.plugins.installation_settings.set(target, **kwargs) -> 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.

Удаление параметра установки плагина
beta.organization.plugins.installation_settings.remove(target, **kwargs) -> 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.organization.plugins.shares.list(plugin_id, **kwargs) -> PageCursor<BetaPluginShare>
GET/v1/organizations/plugins/{plugin_id}/shares
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Возвращает список предоставлений общего доступа, выданных владельцем плагина, принадлежащего участнику, — всем участникам организации, группе RBAC или одному участнику, — начиная с предоставленных последними.