GET/hetzner/ssh-keys

List Hetzner SSH keys

Lists SSH keys stored in a Hetzner account. Use cloud_provider_token_uuid to choose the cloud provider token, or use the deprecated cloud_provider_token_id query parameter as an alternative. Each result includes the key's numeric ID, name, fingerprint, and public key.

2 parameters
cloud_provider_token_uuidstringoptional
The UUID of the cloud provider token to use. Use this instead of `cloud_provider_token_id`.
cloud_provider_token_idstringoptional
The cloud provider token UUID. Deprecated; use `cloud_provider_token_uuid` instead.

3 status codes
200Returns an array of Hetzner SSH key objects, each with a numeric ID, name, fingerprint, and public key.
fingerprintstringoptional
idintegeroptional
namestringoptional
public_keystringoptional
401Returned when the request is unauthenticated.
messagestringoptional
404Returned when the requested Hetzner resource is not found.
messagestringoptional

Error handling

A 401 is returned when the request is unauthenticated. A 404 is returned when the Hetzner resource is not found. Provide either the cloud_provider_token_uuid query parameter or the deprecated cloud_provider_token_id query parameter to identify the cloud provider token.