VPS: Public Keys
Get public keys
Changed onDeprecated: account-level public keys have no direct replacement. Root SSH keys are now managed per virtual machine via GET /api/vps/v1/virtual-machines/{virtualMachineId}/ssh-keys.
Retrieve public keys associated with your account.
Use this endpoint to view available SSH keys for VPS authentication.
get/api/vps/v1/public-keys
Request
- Base URL: https://developers.hostinger.com
- URL: https://developers.hostinger.com/api/vps/v1/public-keys
- Auth: HTTP bearer
Query parameters
pageinteger
Example:1
Page number
Response
Success response
Example response
{
"data": [
{
"id": 325,
"name": "My public key",
"key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD..."
}
],
"meta": {
"current_page": 1,
"per_page": 15,
"total": 100
}
}Changes
- info
endpoint deprecated
- info