# Container Registry

Choose your registry namespace, manage repositories, their tags and retention, and create registry tokens for CI and clusters.

Source: https://docs.pantechdynamics.com/api/registry

Claim a namespace, then push images to `registry.pantechdynamics.com/<namespace>/<repository>:<tag>` with `docker` or any OCI client. This API manages the namespace, repositories, tags and registry tokens; images themselves are pushed and pulled through the registry. Reads are served from Pantech's records, so listing thousands of tags is quick. See [Pantech Container Registry](https://docs.pantechdynamics.com/registry/overview) and [CI and Kubernetes](https://docs.pantechdynamics.com/registry/ci-and-kubernetes).

Endpoints:

- `GET /public/v1/registry`: Get the registry namespace
- `PUT /public/v1/registry`: Claim or change the registry namespace
- `GET /public/v1/registry/repositories`: List repositories
- `POST /public/v1/registry/repositories`: Create a repository
- `GET /public/v1/registry/repositories/{repository_id}`: Get a repository
- `PATCH /public/v1/registry/repositories/{repository_id}`: Change a repository
- `DELETE /public/v1/registry/repositories/{repository_id}`: Delete a repository
- `GET /public/v1/registry/repositories/{repository_id}/tags`: List a repository's tags
- `GET /public/v1/registry/repositories/{repository_id}/tags/{tag}`: Get a tag
- `DELETE /public/v1/registry/repositories/{repository_id}/tags/{tag}`: Delete a tag
- `GET /public/v1/registry/tokens`: List registry tokens
- `POST /public/v1/registry/tokens`: Create a registry token
- `DELETE /public/v1/registry/tokens/{token_id}`: Revoke a registry token

## The registry namespace object

An organization's namespace on the private container registry.

- `name` (string, required): The namespace: the first part of every image name.
- `registry_host` (string, required): The registry's host name.
- `create_on_push` (boolean, required): Whether a push to a repository that does not exist creates it.
- `repository_count` (integer, required): Repositories in the namespace.
- `storage_bytes` (integer, required): Storage your images use, in bytes, measured hourly: each layer counted once however many images share it.
- `storage_limit_bytes` (integer, required): The storage limit; pushes are refused at it.
- `repository_limit` (integer, required): How many repositories the organization may have.
- `created_at` (string, required): When it was claimed (RFC 3339, UTC).
- `updated_at` (string, required): When it last changed (RFC 3339, UTC).
- `version` (integer, required): Increases with every change.
## The registry repository object

A repository in the private container registry.

- `id` (string, required): e.g. `crr_...`.
- `namespace` (string, required)
- `name` (string, required): The repository's name inside the namespace.
- `full_name` (string, required): The image name to push and pull, without a tag.
- `description` (string, required): Your note about it; may be empty.
- `visibility` (string, required): `private` (members and credentials only) or `public` (anyone may pull). One of `private`, `public`.
- `immutable_tags` (boolean, required): Whether tags, once pushed, can never be moved or deleted.
- `retention` (RegistryRetention, required): A retention policy. Each rule is null when off.
  - `keep_last` (integer or null, required): Keep the newest N tags (by push time) that `keep_pattern` does not protect; older ones are untagged daily. From 1 to 1000.
  - `untagged_after_days` (integer or null, required): Delete images no tag points at once they are older than this many days. From 1 to 365.
  - `keep_pattern` (string or null, required): A glob, such as `v*` or `release-*`: matching tags are never removed by retention. At most 128 characters.
- `tag_count` (integer, required)
- `storage_bytes` (integer, required): Storage the repository's images use, measured hourly.
- `last_pushed_at` (string or null, required): When an image was last pushed; null before the first push.
- `status` (string, required): `active`, `deleting`, or `suspended` (by an operator). One of `active`, `deleting`, `suspended`.
- `suspended_reason` (string or null, required): Why an operator suspended it; null unless `suspended`.
- `created_at` (string, required)
- `updated_at` (string, required)
- `version` (integer, required): Increases with every change.
## The registry tag object

A tag and the image it points at.

- `name` (string, required)
- `digest` (string, required)
- `media_type` (string, required): The manifest's media type: an image index (several platforms) or a single image.
- `size_bytes` (integer, required): The image's size: the manifest and the layers it references.
- `platforms` (array of string, required): For an index, the platforms it holds, such as `linux/amd64`.
- `pushed_at` (string, required): When the tag was pushed to this image.
- `last_pulled_at` (string or null, required): When it was last pulled; null if never.
- `immutable` (boolean, required): Whether the tag can never be moved or deleted (the repository has immutable tags).
## The registry token object

A credential for the registry only. Its secret is never shown again after creation.

- `id` (string, required): e.g. `prt_...`.
- `name` (string, required)
- `permission` (string, required): `pull`, or `push` (which includes pull). One of `pull`, `push`.
- `repositories` (array of string, required): The repositories it may use; empty for every repository in the namespace.
- `expires_at` (string or null, required): When it stops working; null if never.
- `last_used_at` (string or null, required): When it last signed in, to the minute; null if never.
- `created_at` (string, required)
- `revoked_at` (string or null, required): When it was revoked; null if it was not.
## Get the registry namespace

```http
GET /public/v1/registry
```

Your organization's namespace on the private container registry, its limits and its storage. Images are `registry.pantechdynamics.com/<namespace>/<repository>:<tag>`; sign in with `docker login registry.pantechdynamics.com -u pantech -p <API key or registry token>`.

Scope: `read`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/registry" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "name": "acme",
  "registry_host": "registry.pantechdynamics.com",
  "create_on_push": true,
  "repository_count": 1,
  "storage_bytes": 1,
  "storage_limit_bytes": 1,
  "repository_limit": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z",
  "version": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is no longer an active member. Use another key.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REGISTRY_NAMESPACE_NOT_SET`: your organization has not claimed a namespace yet. Claim one with `PUT /registry`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Claim or change the registry namespace

```http
PUT /public/v1/registry
```

Claims your organization's namespace, or changes it. A namespace is 3 to 30 lower-case letters, digits and single hyphens, starts with a letter, and is unique across Pantech; some names, such as `library` and `pantech`, are reserved. The name cannot change once a repository was ever created in it, even after every repository is deleted, and a name that held content is never given to another organization. `create_on_push` (on by default) lets a push to a repository that does not exist yet create it. Owners and admins only.

**Idempotency:** the same body again changes nothing.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `name` (string, required): 3 to 30 lower-case letters, digits and single hyphens, starting with a letter. From 3 to 30 characters.
- `create_on_push` (boolean): Whether a push may create a repository. Left out: unchanged (on for a new namespace).

Example:

```sh
curl -X PUT "https://api.pantechdynamics.com/public/v1/registry" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "acme"
  }'
```

Response `200`:

```json
{
  "name": "acme",
  "registry_host": "registry.pantechdynamics.com",
  "create_on_push": true,
  "repository_count": 1,
  "storage_bytes": 1,
  "storage_limit_bytes": 1,
  "repository_limit": 1,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z",
  "version": 1
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is not an owner or admin. Use a key created by one.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `409`: `REGISTRY_NAMESPACE_TAKEN`: another organization has this namespace. Choose another.
`REGISTRY_NAMESPACE_LOCKED`: the namespace cannot change once a repository was ever created in it.
- `422`: `INVALID_REGISTRY_NAMESPACE`: `name` is not a valid namespace, or is reserved.
`VALIDATION_FAILED`: a field is missing or invalid; `errors` names it.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List repositories

```http
GET /public/v1/registry/repositories
```

Your organization's repositories, by name. Served from Pantech's own records: listing never waits on the registry.

Scope: `read`.

Query parameters:

- `q` (string): Only repositories whose name contains this text, at most 255 characters. At most 255 characters.
- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/registry/repositories" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "crr_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "namespace": "acme",
      "name": "api/server",
      "full_name": "registry.pantechdynamics.com/acme/api/server",
      "description": "description",
      "visibility": "private",
      "immutable_tags": true,
      "retention": {
        "keep_last": 1,
        "untagged_after_days": 1,
        "keep_pattern": "keep-pattern"
      },
      "tag_count": 1,
      "storage_bytes": 1,
      "last_pushed_at": "2026-10-03T09:30:00Z",
      "status": "active",
      "suspended_reason": null,
      "created_at": "2026-10-03T09:30:00Z",
      "updated_at": "2026-10-03T09:30:00Z",
      "version": 1
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_FILTER`: a query parameter is not valid. `detail` names it and what it takes.
`INVALID_CURSOR`: the cursor is not valid for this list and these filters. Start again without a cursor.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is no longer an active member. Use another key.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REGISTRY_NAMESPACE_NOT_SET`: your organization has not claimed a namespace yet. Claim one with `PUT /registry`.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Create a repository

```http
POST /public/v1/registry/repositories
```

Creates a repository in your namespace. `name` follows the OCI name grammar: lower-case path components of letters and digits, separated by `.`, `_`, `__` or `-`, joined by `/`, at most 255 characters with the namespace. Repositories are `private` unless `visibility` is `public` (anyone may pull, without signing in). With `immutable_tags`, a tag once pushed cannot be moved or deleted: a push that moves one is put back. `retention` keeps the newest `keep_last` tags and deletes untagged images older than `untagged_after_days`; tags matching `keep_pattern` are never removed. A push can also create a repository (see `create_on_push`). At most 100 repositories per organization. Owners and admins only.

**Idempotency:** a retry with the same `Idempotency-Key` returns the repository the first request made. The same key with a different request returns `409 IDEMPOTENCY_CONFLICT`.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `name` (string, required): Lower-case path components separated by `/`, such as `api/server`. At most 255 characters.
- `description` (string): At most 255 characters.
- `visibility` (string): Default `private`. One of `private`, `public`.
- `immutable_tags` (boolean): Default false.
- `retention` (RegistryRetentionInput): A retention policy. A rule left out or null is off.
  - `keep_last` (integer or null): Keep the newest N tags. From 1 to 1000.
  - `untagged_after_days` (integer or null): Delete untagged images older than this many days. From 1 to 365.
  - `keep_pattern` (string or null): Tags matching this glob are never removed. At most 128 characters.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/registry/repositories" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "api/server"
  }'
```

Response `201`:

```json
{
  "id": "crr_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "namespace": "acme",
  "name": "api/server",
  "full_name": "registry.pantechdynamics.com/acme/api/server",
  "description": "description",
  "visibility": "private",
  "immutable_tags": true,
  "retention": {
    "keep_last": 1,
    "untagged_after_days": 1,
    "keep_pattern": "keep-pattern"
  },
  "tag_count": 1,
  "storage_bytes": 1,
  "last_pushed_at": "2026-10-03T09:30:00Z",
  "status": "active",
  "suspended_reason": null,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z",
  "version": 1
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is not an owner or admin. Use a key created by one.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
`REPOSITORY_LIMIT_REACHED`: your organization already has 100 repositories. Delete one first, or contact support to raise the limit.
- `404`: `REGISTRY_NAMESPACE_NOT_SET`: your organization has not claimed a namespace yet. Claim one with `PUT /registry`.
- `409`: `REPOSITORY_EXISTS`: your organization already has a repository with this name.
`IDEMPOTENCY_CONFLICT`: the `Idempotency-Key` was already used with a different request. Use a new key.
- `422`: `INVALID_REPOSITORY_NAME`: `name` is not a valid repository name.
`VALIDATION_FAILED`: a field is missing or invalid; `errors` names it.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Get a repository

```http
GET /public/v1/registry/repositories/{repository_id}
```

One repository, its settings, tag count and storage.

Scope: `read`.

Path parameters:

- `repository_id`: The repository's id (`crr_…`).

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/registry/repositories/crr_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "id": "crr_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "namespace": "acme",
  "name": "api/server",
  "full_name": "registry.pantechdynamics.com/acme/api/server",
  "description": "description",
  "visibility": "private",
  "immutable_tags": true,
  "retention": {
    "keep_last": 1,
    "untagged_after_days": 1,
    "keep_pattern": "keep-pattern"
  },
  "tag_count": 1,
  "storage_bytes": 1,
  "last_pushed_at": "2026-10-03T09:30:00Z",
  "status": "active",
  "suspended_reason": null,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z",
  "version": 1
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is no longer an active member. Use another key.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REPOSITORY_NOT_FOUND`: no repository with this id in your organization. List your repositories to find it.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Change a repository

```http
PATCH /public/v1/registry/repositories/{repository_id}
```

Changes a repository's description, visibility, tag immutability or retention policy. Fields left out keep their value. `retention`, when present, replaces the whole policy: a rule left out of it, or null, is removed, and `"retention": null` removes every rule. Owners and admins only.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `repository_id`: The repository's id (`crr_…`).

Body:

- `description` (string): At most 255 characters.
- `visibility` (string): One of `private`, `public`.
- `immutable_tags` (boolean)
- `retention` (RegistryRetentionInput): A retention policy. A rule left out or null is off.
  - `keep_last` (integer or null): Keep the newest N tags. From 1 to 1000.
  - `untagged_after_days` (integer or null): Delete untagged images older than this many days. From 1 to 365.
  - `keep_pattern` (string or null): Tags matching this glob are never removed. At most 128 characters.

Example:

```sh
curl -X PATCH "https://api.pantechdynamics.com/public/v1/registry/repositories/crr_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

Response `200`:

```json
{
  "id": "crr_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "namespace": "acme",
  "name": "api/server",
  "full_name": "registry.pantechdynamics.com/acme/api/server",
  "description": "description",
  "visibility": "private",
  "immutable_tags": true,
  "retention": {
    "keep_last": 1,
    "untagged_after_days": 1,
    "keep_pattern": "keep-pattern"
  },
  "tag_count": 1,
  "storage_bytes": 1,
  "last_pushed_at": "2026-10-03T09:30:00Z",
  "status": "active",
  "suspended_reason": null,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z",
  "version": 1
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is not an owner or admin. Use a key created by one.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REPOSITORY_NOT_FOUND`: no repository with this id in your organization. List your repositories to find it.
- `409`: `REPOSITORY_SUSPENDED`: an operator suspended the repository. Contact support.
`CONFLICT`: the repository is being deleted, or was changed at the same time by another request.
- `422`: `VALIDATION_FAILED`: a field is invalid; `errors` names it.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Delete a repository

```http
DELETE /public/v1/registry/repositories/{repository_id}
```

Deletes the repository and every image in it. It answers `deleting` and disappears once every image is deleted from the registry, usually within a minute; the space is reclaimed by the next nightly clean-up. Owners and admins only.

**Idempotency:** deleting a repository that is already being deleted returns it again.

**Scope:** `write`. Destructive: an AI app's key also needs `delete`.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `repository_id`: The repository's id (`crr_…`).

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/registry/repositories/crr_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `202`:

```json
{
  "id": "crr_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "namespace": "acme",
  "name": "api/server",
  "full_name": "registry.pantechdynamics.com/acme/api/server",
  "description": "description",
  "visibility": "private",
  "immutable_tags": true,
  "retention": {
    "keep_last": 1,
    "untagged_after_days": 1,
    "keep_pattern": "keep-pattern"
  },
  "tag_count": 1,
  "storage_bytes": 1,
  "last_pushed_at": "2026-10-03T09:30:00Z",
  "status": "active",
  "suspended_reason": null,
  "created_at": "2026-10-03T09:30:00Z",
  "updated_at": "2026-10-03T09:30:00Z",
  "version": 1
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope, or it is an AI app's key without `delete`. Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key is not an owner or admin. Use a key created by one.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REPOSITORY_NOT_FOUND`: no repository with this id in your organization. List your repositories to find it.
- `409`: `REPOSITORY_SUSPENDED`: an operator suspended the repository. Contact support.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List a repository's tags

```http
GET /public/v1/registry/repositories/{repository_id}/tags
```

The repository's tags, newest push first, each with the image it points at: digest, media type, size and platforms.

Scope: `read`.

Path parameters:

- `repository_id`: The repository's id (`crr_…`).

Query parameters:

- `q` (string): Only tags whose name contains this text, at most 255 characters. At most 255 characters.
- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/registry/repositories/crr_06gk3x9tq7m2v8r4y1c5d0zp8w/tags" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "name": "v1.4.2",
      "digest": "sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "media_type": "application/vnd.oci.image.index.v1+json",
      "size_bytes": 1610612736,
      "platforms": [
        "linux/amd64",
        "linux/arm64"
      ],
      "pushed_at": "2026-10-03T09:30:00Z",
      "last_pulled_at": "2026-10-03T09:30:00Z",
      "immutable": true
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_FILTER`: a query parameter is not valid. `detail` names it and what it takes.
`INVALID_CURSOR`: the cursor is not valid for this list and these filters. Start again without a cursor.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is no longer an active member. Use another key.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REPOSITORY_NOT_FOUND`: no repository with this id in your organization. List your repositories to find it.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Get a tag

```http
GET /public/v1/registry/repositories/{repository_id}/tags/{tag}
```

One tag and the image it points at.

Scope: `read`.

Path parameters:

- `repository_id`: The repository's id (`crr_…`).
- `tag`: The tag, such as `v1.4.2` or `latest`.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/registry/repositories/crr_06gk3x9tq7m2v8r4y1c5d0zp8w/tags/v1.4.2" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "name": "v1.4.2",
  "digest": "sha256:9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "media_type": "application/vnd.oci.image.index.v1+json",
  "size_bytes": 1610612736,
  "platforms": [
    "linux/amd64",
    "linux/arm64"
  ],
  "pushed_at": "2026-10-03T09:30:00Z",
  "last_pulled_at": "2026-10-03T09:30:00Z",
  "immutable": true
}
```

Errors:

- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is no longer an active member. Use another key.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REPOSITORY_NOT_FOUND`: no repository with this id in your organization. List your repositories to find it.
`TAG_NOT_FOUND`: no tag with this name in the repository.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Delete a tag

```http
DELETE /public/v1/registry/repositories/{repository_id}/tags/{tag}
```

Removes the tag from the registry. The image stays while another tag points at it; untagged images are removed by the nightly clean-up. Refused for a repository with immutable tags. Owners and admins only.

**Scope:** `write`. Destructive: an AI app's key also needs `delete`.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `repository_id`: The repository's id (`crr_…`).
- `tag`: The tag, such as `v1.4.2` or `latest`.

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/registry/repositories/crr_06gk3x9tq7m2v8r4y1c5d0zp8w/tags/v1.4.2" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `202`: The tag was deleted. No body.

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope, or it is an AI app's key without `delete`. Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key is not an owner or admin. Use a key created by one.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REPOSITORY_NOT_FOUND`: no repository with this id in your organization. List your repositories to find it.
`TAG_NOT_FOUND`: no tag with this name in the repository.
- `409`: `TAG_IMMUTABLE`: the repository has immutable tags, so its tags cannot be deleted.
`REPOSITORY_SUSPENDED`: an operator suspended the repository. Contact support.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available, or could not be reached; nothing was changed. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## List registry tokens

```http
GET /public/v1/registry/tokens
```

Your organization's registry tokens, newest first, revoked ones included. Secrets are never shown again after creation.

Scope: `read`.

Query parameters:

- `limit` (integer): Items per page, 1 to 100. Defaults to 50. From 1 to 100. Defaults to `50`.
- `cursor` (string): The previous page's `next_cursor`, to get the next page. Leave out for the first page; keep the other parameters the same.

Example:

```sh
curl "https://api.pantechdynamics.com/public/v1/registry/tokens" \
  -H "Authorization: Bearer $PANTECH_API_KEY"
```

Response `200`:

```json
{
  "data": [
    {
      "id": "prt_06gk3x9tq7m2v8r4y1c5d0zp8w",
      "name": "github-actions",
      "permission": "pull",
      "repositories": [
        "repositories"
      ],
      "expires_at": "2026-10-03T09:30:00Z",
      "last_used_at": "2026-10-03T09:30:00Z",
      "created_at": "2026-10-03T09:30:00Z",
      "revoked_at": "2026-10-03T09:30:00Z"
    }
  ],
  "next_cursor": "eyJhdCI6IjIwMjYtMTAtMDNUMDk6MzA6MDBaIiwiaWQiOiJ2bV8wNmdrIn0"
}
```

Errors:

- `400`: `INVALID_CURSOR`: the cursor is not valid for this list and these filters. Start again without a cursor.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `read` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is no longer an active member. Use another key.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Create a registry token

```http
POST /public/v1/registry/tokens
```

Creates a credential for CI systems and clusters that works only for the registry, never for the Pantech API. `permission` is `pull` or `push` (push includes pull); `repositories` limits it to some repositories of your namespace (empty for all of them); `expires_at` is optional. The answer alone carries `secret`, `prt_…`: use it as the password of `docker login registry.pantechdynamics.com -u pantech`. It is shown once. Owners and admins are emailed about every new token. At most 50 active tokens per organization. Owners and admins only.

A token never carries more than the member creating it may do: a `pull` token needs `registry:Pull`, a `push` token `registry:Pull` and `registry:Push`, on every repository it lists, or, with `repositories` empty, on every repository at once (no deny of the action may apply to any repository). These are decided as the token will be used, without MFA and from any address. Every use is decided again, and a token stops for good when the member who created it leaves the organization.

**Idempotency:** a retry with the same `Idempotency-Key` returns the token the first request made with `secret` null, since the secret is never stored. The same key with a different request returns `409 IDEMPOTENCY_CONFLICT`.

Scope: `write`. Send an `Idempotency-Key` header.

Body:

- `name` (string, required): At most 64 characters.
- `permission` (string, required): One of `pull`, `push`.
- `repositories` (array of string): Repository names in your namespace, such as `api/server`; left out or empty for all of them. At most 100 items.
- `expires_at` (string): When it stops working (RFC 3339), at most 10 years away; left out for never.

Example:

```sh
curl -X POST "https://api.pantechdynamics.com/public/v1/registry/tokens" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "github-actions",
    "permission": "pull"
  }'
```

Response `201`:

```json
{
  "id": "prt_06gk3x9tq7m2v8r4y1c5d0zp8w",
  "name": "github-actions",
  "permission": "pull",
  "repositories": [
    "repositories"
  ],
  "expires_at": "2026-10-03T09:30:00Z",
  "last_used_at": "2026-10-03T09:30:00Z",
  "created_at": "2026-10-03T09:30:00Z",
  "revoked_at": "2026-10-03T09:30:00Z",
  "secret": "secret"
}
```

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
`INVALID_REQUEST_BODY`: the body is not a single valid JSON object. Send one JSON object with the fields documented for this endpoint.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope. Use a key with that scope.
`FORBIDDEN`: the member who created the key is not an owner or admin. Use a key created by one.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
`REGISTRY_TOKEN_LIMIT_REACHED`: your organization already has 50 active registry tokens. Revoke one first.
`ACCESS_DENIED`: an access policy refuses the key's member `registry:ManageTokens`, or the `registry:Pull` or `registry:Push` the token would carry on one of its repositories; `detail` names the action.
- `404`: `REGISTRY_NAMESPACE_NOT_SET`: your organization has not claimed a namespace yet. Claim one with `PUT /registry`.
- `409`: `IDEMPOTENCY_CONFLICT`: the `Idempotency-Key` was already used with a different request. Use a new key.
- `422`: `VALIDATION_FAILED`: a field is missing or invalid; `errors` names it.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
## Revoke a registry token

```http
DELETE /public/v1/registry/tokens/{token_id}
```

Revokes the token: it can no longer sign in, and registry sessions it opened end within 5 minutes. Owners and admins only.

**Idempotency:** revoking a revoked token succeeds again.

**Scope:** `write`. Destructive: an AI app's key also needs `delete`.

Scope: `write`. Send an `Idempotency-Key` header.

Path parameters:

- `token_id`: The registry token's id (`prt_…`).

Example:

```sh
curl -X DELETE "https://api.pantechdynamics.com/public/v1/registry/tokens/prt_06gk3x9tq7m2v8r4y1c5d0zp8w" \
  -H "Authorization: Bearer $PANTECH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

Response `204`: Revoked. No body.

Errors:

- `400`: `IDEMPOTENCY_KEY_REQUIRED`: the `Idempotency-Key` header is missing. Send a new unique value, such as a UUID, with every write.
`INVALID_IDEMPOTENCY_KEY`: the `Idempotency-Key` header is longer than 255 characters. Use a shorter value.
- `401`: `UNAUTHENTICATED`: the request has no API key, or the key is mistyped, revoked or expired, or its creator has left the organization. Send `Authorization: Bearer PAN_…` with a valid key; create one in the console under Organization › API keys.
- `403`: `INSUFFICIENT_SCOPE`: the API key lacks the `write` scope, or it is an AI app's key without `delete`. Use a key with that scope, or reconnect the AI app with "Manage and delete" access.
`FORBIDDEN`: the member who created the key is not an owner or admin. Use a key created by one.
`AI_APPS_DISABLED`: the organization has turned AI app access off, and this request was made with an AI app's key or sent by Pantech's MCP server. An owner can turn it on in the console under Organization › AI apps.
- `404`: `REGISTRY_TOKEN_NOT_FOUND`: no registry token with this id in your organization.
- `429`: `RATE_LIMITED`: this API key, verified user or organization used its request budget for the current window, or this address exceeded an IP/failed-auth limit. Wait `Retry-After` seconds, then retry. For authenticated quota denials, `RateLimit-Scope` identifies the denying quota and `RateLimit-Reset` reports its remaining window in seconds.
- `503`: `REGISTRY_UNAVAILABLE`: the container registry is not available on this deployment yet. Try again later.
`SERVICE_UNAVAILABLE`: request quota storage is unavailable. Wait a few seconds, then retry.
