Claude Platform Docs

插件市场

列出插件市场
beta.organization.plugin_marketplaces.list(**kwargs) -> SyncPageCursor[BetaPluginMarketplace]
GET/v1/organizations/plugin_marketplaces

列出插件所在的插件市场,按从新到旧排序:包括组织自有的市场及其成员的个人市场。

获取插件市场
beta.organization.plugin_marketplaces.retrieve(marketplace_id, **kwargs) -> BetaPluginMarketplace
GET/v1/organizations/plugin_marketplaces/{marketplace_id}

按 ID 检索插件市场。

更新插件市场
beta.organization.plugin_marketplaces.update(marketplace_id, **kwargs) -> BetaPluginMarketplace
POST/v1/organizations/plugin_marketplaces/{marketplace_id}

设置组织自有插件市场之一的默认安装设置。该市场中所有没有自身设置的插件(包括之后添加的插件)都会将此默认值作为其组织范围设置。

验证插件市场代码仓库
beta.organization.plugin_marketplaces.validate_repository(**kwargs) -> BetaPluginMarketplaceValidationReport
POST/v1/organizations/plugin_marketplaces/validate_repository

检查存放在公共 GitHub 代码仓库中的插件市场能否同步到 claude.ai,而不会连接或存储该市场。

验证插件市场归档
beta.organization.plugin_marketplaces.validate_archive(**kwargs) -> BetaPluginMarketplaceValidationReport
POST/v1/organizations/plugin_marketplaces/validate_archive

检查以市场目录 .zip 文件形式上传的插件市场能否同步到 claude.ai,而不会连接或存储该市场。

Models
class BetaPluginMarketplace: type: "plugin_marketplace"; id; created_at; ... # 7 more
class BetaPluginMarketplaceValidationPluginError: error; error_code; name
error: str

Why the plugin would be skipped by a synchronization.

error_code: str

A stable identifier for the reason — the value to branch on.

name: str

The plugin's name, as its entry in marketplace.json declares it.

class BetaPluginMarketplaceValidationPluginWarning: error_code; message
error_code: str

A stable identifier for the kind of warning.

message: str

What would be left out, and why.

class BetaPluginMarketplaceValidationPluginWarnings: name; warnings
name: str

The plugin's name, as its entry in marketplace.json declares it.

The parts of the plugin a synchronization would leave out.

error_code: str

A stable identifier for the kind of warning.

message: str

What would be left out, and why.

class BetaPluginMarketplaceValidationReport: type: "plugin_marketplace_validation_report"; commit_sha; manifest_error; ... # 6 more

The outcome of validating plugin marketplace content: a report, not a stored object, so nothing in it can be retrieved afterwards.