RumahOTP Developer API
Integrasikan layanan pembelian nomor virtual (Nokos), pemantauan kode OTP SMS internasional secara instan, serta pembuatan invoice deposit QRIS otomatis langsung ke bot WhatsApp, bot Telegram, panel web, atau aplikasi Anda.
Panduan Autentikasi API Key
Setiap permintaan ke REST API RumahOTP wajib menyertakan header HTTP X-API-Key. Kunci API dapat dibuat dan dikelola di halaman Profil Pengguna.
1. Header Request Wajib
X-API-Key: rotp_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json
2. Fitur Keamanan IP Whitelist
Untuk melindungi akun Anda dari pencurian API Key, server RumahOTP menerapkan firewall IP Whitelist:
- 0.0.0.0 : Mengizinkan panggilan API dari semua alamat IP server (sangat cocok untuk bot di cloud hosting dinamis seperti Heroku, Railway, Vercel, VPS).
- IP Spesifik : Batasi pemanggilan hanya dari server Anda, contoh:
103.123.45.67, 103.123.45.68.
Mengambil data profil pengguna, saldo akun terkini, total bonus referral, role, dan konfigurasi IP whitelist.
Contoh Request (cURL):
curl -X GET "https://rumahotp.xyz/api/v1/profile" \
-H "X-API-Key: YOUR_API_KEY"
Contoh Response Sukses (200 OK):
{
"success": true,
"message": "Profil pengguna berhasil diambil",
"data": {
"name": "Budi Developer",
"username": "budi_dev",
"email": "budi@gmail.com",
"role": "member",
"saldo": 50000,
"bonus_referral": 2500,
"referral_code": "ROTP-8899",
"ip_whitelist": "0.0.0.0",
"verified": true
}
}
Mengambil daftar lengkap seluruh layanan aplikasi yang didukung (WhatsApp, Telegram, Shopee, TikTok, Google, Discord, dll).
| Parameter Query | Tipe | Wajib | Keterangan |
|---|---|---|---|
q |
string | Opsional | Kata kunci pencarian nama atau kode aplikasi (contoh: whatsapp). |
category |
string | Opsional | Kategori: chat, ecommerce, crypto, wallet, medsos. |
curl -X GET "https://rumahotp.xyz/api/v1/nokos/services?q=whatsapp" \
-H "X-API-Key: YOUR_API_KEY"
Mengambil daftar 120+ negara internasional lengkap beserta country ID, kode ISO, dial code (+62, +1, +44), dan pengali tarif.
curl -X GET "https://rumahotp.xyz/api/v1/nokos/countries" \
-H "X-API-Key: YOUR_API_KEY"
Mengambil daftar operator seluler yang tersedia (Random, Telkomsel, Indosat, XL, Tri, Axis, Smartfren).
curl -X GET "https://rumahotp.xyz/api/v1/nokos/operators" \
-H "X-API-Key: YOUR_API_KEY"
Mengambil daftar pilihan server/jalur OTP (VIP Super Fast, Dedicated High Rate, Hemat Ekonomis) dengan perhitungan harga real-time sesuai negara & service yang dipilih.
| Query Param | Tipe | Wajib | Keterangan |
|---|---|---|---|
service |
string | Opsional | Kode service (default: whatsapp). |
country_id |
string | Opsional | ID negara (default: 6 untuk Indonesia). |
curl -X GET "https://rumahotp.xyz/api/v1/nokos/servers?service=whatsapp&country_id=6" \
-H "X-API-Key: YOUR_API_KEY"
Membeli nomor virtual baru secara otomatis. Saldo akun akan dipotong sesuai harga server yang dipilih.
| Body (JSON) | Tipe | Wajib | Keterangan |
|---|---|---|---|
service |
string | Wajib | Kode produk layanan, contoh: whatsapp, telegram, shopee. |
country_id |
string | Opsional | ID negara (default: 6 untuk Indonesia). |
operator |
string | Opsional | Nama operator seluler (default: any). |
server_id |
string | Opsional | Pilihan server: srv_vip, srv_gold, srv_standard. |
{
"service": "whatsapp",
"country_id": "6",
"operator": "any",
"server_id": "srv_vip"
}
Contoh Response Sukses (200 OK):
{
"success": true,
"message": "Pesanan nomor virtual berhasil dibuat",
"data": {
"order_id": "ROTP-M8X9P123",
"service": "WhatsApp",
"service_code": "whatsapp",
"country": "Indonesia (+62)",
"phone_number": "+6281273948501",
"price": 2330,
"status": "pending",
"sms": null,
"otp": null,
"expires_at": "2026-11-02T23:45:00.000Z",
"created_at": "2026-11-02T23:30:00.000Z"
}
}
Memeriksa status pesanan nomor virtual dan membaca kode SMS OTP yang diterima secara real-time.
| Query Param | Tipe | Wajib | Keterangan |
|---|---|---|---|
order_id |
string | Wajib | ID pesanan yang diterima saat pemesanan (contoh: ROTP-M8X9P123). |
curl -X GET "https://rumahotp.xyz/api/v1/nokos/status?order_id=ROTP-M8X9P123" \
-H "X-API-Key: YOUR_API_KEY"
Contoh Response OTP Masuk:
{
"success": true,
"data": {
"order_id": "ROTP-M8X9P123",
"service": "WhatsApp",
"country": "Indonesia (+62)",
"phone_number": "+6281273948501",
"status": "received",
"otp": "849201",
"sms_text": "Kode verifikasi WhatsApp Anda adalah 849-201. Jangan bagikan kode ini.",
"expires_at": "2026-11-02T23:45:00.000Z"
}
}
Membatalkan pesanan nomor virtual jika belum menerima SMS/OTP. Saldo akun akan dikembalikan 100% secara otomatis (Auto Refund).
| Body (JSON) | Tipe | Wajib | Keterangan |
|---|---|---|---|
order_id |
string | Wajib | ID pesanan yang ingin dibatalkan. |
curl -X POST "https://rumahotp.xyz/api/v1/nokos/cancel" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"order_id": "ROTP-M8X9P123"}'
Membuat invoice pembayaran QRIS otomatis seketika 24 jam nonstop untuk top up saldo akun.
| Body (JSON) | Tipe | Wajib | Keterangan |
|---|---|---|---|
amount |
number | Wajib | Nominal deposit dalam Rupiah (minimal Rp 5.000). |
curl -X POST "https://rumahotp.xyz/api/v1/deposit/create" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"amount": 25000}'
Contoh Response Sukses (200 OK):
{
"success": true,
"message": "Invoice QRIS deposit otomatis berhasil dibuat.",
"data": {
"transaction_id": "TX-ROTP-M8X9P445",
"amount": 25000,
"total_pay": 25000,
"qris_content": "00020101021226670016ID.CO.QRIS...",
"qris_image": "https://rumahotp.xyz/api/deposit?action=qris_image&id=TX-ROTP-M8X9P445",
"status": "pending",
"expired_at": "2026-11-03T00:00:00.000Z"
}
}
Memeriksa status pembayaran invoice QRIS. Jika pembayaran terdeteksi, saldo akun otomatis ditambahkan.
| Query Param | Tipe | Wajib | Keterangan |
|---|---|---|---|
transaction_id |
string | Wajib | ID transaksi deposit yang didapatkan dari create QRIS. |
curl -X GET "https://rumahotp.xyz/api/v1/deposit/status?transaction_id=TX-ROTP-M8X9P445" \
-H "X-API-Key: YOUR_API_KEY"
Membatalkan invoice transaksi deposit yang masih berstatus pending.
| Body (JSON) | Tipe | Wajib | Keterangan |
|---|---|---|---|
transaction_id |
string | Wajib | ID transaksi deposit yang ingin dibatalkan. |
curl -X POST "https://rumahotp.xyz/api/v1/deposit/cancel" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"transaction_id": "TX-ROTP-M8X9P445"}'
Interactive Live API Tester
Uji coba langsung endpoint API RumahOTP dari peramban Anda secara langsung.
Live Response:
// Tekan tombol 'Kirim Request Uji Coba' untuk melihat respon nyata dari server RumahOTP...