Class PluginMarketplaceValidateRepositoryParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class PluginMarketplaceValidateRepositoryParams implements Params
Check whether a plugin marketplace held in a public GitHub repository would synchronize into claude.ai, without connecting or storing it.
To check a
.zipof the marketplace directory instead, use Validate Plugin Marketplace Archive.The report says whether
marketplace.jsonis well-formed, which plugins a synchronization would skip and why, and which plugins would synchronize only in part, with some files left out. A repository that is missing, private, or has no such branch or commit is reported, not refused: the response is a report withvalid: false. Plugin sources outside the marketplace are fetched anonymously from GitHub, so a private one is reported as not found or as needing a GitHub sign-in; a source on any other host is not fetched here, and the report notes that it will be checked when the marketplace actually synchronizes.Nothing is recorded on the Compliance API activity feed.
For a worked example, see /docs/en/manage-claude/plugins-api#validate-marketplace-content in the Plugins API guide.
Accepted credentials: an Admin API key with the
read:pluginsorwrite:pluginsscope;read:org_auditandread:compliance_org_datado not grant it.Every request must include the beta header
anthropic-beta: ce-plugins-2026-09-01. A request without it returns404, exactly as if the endpoint did not exist. The Plugins API is in beta and is available to Claude Enterprise organizations only. It is not available to Claude Platform (Claude Console) organizations, or to organizations with HIPAA readiness enabled.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classPluginMarketplaceValidateRepositoryParams.BuilderA builder for PluginMarketplaceValidateRepositoryParams.
public final classPluginMarketplaceValidateRepositoryParams.BodyThe repository to validate: its URL, and optionally the branch or commit to read.
repository_urlis required and any other field is refused; arepository_urlorrefthat fails the checks listed on its field is a 400, and a repository, branch, or commit that cannot be read is reported in the response, not refused.
-
Method Summary
Modifier and Type Method Description final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send ce-plugins-2026-09-01in this header.final StringrepositoryUrl()The https://URL of a public repository on github.com that holds the marketplace.final Optional<String>ref()The branch to validate the tip of, or the full 40-character SHA of the commit to validate. final JsonField<String>_repositoryUrl()Returns the raw JSON value of repositoryUrl. final JsonField<String>_ref()Returns the raw JSON value of ref. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final PluginMarketplaceValidateRepositoryParams.BuildertoBuilder()final PluginMarketplaceValidateRepositoryParams.Body_body()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static PluginMarketplaceValidateRepositoryParams.Builderbuilder()Returns a mutable builder for constructing an instance of PluginMarketplaceValidateRepositoryParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
ce-plugins-2026-09-01in this header.
-
repositoryUrl
final String repositoryUrl()
The
https://URL of a public repository on github.com that holds the marketplace. A URL longer than 2,048 characters, on any other host or scheme, with a port other than 443 or 80, with credentials in it, or that does not name exactlyowner/repo(a trailing.gitor/is accepted) is a 400. A private or missing repository is reported in the response, not refused.
-
ref
final Optional<String> ref()
The branch to validate the tip of, or the full 40-character SHA of the commit to validate. When omitted, the branch a synchronization would read (usually the repository's default branch); if that is not the default branch, the report's
refsays which branch was read. An empty string, a value longer than 255 characters, or one that contains..or a character other than ASCII letters, digits,.,_,-,+, and/, is a 400. Any other value that is not a 40-character SHA is read as a branch name; if the repository has no such branch, the response is a report withvalid: false, not a 400.
-
_repositoryUrl
final JsonField<String> _repositoryUrl()
Returns the raw JSON value of repositoryUrl.
Unlike repositoryUrl, this method doesn't throw if the JSON field has an unexpected type.
-
_ref
final JsonField<String> _ref()
Returns the raw JSON value of ref.
Unlike ref, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final PluginMarketplaceValidateRepositoryParams.Builder toBuilder()
-
_body
final PluginMarketplaceValidateRepositoryParams.Body _body()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
builder
final static PluginMarketplaceValidateRepositoryParams.Builder builder()
Returns a mutable builder for constructing an instance of PluginMarketplaceValidateRepositoryParams.
The following fields are required:
.repositoryUrl()
-
-
-
-