GET
/dashboard/account/ssh-keys List SSH keys
Returns all SSH keys registered by the user.
Response
200
successbooleandataarrayRequest
curl -X GET "https://api.royalehosting.net/dashboard/account/ssh-keys" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "x-organization-id: YOUR_ORG_ID"Request
const response = await fetch("https://api.royalehosting.net/dashboard/account/ssh-keys", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
},
});
const data = await response.json();Request
import requests
response = requests.get(
"https://api.royalehosting.net/dashboard/account/ssh-keys",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"x-organization-id": "YOUR_ORG_ID",
}
)
print(response.json())Response
{
"success": true,
"data": [
{
"id": 1,
"name": "My Laptop",
"key": "ssh-rsa AAAAB3NzaC1yc2E...",
"user_id": 123,
"created_at": "2024-01-15T10:30:00Z"
}
]
}