---
title: "Creates a limited-scope token for authenticating to the container registry and returns it."
method: POST
path: "/ccr/tokens"
tags: ["Ccr", "Container Registry"]
---

# Creates a limited-scope token for authenticating to the container registry and returns it.

`POST /ccr/tokens`

## Request body

- CCRTokenRequest
  - `alias` string — Alias for the new token, used to identify it.
  - `expires_at` string — Expiration timestamp of the token, in RFC3339 format.

## Response `200`

- CCRTokenResponse
  - `token` string — Token used to authenticate to the container registry.

## Other responses

- `400` — Error Bad Request
- `401` — Error Authentication Failed
- `500` — Error Internal Server

---

[API](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/versions/a3fd2dedc72b/schema)
