# createAccessTokenRequest


[API catalog](/reference/api/) · [Docker Hub overview](/reference/api/hub/latest/) · [Product manual](https://docs.docker.com/docker-hub/) · [OpenAPI specification](/reference/api/hub/latest.yaml)

API version: 2-beta



Schema constraints and annotations:

```json
{
  "examples": [
    {
      "scopes": [
        "repo:read"
      ],
      "token_label": "My read only token"
    }
  ],
  "properties": {
    "expires_at": {
      "description": "Optional expiration date for the token.\nIf omitted, the token will remain valid indefinitely.\n",
      "example": "2021-10-28T18:30:19.520861Z",
      "format": "date-time",
      "type": "string"
    },
    "scopes": {
      "description": "Valid scopes: \"repo:admin\", \"repo:write\", \"repo:read\", \"repo:public_read\"\n",
      "example": [
        "repo:read"
      ],
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "token_label": {
      "description": "Friendly name for you to identify the token.",
      "example": "My read only token",
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    }
  },
  "required": [
    "token_label",
    "scopes"
  ],
  "type": "object"
}
```



