v13

OpenAPI 3.1.02026-08-033122950.3 KB
container

Registry token

Mints a short-lived EdDSA JWT for the HuggingFace container registry, verifiable via the JWK at /api/keys/jwt.

get/api/registry/token

Query parameters

servicestring required

Registry service identifier — placed in the JWT aud claim.

string
OR
string[]

Response

Docker Distribution v2 token response — see https://distribution.github.io/distribution/spec/auth/jwt/

tokenstring required

EdDSA JWT signed by the moon JWT key, carrying access[].

access_tokenstring required

Identical to token — Docker Distribution v2 accepts either field.

expires_ininteger required

JWT lifetime in seconds.

issued_atstring date-time required

ISO-8601 timestamp at which the JWT was minted.