- API v3 Introduction
- 3rd Party API Integrations
- DNS Integrations
- Server Integrations
- External Backup Storages
- List 3rd Party API IntegrationsGET
- 3rd Party API Integration ObjectGET
- Delete 3rd Party API IntegrationDELETE
- Servers
- Manage
- Health & Monitoring
- Databases
- Database Users
- System Users
- Deployment Keys
- Services
- Cron Job
- Supervisor
- SSH Keys
- SSH Session
- SSH Config
- Activity Logs
- Security - Firewall
- Security - Fail2Ban
- Settings - PHP
- Settings - Auto Security Update
- Settings - Change IP Address
- Web Applications
- Manage
- Domain Name
- SSL/TLS
- SSL Basic (WebApp SSL)
- SSL Advanced (Domain SSL) For Business/Enterprise
- Check SSL Method (Basic/Advanced) & AutoSSL Status
- Update/Change SSL Method (Basic/Advanced) & AutoSSL Status
- SSL Advanced – Install/Deploy Domain SSL
- SSL Advanced – Domain SSL Object
- SSL Advanced – Update Domain SSL Config
- SSL Advanced – Redeploy Domain SSL (Let’s Encrypt only)
- SSL Advanced – Delete Domain SSL
- Cloning
- Tools
- WordPress - RunCloud Hub
- WordPress - Staging
- WordPress - General Settings
- Activity Logs
- Settings
- Backup
- Atomic Deployment
- Static Data
Add SSH Key
POST
/servers/{{serverId}}/ssh/credentials
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
label
string
required
username
string
required
publicKey
string
required
temporary
boolean
optional
Example
{
"label": "ali-ssh",
"username": "root",
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDkT5cCaJpylLmPFAz0ptBcMsW6LuncfCtCQjUBRttzWZgAAFpmIMj8OqGo+fcZbvw/Tlro3wekxI74v1Vbvu9A70FsGNfGK6F2PRpB8HiWWXn/D8qyhVVyKrU9CCCfFOJTb6U69lQo0epDWuCQxpFfLO3du77TZMW/hEMMahXgpfZ7GZAf9EsLmrOX20xN/mplduB3FiEB+uM0jGx+WhuCFxxdJYxLsUHqS4nIsYFfMRHx43gwSHMLW691JffAgCG6s4fvYX9UsmxJ4GPzI5Z6nTmIbt34KTraKO33/TZjl34w26VBopTfnKTDHI8Jxq4AX9FC3Md3l9lQ7aIp+ys6RcDBWaEP/tV7WnsOoxsokitv1RfJnCsPmlNhyCq1+HNXsIUuMW/BV5IZpsX9B54NIn2kfo7kTgY35lf6Y7TS7M6WlR2kgvl1L34zc21x3QeYQsYf05GzXtRZDuDyKwfdU1u2zSREuLyDOGPCiZZ3a4KV7mdlH53U7KvVQG/twF0= [email protected]",
"temporary": false
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST 'https://manage.runcloud.io/api/v3/servers/{{serverId}}/ssh/credentials' \
--header 'Content-Type: application/json' \
--data-raw '{
"label": "ali-ssh",
"username": "root",
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDkT5cCaJpylLmPFAz0ptBcMsW6LuncfCtCQjUBRttzWZgAAFpmIMj8OqGo+fcZbvw/Tlro3wekxI74v1Vbvu9A70FsGNfGK6F2PRpB8HiWWXn/D8qyhVVyKrU9CCCfFOJTb6U69lQo0epDWuCQxpFfLO3du77TZMW/hEMMahXgpfZ7GZAf9EsLmrOX20xN/mplduB3FiEB+uM0jGx+WhuCFxxdJYxLsUHqS4nIsYFfMRHx43gwSHMLW691JffAgCG6s4fvYX9UsmxJ4GPzI5Z6nTmIbt34KTraKO33/TZjl34w26VBopTfnKTDHI8Jxq4AX9FC3Md3l9lQ7aIp+ys6RcDBWaEP/tV7WnsOoxsokitv1RfJnCsPmlNhyCq1+HNXsIUuMW/BV5IZpsX9B54NIn2kfo7kTgY35lf6Y7TS7M6WlR2kgvl1L34zc21x3QeYQsYf05GzXtRZDuDyKwfdU1u2zSREuLyDOGPCiZZ3a4KV7mdlH53U7KvVQG/twF0= [email protected]",
"temporary": false
}'
Responses
🟢200Success
application/json
Body
id
integer
required
label
string
required
user
string
required
publicKey
string
required
temporary
boolean
required
created_at
string
required
Example
{
"id": 7,
"label": "ali-ssh",
"user": "root",
"publicKey": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDkT5cCaJpylL...",
"temporary": false,
"created_at": "2024-07-23 05:04:20"
}
Modified at 2025-01-31 08:25:32