Limits and errors
This applies to every endpoint under /registry/v1. A failure response has the shape {"error": {"code", "message", "doc_url"}}; message names the field or condition at fault, and code decides the next step.
Limits
| Item | Value | Notes |
|---|---|---|
| Repository name | ^[a-z0-9][a-z0-9-]{0,62}$ | Lowercase letters, digits and hyphens, up to 63 characters; cannot be renamed |
| Package name | Lowercase letters, digits and single hyphens, up to 64 characters | Taken from name: in SKILL.md or name in plugin.json |
| Version number | Full semver: MAJOR.MINOR.PATCH, optional prerelease | Strictly increasing within a package; a withdrawn version still holds its number |
| One upload | 25 MiB | Larger returns 413 |
| Unpacked | 50 MiB and at most 1000 files | Larger returns 413 |
Paging page_size | 1 to 100 | Out of range returns 400; page with next_cursor |
| Targets per install call | At most 50 | agent_ids or computer_ids |
| Skills per agent | At most 20 | When full, the target appears in errors |
| Default repository | One per organization, named default | Cannot be deleted |
Error codes
| HTTP | code | Typical cause | What to do | Retry |
|---|---|---|---|---|
| 400 | INVALID_PARAMS | Bad repository name or version format; both or neither of archive and files; content has neither SKILL.md nor .claude-plugin/plugin.json (or both); a skill installed on a computer; page_size out of range | Fix the field named in message | After fixing |
| 401 | none (the gateway returns its standard authentication problem response) | Missing or invalid API key | Send an API key that owns the organization | No |
| 404 | NOT_FOUND | The repository, package, version or installation does not exist, or belongs to another organization (deliberately not told apart); a repeated delete | Retry with an ID taken from a list endpoint | No |
| 409 | ALREADY_EXISTS | A repository with this name already exists | Choose another name | No |
| 409 | FAILED_PRECONDITION | Deleting the default or a non-empty repository; publishing a version not above the highest published; withdrawing a withdrawn version; installing a withdrawn version; installing a plugin that is not the latest; a skill name clash or a full 20 skills; the target agent does not exist | Adjust the condition named in message (raise the version, pick a version that is not withdrawn, empty the repository first) | After adjusting |
| 413 | PAYLOAD_TOO_LARGE | The upload exceeds a limit | Trim the content and resend | After shrinking |
| 429 | QUOTA_EXCEEDED | The organization hit its registry usage or request-rate limit | Send fewer requests, or clear content you no longer need | Later |
| 500 | INTERNAL | The service could not finish the request | Before retrying a write, read first to confirm the previous attempt did not partly apply | After reading |
| 503 | UNAVAILABLE | The platform could not finish the request (for example the git backend is unreachable); nothing took effect | Retry later | Yes |
Batch install is the exception: if at least one target succeeds the call returns 201, and failed targets are in the response’s errors with target_id, code and message. code INTERNAL means the target is temporarily unavailable and can be retried; FAILED_PRECONDITION means the state forbids it, so change the condition first.
No endpoint deletes a package
A package cannot be deleted yet, so a repository that has held a package cannot be deleted either. Withdrawing a version stops new installs, but the version number stays taken. When you create a repository for a throwaway test, give it a prefix such as docs-example- and accept that it stays.