列出外掛程式分享
GET/v1/organizations/plugins/{plugin_id}/shares
Requires
anthropic-beta: ce-plugins-2026-09-01. Learn how to send beta headers.列出成員擁有的外掛程式的擁有者所提供的分享(分享給組織的所有成員、某個 RBAC 群組或單一成員),依授予時間由新到舊排序。
在此 API 中,分享為唯讀:成員在 claude.ai 中提供及撤回分享。所列出的每項分享皆由該外掛程式的 owner 提供。組織擁有的外掛程式使用的是安裝設定而非分享,因此對此類外掛程式,此路徑會傳回 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
列出外掛程式分享
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go/v2"
"github.com/anthropics/anthropic-sdk-go/v2/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
page, err := client.Beta.Organization.Plugins.Shares.List(
context.TODO(),
"plugin_id",
anthropic.BetaOrganizationPluginShareListParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", 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"
}