Claude Platform Docs

Plugins

Créer un plugin
BetaPlugin beta().organization().plugins().create(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugins

Crée un plugin appartenant à l'organisation ainsi que sa première version en téléversant les fichiers de la version.

Obtenir un plugin
BetaPlugin beta().organization().plugins().retrieve(params = PluginRetrieveParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}

Récupère un plugin par son ID.

Mettre à jour un plugin
BetaPlugin beta().organization().plugins().update(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugins/{plugin_id}

Modifiez la version stockée d'un Plugin appartenant à l'organisation qui est servie aux membres, par exemple pour revenir à une version antérieure. Cela épingle la version servie : les téléversements ultérieurs sont stockés mais ne modifient plus ce qui est servi, et l'épinglage ne peut actuellement pas être annulé, ni ici ni dans claude.ai.

Lister les Plugins
PluginListPage beta().organization().plugins().list(params = PluginListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins

Listez les Plugins créés au sein de l'organisation, du plus récent au plus ancien : ceux des marketplaces de plugins de l'organisation et ceux des marketplaces de plugins personnelles des membres.

Supprimer un Plugin
BetaDeletedPlugin beta().organization().plugins().delete(params = PluginDeleteParams.none(), requestOptions = RequestOptions.none())
DELETE/v1/organizations/plugins/{plugin_id}

Supprimez définitivement un Plugin et toutes ses versions, exactement comme lorsqu'un administrateur le supprime dans claude.ai. Le Plugin peut appartenir à l'organisation ou à un membre, y compris un membre qui a depuis quitté l'organisation.

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.

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. Null on a pass, whenever assessment is null, and when no mechanism is reported for the verdict.

Status status

processing while a scan runs, completed when it ran to completion, errored when it could not run or its outcome cannot be read.

One of the following:
COMPLETED("completed")
ERRORED("errored")
PROCESSING("processing")
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.

PluginsVersions

Créer une version de Plugin
BetaPluginVersion beta().organization().plugins().versions().create(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugins/{plugin_id}/versions

Ajoutez une version à un Plugin appartenant à l'organisation en téléversant les fichiers de la nouvelle version ; elle devient la version servie aux membres, sauf si la version servie du Plugin a été épinglée.

Lister les versions d'un Plugin
VersionListPage beta().organization().plugins().versions().list(params = VersionListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/versions

Listez les versions d'un Plugin, de la plus récente à la plus ancienne.

Obtenir une version de Plugin
BetaPluginVersion beta().organization().plugins().versions().retrieve(params, requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/versions/{version}

Récupérez une version d'un Plugin par son ID, ou la version la plus récente du Plugin.

Télécharger l'archive d'une version de Plugin
HttpResponse beta().organization().plugins().versions().download(params, requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/versions/{version}/content

Téléchargez l'archive .zip d'une version, exactement telle qu'elle est stockée. Chaque téléchargement d'un Plugin provenant de la marketplace de plugins personnelle d'un membre est enregistré dans le flux d'activité de l'API Compliance.

Lister les paramètres d'installation d'un Plugin
InstallationSettingListPage beta().organization().plugins().installationSettings().list(params = InstallationSettingListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/installation_settings

Listez les paramètres d'installation d'un Plugin appartenant à l'organisation, qui indiquent à quels membres il est destiné, du plus récemment créé au plus ancien.

Définir un paramètre d'installation de Plugin
BetaPluginInstallationSetting beta().organization().plugins().installationSettings().set(params, requestOptions = RequestOptions.none())
POST/v1/organizations/plugins/{plugin_id}/installation_settings/{target}

Définissez ou modifiez le paramètre d'installation d'un Plugin appartenant à l'organisation pour l'ensemble de l'organisation ou pour un groupe RBAC.

Supprimer un paramètre d'installation de Plugin
BetaDeletedPluginInstallationSetting beta().organization().plugins().installationSettings().remove(params, requestOptions = RequestOptions.none())
DELETE/v1/organizations/plugins/{plugin_id}/installation_settings/{target}

Supprimez le paramètre d'installation propre à un Plugin appartenant à l'organisation pour l'ensemble de l'organisation ou pour un groupe RBAC.

PluginsPartages

Lister les partages d'un Plugin
ShareListPage beta().organization().plugins().shares().list(params = ShareListParams.none(), requestOptions = RequestOptions.none())
GET/v1/organizations/plugins/{plugin_id}/shares

Listez les partages accordés par le propriétaire d'un Plugin appartenant à un membre — à tous les membres de l'organisation, à un groupe RBAC ou à un seul membre —, du plus récemment accordé au plus ancien.