POST /dashboard/account/ssh-keys

Create SSH key

Adds a new SSH public key.

Request Body

namestringRequired

Name for the SSH key

keystringRequired

SSH public key

Response

200
400
successboolean

Request

curl -X POST "https://api.royalehosting.net/dashboard/account/ssh-keys" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-organization-id: YOUR_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{}'

Response

{
  "success": true
}