Claude Platform Docs

プラグインバージョンアーカイブのダウンロード

$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

1つのバージョンの .zip アーカイブを、保存されているとおりにダウンロードします。メンバーの個人用プラグインマーケットプレイスにあるプラグインのダウンロードは、それぞれCompliance APIのアクティビティフィードに記録されます。

レスポンス本文はアーカイブ(Content-Type: application/zip)で、プラグイン名から派生したファイル名の添付ファイルとして送信されます。このファイル名は一意ではないため、保存するファイルにはリクエストパス内のIDを使って名前を付けてください。

受け入れられる認証情報: read:plugins または read:org_audit スコープを持つAdmin APIキー、または read:compliance_org_data スコープを持つCompliance Access Key。

上記のすべての読み取りスコープ(read:plugins、read:org_audit、read:compliance_org_data)で、メンバーの個人用マーケットプレイスにあるプラグインのファイル(claude.aiの管理者設定に表示されないファイルを含む)をダウンロードできます。また、親組織のすべてのリンクされた組織を対象に作成された read:org_audit または read:compliance_org_data キーは、organization_id を渡すことで、その配下でこのAPIにアクセスできる任意の組織でこれを行えます。このようなダウンロードはそれぞれ、キー、プラグイン、バージョン、メンバーを識別する claude_plugin_archive_accessed イベントとしてCompliance APIのアクティビティフィードに記録されます。組織所有のプラグインのダウンロードは記録されません。

すべてのリクエストにベータヘッダー anthropic-beta: ce-plugins-2026-09-01 を含める必要があります。含まれていないリクエストは、エンドポイントが存在しない場合とまったく同じく 404 を返します。Plugins APIはベータ版であり、Claude Enterprise組織のみが利用できます。Claude Platform(Claude Console)組織、またはHIPAA対応が有効になっている組織では利用できません。

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
プラグインバージョンアーカイブのダウンロード
<?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);