API Keys
API keys provide programmatic access to the HarborGuard API for CI/CD integrations and automation.
Creating an API Key
- Navigate to Settings > API Keys
- Click Create API Key
- Enter a name and select registry scopes
- Copy the key — it will only be shown once
Key Format
API keys use the prefix hg_ followed by a random string. Authenticate by including the key in the X-API-Key header or as a Bearer hg_... token.
Rotation & Revocation
Rotate keys periodically and revoke compromised keys immediately from the API keys settings page.