Sahabat SSH Dokumentasi API
Selamat Datang Di Halaman Dokumentasi
Pengenalan
Sahabat SSH menyediakan layanan tunneling seperti SSH,Trojan,VMess & VLess. Pada halaman ini akan dijelaskan tentang Dokumentasi API (Application Programming Interface) yang telah disediakan oleh Sahabat SSH. Dengan API ini kalian bisa mengelola semua layanan yang ada dengan otomatis dan langsung terhubung ke layanan kami.
Akun
Melihat informasi dari akun Sahabat SSH kamu.
Detail Akun
https://api.sahabatssh.com/v1/account
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
curl --location --request POST 'https://api.sahabatssh.com/v1/account?apikey=yourapikey'
{
"status": "success",
"account": {
"name": "Sahabat SSH",
"email": "[email protected]",
"balance": "332.579,39",
"point": "495"
}
}
Redeem Gift Code
https://api.sahabatssh.com/v1/redeem
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
code | Kode Gift |
curl --location --request POST 'https://api.sahabatssh.com/v1/redeem?apikey=yourapikey&code=SAHABATSSH-1234-5678-9012-3456'
{
"status": "success",
"account": {
"added_balance": "10000",
"time_redeem": "2021-08-09 21:57:23"
}
}
Buat Gift Code
https://api.sahabatssh.com/v1/create_code
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
ammount | Jumlah Nominal (Ex : 10000) |
curl --location --request POST 'https://api.sahabatssh.com/v1/create_code?apikey=yourapikey&ammount=10000'
{
"status": "success",
"account": {
"code": "SAHABATSSH-1234-5678-9012-3456",
"ammount": "10000",
"time_created": "2021-08-09 22:18:13"
}
}
Get Info Server
Melihat informasi domain host server
SSH
https://api.sahabatssh.com/v1/server/ssh
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
curl --location --request POST 'https://api.sahabatssh.com/v1/server/ssh?apikey=yourapikey'
{
"server_info": [
{
"id": "4",
"isp": "Sahabat Digital Service",
"server": "blabla.domain.com",
"country": "Indonesia"
}
]
}
Trojan
https://api.sahabatssh.com/v1/server/trojan
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
curl --location --request POST 'https://api.sahabatssh.com/v1/server/trojan?apikey=yourapikey'
{
"server_info": [
{
"id": "4",
"isp": "Sahabat Digital Service",
"server": "blabla.domain.com",
"country": "Indonesia"
}
]
}
VMess
https://api.sahabatssh.com/v1/server/vmess
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
curl --location --request POST 'https://api.sahabatssh.com/v1/server/vmess?apikey=yourapikey'
{
"server_info": [
{
"id": "4",
"isp": "Sahabat Digital Service",
"server": "blabla.domain.com",
"country": "Indonesia"
}
]
}
VLess
https://api.sahabatssh.com/v1/server/vless
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
curl --location --request POST 'https://api.sahabatssh.com/v1/server/vless?apikey=yourapikey'
{
"server_info": [
{
"id": "4",
"isp": "Sahabat Digital Service",
"server": "blabla.domain.com",
"country": "Indonesia"
}
]
}
SSH Monthly
Membuat langganan hingga mengelola akun ssh bulanan kamu.
Buat SSH (Monthly)
https://api.sahabatssh.com/v1/ssh/create_monthly
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
username_ssh | Username Login SSH |
password_ssh | Password Login SSH |
server | Pilih Server Dengan Input Domain Host (Ex : id002.ipcacom.xyz) |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/create_monthly?apikey=yourapikey&username_ssh=sahabatssh&password_ssh=12345678&server=sgdo001.ipcasa.xyz'
{
"status": "success",
"ssh_account": {
"host": "id001.ipcacom.xyz",
"ip_address": "103.77.107.253",
"username_ssh": "sahabatssh",
"password_ssh": "12345678",
"date_creation": "2021-08-10 14:41:56",
"date_expiration": "2021-09-09 14:41:56",
"total_payment": "10000",
"type": "monthly",
"isp": "Indonesia Premium 1"
}
}
Ubah Username SSH (Monthly)
https://api.sahabatssh.com/v1/ssh/username_monthly
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
id_service | ID SSH bisa di lihat di menu 'Layanan Saya' -> 'SSH/OVPN Monthly' disana akan tertera ID SSH Kamu |
new_username | Username Baru |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/username_monthly?apikey=yourapikey&id_service=1234&new_username=newsahabat'
{
"status": "success",
"ssh_account": "Username SSH Berhasil Di Ubah!"
}
Ubah Password SSH (Monthly)
https://api.sahabatssh.com/v1/ssh/password_monthly
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
id_service | ID SSH bisa di lihat di menu 'Layanan Saya' -> 'SSH/OVPN Monthly' disana akan tertera ID SSH Kamu |
new_password | Password Baru |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/password_monthly?apikey=yourapikey&id_service=1234&new_password=newsahabat'
{
"status": "success",
"ssh_account": "Password SSH Berhasil Di Ubah!"
}
Ubah Server SSH (Monthly)
https://api.sahabatssh.com/v1/ssh/change_server
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
id_service | ID SSH bisa di lihat di menu 'Layanan Saya' -> 'SSH/OVPN Monthly' disana akan tertera ID SSH Kamu |
server | Pilih Server Dengan Input Domain Host (Ex : id002.ipcacom.xyz) (Hanya Bisa Untuk Server Sama Harga) |
new_password | Password Baru Untuk Login SSH Di Server Baru |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/change_server?apikey=yourapikey&id_service=1234&server=sgdo001.ipcasa.xyz&new_password=pass1234'
{
"status": "success",
"ssh_account": "Server SSH Berhasil Di Ubah!"
}
Get Info SSH ( Monthly)
https://api.sahabatssh.com/v1/ssh/info_monthly
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
id_service | ID SSH bisa di lihat di menu 'Layanan Saya' -> 'SSH/OVPN Monthly' disana akan tertera ID SSH Kamu |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/info_monthly?apikey=yourapikey&id_service=1234'
{
"status": "success",
"ssh_account": {
"id_service": "1234",
"host": "sgdosg001.ipcasa.xyz",
"ip_address": "68.183.225.18",
"isp": "Digital Ocean (SGDO)",
"username_ssh": "sahabatssh",
"date_creation": "2021-12-22 16:44:44",
"date_expiration": "2022-11-02 16:44:44",
"auto_renew": "false",
"type": "monthly"
}
}
SSH Hourly (Pay As Go)
Membuat langganan hingga mengelola akun ssh perjam kamu (Pay As Go).
Buat SSH (Hourly)
https://api.sahabatssh.com/v1/ssh/create_hourly
Parameter | Deskripsi |
---|---|
apikey | API Key Kamu |
username_ssh | Username Login SSH |
password_ssh | Password Login SSH |
server | Pilih Server Dengan Input Domain Host (Ex : id002.ipcacom.xyz) |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/create_hourly?apikey=yourapikey&username_ssh=sahabatssh&password_ssh=12345678&server=sgdo001.ipcasa.xyz'
{
"status": "success",
"ssh_account": {
"host": "id001.ipcacom.xyz",
"ip_address": "103.77.107.253",
"username_ssh": "sahabatssh",
"password_ssh": "12345678",
"date_creation": "2021-08-10 14:58:31",
"next_hourly_time": "2021-08-10 15:58:31",
"total_payment": "20",
"type": "hourly",
"isp": "Indonesia Premium 1"
}
}
Ubah Username SSH (Hourly)
https://api.sahabatssh.com/v1/ssh/username_hourly
Body | Deskripsi |
---|---|
apikey | API Key Kamu |
id_ssh | ID SSH bisa di lihat di menu 'Layanan Saya' -> 'SSH/OVPN Hourly' disana akan tertera ID SSH Kamu |
new_username | Username Baru |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/username_hourly' \
--form 'apikey=yourapikey' \
--form 'id_ssh=2211' \
--form 'new_username=user'
{
"status": "success",
"ssh_account": "Username SSH Berhasil Di Ubah!"
}
Ubah Password SSH (Hourly)
https://api.sahabatssh.com/v1/ssh/password_hourly
Body | Deskripsi |
---|---|
apikey | API Key Kamu |
id_ssh | ID SSH bisa di lihat di menu 'Layanan Saya' -> 'SSH/OVPN Hourly' disana akan tertera ID SSH Kamu |
new_password | Password Baru |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/password_hourly' \
--form 'apikey=yourapikey' \
--form 'id_ssh=2211' \
--form 'new_password=1234567'
{
"status": "success",
"ssh_account": "Password SSH Berhasil Di Ubah!"
}
Stop SSH (Hourly)
https://api.sahabatssh.com/v1/ssh/stop_ssh
Body | Deskripsi |
---|---|
apikey | API Key Kamu |
id_ssh | ID SSH bisa di lihat di menu 'Layanan Saya' -> 'SSH/OVPN Hourly' disana akan tertera ID SSH Kamu |
curl --location --request POST 'https://api.sahabatssh.com/v1/ssh/stop_ssh' \
--form 'apikey=yourapikey' \
--form 'id_ssh=2211'
{
"status": "success",
"ssh_account": "Stop SSH Berhasil!"
}