Claude Platform Docs

Plugins

Criar plugin
BetaPlugin beta().organization().plugins().create(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugins
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Cria um plugin pertencente à organização e sua primeira versão fazendo upload dos arquivos da versão.

Obter plugin
BetaPlugin beta().organization().plugins().retrieve(params = PluginRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Recupera um plugin pelo ID.

Atualizar plugin
BetaPlugin beta().organization().plugins().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Altere qual versão armazenada de um Plugin pertencente à organização é servida aos membros, por exemplo, para reverter para uma versão anterior. Isso fixa a versão servida: uploads posteriores por meio desta API são armazenados, mas deixam de alterar o que é servido, e a fixação atualmente não pode ser desfeita, nem aqui nem no claude.ai.

Listar Plugins
PluginListPage beta().organization().plugins().list(params = PluginListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Liste os Plugins criados na organização, do mais recente para o mais antigo: os que estão nos marketplaces de plugins da própria organização e os que estão nos marketplaces de plugins pessoais dos membros.

Excluir Plugin
BetaDeletedPlugin beta().organization().plugins().delete(params = PluginDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE/v1/organizations/plugins/{plugin_id}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Exclua permanentemente um Plugin e todas as versões que ele contém, exatamente como quando um administrador o exclui no claude.ai. O Plugin pode pertencer à organização ou a um membro, incluindo um membro que já saiu da organização. Não exclua um Plugin apenas porque seu pipeline não o criou: um membro ou um administrador pode tê-lo adicionado no claude.ai.

Models
class BetaDeletedPlugin { type = "plugin_deleted"; id; }
JsonValue type = "plugin_deleted"

Always plugin_deleted.

String id

The deleted Plugin's ID.

class BetaPlugin { type = "plugin"; id; components; /* 16 more */ }
class BetaPluginApiActor { type = "api_actor"; apiKeyId; }
JsonValue type = "api_actor"

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

String apiKeyId

The key's ID.

class BetaPluginComponent { type; description; name; }
Type type

The kind of component.

One of the following:
AGENT("agent")
CLI("cli")
COMMAND("command")
HOOK("hook")
MCP_SERVER("mcp_server")
SKILL("skill")
Optional<String> description

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

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; }
Optional<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")
Optional<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. 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 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 BetaPluginNameTakenErrorDetails { errorCode; pluginId; }
JsonValue errorCode = "plugin_name_taken"
Optional<String> pluginId
class BetaPluginOwnerOrganization { type = "organization"; }
JsonValue type = "organization"

The Plugin lives in a plugin marketplace the organization owns.

class BetaPluginOwnerUser { type = "user"; userId; }
JsonValue type = "user"

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

String userId

The member's User ID.

class BetaPluginTargetOrganization { type = "organization"; }
JsonValue type = "organization"

Every member of the organization.

class BetaPluginTargetOrganizationMember { type = "organization_member"; userId; }
JsonValue type = "organization_member"

One member of the organization.

String userId

The member's User ID.

class BetaPluginTargetRbacGroup { type = "rbac_group"; rbacGroupId; }
JsonValue type = "rbac_group"

An RBAC Group.

String rbacGroupId

The RBAC Group's ID.

class BetaPluginUserActor { type = "user_actor"; emailAddress; userId; }
JsonValue type = "user_actor"

A member of the organization.

Optional<String> emailAddress

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

String userId

The member's User ID.

class BetaRegistrationPendingErrorDetails { errorCode; pluginId; pluginVersionId; }
JsonValue errorCode = "registration_pending"
String pluginId
String pluginVersionId
class BetaScanFailedErrorDetails { errorCode; pluginVersionId; }
JsonValue errorCode = "scan_failed"
String pluginVersionId
class BetaScanPendingErrorDetails { errorCode; pluginVersionId; }
JsonValue errorCode = "scan_pending"
String pluginVersionId
class BetaSkillNameTakenErrorDetails { errorCode; skillName; }
JsonValue errorCode = "skill_name_taken"
String skillName
Errors
class BetaScanFailedException extends BadRequestException { details; }⁠HTTP status 400

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

JsonValue errorCode = "scan_failed"
String pluginVersionId
class BetaPluginNameTakenException extends ConflictException { details; }⁠HTTP status 409

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

JsonValue errorCode = "plugin_name_taken"
Optional<String> pluginId
class BetaScanPendingException extends ConflictException { details; }⁠HTTP status 409

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

JsonValue errorCode = "scan_pending"
String pluginVersionId
class BetaSkillNameTakenException extends ConflictException { details; }⁠HTTP status 409

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

JsonValue errorCode = "skill_name_taken"
String skillName
class BetaRegistrationPendingException extends ServiceUnavailableException { 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.

JsonValue errorCode = "registration_pending"
String pluginId
String pluginVersionId

PluginsVersões

Criar versão do Plugin
BetaPluginVersion beta().organization().plugins().versions().create(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Adicione uma versão a um Plugin pertencente à organização enviando os arquivos da nova versão; ela se torna a versão servida aos membros, a menos que a versão servida do Plugin tenha sido fixada.

Listar versões do Plugin
VersionListPage beta().organization().plugins().versions().list(params = VersionListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/versions
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Liste as versões de um Plugin, da mais recente para a mais antiga.

Obter versão do Plugin
BetaPluginVersion beta().organization().plugins().versions().retrieve(params, requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/versions/{version}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Recupere uma versão de um Plugin pelo seu ID, ou a versão mais recente do Plugin.

Baixar arquivo da versão do Plugin
HttpResponse beta().organization().plugins().versions().download(params, requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/versions/{version}/content
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Baixe o arquivo .zip de uma versão, exatamente como armazenado. Downloads de Plugins dos marketplaces de plugins pessoais dos membros podem ser registrados no feed de atividades da Compliance API.

Listar configurações de instalação do Plugin
InstallationSettingListPage beta().organization().plugins().installationSettings().list(params = InstallationSettingListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/installation_settings
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Liste as configurações de instalação de um Plugin pertencente à organização, que indicam para quais membros ele se destina, das criadas mais recentemente para as mais antigas.

Definir configuração de instalação do Plugin
BetaPluginInstallationSetting beta().organization().plugins().installationSettings().set(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Defina ou altere a configuração de instalação de um Plugin pertencente à organização para toda a organização ou para um Grupo RBAC.

Remover configuração de instalação do Plugin
BetaDeletedPluginInstallationSetting beta().organization().plugins().installationSettings().remove(params, requestOptions = RequestOptions.none())
DELETE/v1/organizations/plugins/{plugin_id}/installation_settings/{target}
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Remova a configuração de instalação própria de um Plugin pertencente à organização para toda a organização ou para um Grupo RBAC.

Listar compartilhamentos do Plugin
ShareListPage beta().organization().plugins().shares().list(params = ShareListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/shares
Requires anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.

Liste os compartilhamentos que o proprietário de um Plugin pertencente a um membro concedeu — a todos os membros da organização, a um Grupo RBAC ou a um membro — dos concedidos mais recentemente para os mais antigos.