Claude Platform Docs

Archiv einer Plugin-Version herunterladen

$client->beta->organization->plugins->versions->download(string version, string pluginID, ?string organizationID, ?list<AnthropicBeta> betas): download
GET/v1/organizations/plugins/{plugin_id}/versions/{version}/content
Requires anthropic-beta: ce-plugins-2026-09-01. How to send beta headers

Lädt das .zip-Archiv einer Version genau so herunter, wie es gespeichert ist. Jeder Download eines Plugins aus dem persönlichen Plugin-Marketplace eines Mitglieds wird im Aktivitäts-Feed der Compliance API protokolliert.

Der Antwort-Body ist das Archiv (Content-Type: application/zip), gesendet als Anhang, dessen Dateiname aus dem Namen des Plugins abgeleitet wird; benenne gespeicherte Dateien anhand der IDs im Anfragepfad, da dieser Dateiname nicht eindeutig ist.

Akzeptierte Anmeldedaten: ein Admin-API-Key mit dem Scope read:plugins oder read:org_audit oder ein Compliance Access Key mit dem Scope read:compliance_org_data.

Jeder der oben genannten Lese-Scopes (read:plugins, read:org_audit und read:compliance_org_data) kann die Dateien von Plugins in den persönlichen Marketplaces der Mitglieder herunterladen, einschließlich Dateien, die die Admin-Einstellungen von claude.ai nicht anzeigen, und ein read:org_audit- oder read:compliance_org_data-Key, der für alle verknüpften Organisationen deiner übergeordneten Organisation erstellt wurde, kann dies in jeder darunterliegenden Organisation tun, die Zugriff auf diese API hat, indem organization_id übergeben wird. Jeder solche Download protokolliert ein claude_plugin_archive_accessed-Ereignis im Aktivitäts-Feed der Compliance API, das den Key, das Plugin, die Version und das Mitglied identifiziert. Downloads von organisationseigenen Plugins werden nicht protokolliert.

Jede Anfrage muss den Beta-Header anthropic-beta: ce-plugins-2026-09-01 enthalten. Eine Anfrage ohne ihn gibt 404 zurück, genau so, als ob der Endpunkt nicht existieren würde. Die Plugins API befindet sich in der Beta und ist nur für Claude Enterprise-Organisationen verfügbar. Sie ist nicht für Claude Platform (Claude Console)-Organisationen oder für Organisationen mit aktivierter HIPAA-Readiness verfügbar.

Parameters
pluginID: 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.

organizationID?: 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.

betas?: optional list<AnthropicBeta>⁠Header parameter

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

Returns
mixed
Archiv einer Plugin-Version herunterladen
<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;

$client = new Client(apiKey: 'my-anthropic-api-key');

$response = $client->beta->organization->plugins->versions->download(
  'version',
  pluginID: 'plugin_id',
  organizationID: 'organization_id',
  betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
);

var_dump($response);