⚡ API Reference

Dokumentasi API Replai.id

Integrasikan WhatsApp, WABA, Chatbot, dan CRM ke sistem Anda.

BASE URLhttps://chat.replai.id
Lihat Referensi Lengkap di Postman
Navigation
🔐 Authentication
POSTLoginPOSTRegisterPOSTLogout
💬 WhatsApp — Pesan
GETGet ContactsGETGet Chat ListGETGet Detail ChatPOSTSend MessagePOSTSend With Template
⚙️ WhatsApp — Misc
POSTRead MessagePOSTDelete MessageGETDownload MediaGETGet Profile PhotoPOSTMark Chat Read
📱 Device
GETCheck ConnectionGETGet Templates
📢 WABA — Broadcast
POSTSimple SendPOSTSend Template
🔔 Webhook
POSTMessage CallbackPOSTWebhook Sample

🔐 Autentikasi

Semua endpoint memerlukan token Bearer. Tambahkan header berikut di setiap request:

Authorization: Bearer <your_token>

Token didapatkan dari endpoint Login. Token berlaku selama sesi aktif.

🔐 Authentication

POST /api/login
Login

Dapatkan token autentikasi

Parameter: email, password
Lihat Contoh Lengkap →
POST /api/register
Register

Daftarkan akun baru

Parameter: name, email, password
Lihat Contoh Lengkap →
POST /api/logout
Logout

Invalidate token sesi aktif

Parameter: Bearer token
Lihat Contoh Lengkap →

💬 WhatsApp — Pesan

GET /api/wa/contacts
Get Contacts

Ambil semua kontak WA

Parameter: device_id
Lihat Contoh Lengkap →
GET /api/wa/chats
Get Chat List

Daftar semua percakapan aktif

Parameter: device_id
Lihat Contoh Lengkap →
GET /api/wa/chat/{phone}
Get Detail Chat

Riwayat pesan satu kontak

Parameter: device_id, phone
Lihat Contoh Lengkap →
POST /api/wa/send
Send Message

Kirim pesan teks ke nomor WA

Parameter: device_id, phone, message
Lihat Contoh Lengkap →
POST /api/wa/send-template
Send With Template

Kirim pesan dengan template

Parameter: device_id, phone, template_id
Lihat Contoh Lengkap →

⚙️ WhatsApp — Misc

POST /api/wa/read
Read Message

Tandai pesan sebagai dibaca

Parameter: device_id, message_id
Lihat Contoh Lengkap →
POST /api/wa/delete
Delete Message

Hapus pesan (for me/everyone)

Parameter: device_id, message_id, type
Lihat Contoh Lengkap →
GET /api/wa/media
Download Media

Unduh file media dari chat

Parameter: device_id, message_id
Lihat Contoh Lengkap →
GET /api/wa/photo/{phone}
Get Profile Photo

Foto profil kontak WA

Parameter: device_id, phone
Lihat Contoh Lengkap →
POST /api/wa/mark-read
Mark Chat Read

Tandai seluruh chat sebagai dibaca

Parameter: device_id, phone
Lihat Contoh Lengkap →

📱 Device

GET /api/device/status
Check Connection

Status koneksi device WA

Parameter: device_id
Lihat Contoh Lengkap →
GET /api/device/templates
Get Templates

Daftar template pesan tersimpan

Parameter: device_id
Lihat Contoh Lengkap →

📢 WABA — Broadcast

POST /api/waba/send
Simple Send

Kirim pesan WABA sederhana

Parameter: phone, message, waba_id
Lihat Contoh Lengkap →
POST /api/waba/send-template
Send Template

Kirim pesan WABA dengan template Meta

Parameter: phone, template_name, params, waba_id
Lihat Contoh Lengkap →

🔔 Webhook

POST /webhook/message
Message Callback

Endpoint menerima pesan masuk

Parameter: Konfigurasi di dashboard
Lihat Contoh Lengkap →
POST /webhook/sample
Webhook Sample

Contoh payload webhook Replai

Parameter: Lihat dokumentasi lengkap
Lihat Contoh Lengkap →
📖 Butuh Contoh Kode?

Dokumentasi lengkap dengan contoh cURL, JavaScript, Python, PHP tersedia di Postman.

Buka Postman Docs →