Chapter 5. renewBootstrapToken
Rotate the programmatic bootstrap OAuth token.
5.1. POST /api/v1/bootstrap/renew Copy linkLink copied to clipboard!
Renew the bootstrap token and write the new token value to BOOTSTRAP_TOKEN_PATH or the configured Kubernetes Secret. The previous bootstrap token is invalidated immediately. The response does not include the new token value; read it from the configured storage location after renewal.
This endpoint is available only when FEATURE_PROGRAMMATIC_BOOTSTRAP is true.
Authorizations: Bearer token (bootstrap token)
5.2. Request body Copy linkLink copied to clipboard!
No request body.
5.3. Responses Copy linkLink copied to clipboard!
| HTTP Code | Description | Schema |
|---|---|---|
| 200 | Successful renewal |
|
| 401 | Invalid, missing, or expired bootstrap token | |
| 403 | Unauthorized access |
When the bootstrap token is expired, renewal is accepted only from localhost. On Kubernetes and OpenShift Container Platform, use port forwarding and ensure the request includes the X-Quay-Bootstrap-Renewal-Location: local header set by the ingress layer.
5.4. Example command Copy linkLink copied to clipboard!
$ curl -X POST "https://<quay-server.example.com>/api/v1/bootstrap/renew" \
-H "Authorization: Bearer <bootstrap_token>"
Example response
{"status": "rotated"}