Claude Platform Docs

Plugin

Membuat Plugin
client.Beta.Organization.Plugins.New(ctx, params) (*BetaPlugin, error)
POST/v1/organizations/plugins

Membuat Plugin milik organisasi beserta versi pertamanya dengan mengunggah file versi tersebut.

Mendapatkan Plugin
client.Beta.Organization.Plugins.Get(ctx, pluginID, params) (*BetaPlugin, error)
GET/v1/organizations/plugins/{plugin_id}

Mengambil Plugin berdasarkan ID.

Memperbarui Plugin
client.Beta.Organization.Plugins.Update(ctx, pluginID, params) (*BetaPlugin, error)
POST/v1/organizations/plugins/{plugin_id}

Ubah versi tersimpan mana dari Plugin milik organisasi yang disajikan kepada anggota, misalnya untuk melakukan rollback ke versi sebelumnya. Tindakan ini menyematkan (pin) versi yang disajikan: unggahan berikutnya tetap disimpan tetapi tidak lagi mengubah apa yang disajikan, dan penyematan saat ini tidak dapat dibatalkan, baik di sini maupun di claude.ai.

Daftar Plugin
client.Beta.Organization.Plugins.List(ctx, params) (*PageCursor[BetaPlugin], error)
GET/v1/organizations/plugins

Menampilkan daftar Plugin yang dibuat di bawah organisasi, dari yang terbaru: Plugin di marketplace plugin milik organisasi sendiri dan Plugin di marketplace plugin pribadi anggota.

Hapus Plugin
client.Beta.Organization.Plugins.Delete(ctx, pluginID, body) (*BetaDeletedPlugin, error)
DELETE/v1/organizations/plugins/{plugin_id}

Menghapus secara permanen sebuah Plugin beserta setiap versi yang dimilikinya, persis seperti saat administrator menghapusnya di claude.ai. Plugin tersebut dapat dimiliki oleh organisasi atau oleh anggota, termasuk anggota yang sudah keluar dari organisasi.

Models
type BetaDeletedPlugin struct { Type: "plugin_deleted"; ID }
Type PluginDeleted

Always plugin_deleted.

defaultplugin_deleted
ID string

The deleted Plugin's ID.

type BetaPlugin struct { Type: "plugin"; ID; Components; /* 16 more */ }
type BetaPluginAPIActor struct { Type: "api_actor"; APIKeyID }
Type APIActor

An Admin API key, in the same form the Compliance API activity feed uses for it.

defaultapi_actor
APIKeyID string

The key's ID.

type BetaPluginComponent struct { Type; Description; Name }
Type BetaPluginComponentType

The kind of component.

One of the following:
const BetaPluginComponentTypeAgent BetaPluginComponentType = "agent"
const BetaPluginComponentTypeCli BetaPluginComponentType = "cli"
const BetaPluginComponentTypeCommand BetaPluginComponentType = "command"
const BetaPluginComponentTypeHook BetaPluginComponentType = "hook"
const BetaPluginComponentTypeMCPServer BetaPluginComponentType = "mcp_server"
const BetaPluginComponentTypeSkill BetaPluginComponentType = "skill"
Description string

What the component declares about itself; always null for MCP servers, hooks, and CLIs.

Name string

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.

type BetaPluginContentScan struct { Assessment; Reason; Status }
Assessment BetaPluginContentScanAssessment

The scan's verdict; set only when status is completed.

One of the following:
const BetaPluginContentScanAssessmentFail BetaPluginContentScanAssessment = "fail"
const BetaPluginContentScanAssessmentPass BetaPluginContentScanAssessment = "pass"
const BetaPluginContentScanAssessmentUnknown BetaPluginContentScanAssessment = "unknown"
const BetaPluginContentScanAssessmentWarn BetaPluginContentScanAssessment = "warn"
Reason string

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 BetaPluginContentScanStatus

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:
const BetaPluginContentScanStatusCompleted BetaPluginContentScanStatus = "completed"
const BetaPluginContentScanStatusErrored BetaPluginContentScanStatus = "errored"
const BetaPluginContentScanStatusProcessing BetaPluginContentScanStatus = "processing"
type BetaPluginOwnerOrganization struct { Type: "organization" }
Type Organization

The Plugin lives in a plugin marketplace the organization owns.

defaultorganization
type BetaPluginOwnerUser struct { Type: "user"; UserID }
Type User

The Plugin lives in one member's personal plugin marketplace.

defaultuser
UserID string

The member's User ID.

type BetaPluginTargetOrganization struct { Type: "organization" }
Type Organization

Every member of the organization.

defaultorganization
type BetaPluginTargetOrganizationMember struct { Type: "organization_member"; UserID }
Type OrganizationMember

One member of the organization.

defaultorganization_member
UserID string

The member's User ID.

type BetaPluginTargetRBACGroup struct { Type: "rbac_group"; RBACGroupID }
Type RBACGroup

An RBAC Group.

defaultrbac_group
RBACGroupID string

The RBAC Group's ID.

type BetaPluginUserActor struct { Type: "user_actor"; EmailAddress; UserID }
Type UserActor

A member of the organization.

defaultuser_actor
EmailAddress string

The member's email address; may be null, for example when they are no longer a member of the organization.

UserID string

The member's User ID.

PluginVersi

Buat Versi Plugin
client.Beta.Organization.Plugins.Versions.New(ctx, pluginID, params) (*BetaPluginVersion, error)
POST/v1/organizations/plugins/{plugin_id}/versions

Menambahkan versi ke Plugin milik organisasi dengan mengunggah file versi baru; versi tersebut menjadi versi yang disajikan kepada anggota kecuali versi yang disajikan Plugin telah disematkan.

Daftar Versi Plugin
client.Beta.Organization.Plugins.Versions.List(ctx, pluginID, params) (*PageCursor[BetaPluginVersion], error)
GET/v1/organizations/plugins/{plugin_id}/versions

Menampilkan daftar versi Plugin, dari yang terbaru.

Ambil Versi Plugin
client.Beta.Organization.Plugins.Versions.Get(ctx, version, params) (*BetaPluginVersion, error)
GET/v1/organizations/plugins/{plugin_id}/versions/{version}

Mengambil satu versi Plugin berdasarkan ID-nya, atau versi terbaru Plugin.

Unduh Arsip Versi Plugin
client.Beta.Organization.Plugins.Versions.Download(ctx, version, params) (*Response, error)
GET/v1/organizations/plugins/{plugin_id}/versions/{version}/content

Mengunduh arsip .zip dari satu versi, persis seperti yang disimpan. Setiap unduhan Plugin dari marketplace plugin pribadi anggota dicatat di feed aktivitas Compliance API.

Daftar Pengaturan Instalasi Plugin
client.Beta.Organization.Plugins.InstallationSettings.List(ctx, pluginID, params) (*PageCursor[BetaPluginInstallationSetting], error)
GET/v1/organizations/plugins/{plugin_id}/installation_settings

Menampilkan daftar pengaturan instalasi Plugin milik organisasi, yang menentukan untuk anggota mana Plugin tersebut ditujukan, dari yang paling baru dibuat.

Atur Pengaturan Instalasi Plugin
client.Beta.Organization.Plugins.InstallationSettings.Set(ctx, target, params) (*BetaPluginInstallationSetting, error)
POST/v1/organizations/plugins/{plugin_id}/installation_settings/{target}

Mengatur atau mengubah pengaturan instalasi Plugin milik organisasi untuk seluruh organisasi atau untuk satu Grup RBAC.

Hapus Pengaturan Instalasi Plugin
client.Beta.Organization.Plugins.InstallationSettings.Remove(ctx, target, params) (*BetaDeletedPluginInstallationSetting, error)
DELETE/v1/organizations/plugins/{plugin_id}/installation_settings/{target}

Menghapus pengaturan instalasi milik Plugin milik organisasi untuk seluruh organisasi atau untuk satu Grup RBAC.

PluginShare

Daftar Share Plugin
client.Beta.Organization.Plugins.Shares.List(ctx, pluginID, params) (*PageCursor[BetaPluginShare], error)
GET/v1/organizations/plugins/{plugin_id}/shares

Menampilkan daftar share yang diberikan oleh pemilik Plugin milik anggota — kepada setiap anggota organisasi, kepada Grup RBAC, atau kepada satu anggota — dari yang paling baru diberikan.