列出插件共享
GET/v1/organizations/plugins/{plugin_id}/shares
Requires
anthropic-beta: ce-plugins-2026-09-01. How to send beta headers列出成员所有插件的所有者所授予的共享(共享给组织的所有成员、某个 RBAC 组或某个成员),按授予时间从新到旧排序。
在此 API 中,共享是只读的:成员在 claude.ai 中授予和撤回共享,共享的授予者记录在 Compliance API 活动源中,而不是记录在共享上。组织所有的插件使用安装设置而非共享,因此对此类插件,此路径返回 404。
接受的凭据:具有 read:plugins 或 read:org_audit 作用域的 Admin API 密钥,或具有 read:compliance_org_data 作用域的 Compliance Access Key。
每个请求都必须包含 beta 标头 anthropic-beta: ce-plugins-2026-09-01。缺少该标头的请求将返回 404,与端点不存在时完全相同。插件 API 目前处于 beta 阶段,仅适用于 Claude Enterprise 组织。Claude Platform(Claude Console)组织以及启用了 HIPAA 就绪功能的组织无法使用。
Parameters
Returns
列出插件共享
<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Anthropic\Client;
use Anthropic\Beta\AnthropicBeta;
$client = new Client(apiKey: 'my-anthropic-api-key');
$page = $client->beta->organization->plugins->shares->list(
'plugin_id',
limit: 1,
organizationID: 'organization_id',
page: 'page',
targetType: 'organization',
betas: [AnthropicBeta::MESSAGE_BATCHES_2024_09_24],
);
var_dump($page);Response 200
{
"data": [
{
"granted_at": "2026-03-14T09:26:53.589793Z",
"plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"target": {
"type": "organization"
},
"type": "plugin_share"
}
],
"next_page": "page_MjAyNi0wOS0xNlQxNDowNTowOVo"
}Returns Examples
Response 200
{
"data": [
{
"granted_at": "2026-03-14T09:26:53.589793Z",
"plugin_id": "plugin_01JyHfbRkZvD1gW7oTqXc3Ne",
"target": {
"type": "organization"
},
"type": "plugin_share"
}
],
"next_page": "page_MjAyNi0wOS0xNlQxNDowNTowOVo"
}