D

Docker Hub API

REST discovered

Details
URL
https://hub.docker.com
Spec
https://docs.docker.com/reference/api/hub/latest.yaml
Docs
https://docs.docker.com/reference/api/hub/latest/
Authentication
Docker account username api_key=<credential> + Docker personal access token (PAT) api_key=<credential> discovered
Docker account username compound

Use your existing Docker account username from Docker Home. It is paired with either a personal access token or an account password for some login flows; Docker Hub API auth endpoints require a username in the request body.

Docker personal access token (PAT) api_key Get key ↗

In Docker Home Personal access tokens, create a new token. Docker documents PATs in Personal access tokens. Use the PAT anywhere Docker asks for an access token; for Docker Hub API login flows it is sent as the password field together with your Docker username, and for CLI auth you can use it with docker login instead of an account password.

Docker organization access token (OAT) api_key discovered Get key ↗
Authorization: Bearer <credential>

Sign in to Docker Home, select your organization, then in the Admin Console open Access tokens and generate an organization access token as documented in Organization access tokens. These tokens are meant for automation and are scoped to organization resources.

Docker personal access token (PAT) api_key discovered Get key ↗
Authorization: Bearer <credential>