GET/hostinger/ssh-keys

List Hostinger account SSH keys

Lists SSH keys stored in the Hostinger account. Use this endpoint to review the account's available SSH keys when configuring a Hostinger VPS. The response contains the Hostinger account SSH keys.

5 status codes
200Returns a list of Hostinger account SSH keys.
401Returned when the request is unauthenticated.
messagestringoptional
403Returned when Hostinger denies access to the resource for the cloud provider token.
422Returned when validation fails.
429Returned when Hostinger's rate limit is exceeded.

Error handling

A 401 is returned when authentication is missing or invalid; a 403 is returned when Hostinger denies access for the cloud provider token; a 422 is returned when validation fails; and a 429 is returned when Hostinger's rate limit is exceeded. Use an authenticated request with a token authorized to access the requested Hostinger resource, and retry after rate limiting.