Devices
1
Connect
Disconnected
Messages Sent
0
API Gateway Status
API Server URL
Loading...
Connection Status
Checking...
Devices Management
| Device / Profile | Webhook URL | Security Token | Status | Action |
|---|---|---|---|---|
| Loading devices... | ||||
Send Test Message
Contact Management
| Name | Number | Group | Action |
|---|---|---|---|
| No contacts found. Click "Add Contact" to create one. | |||
Group Management
| Name | Action |
|---|---|
| No groups found. Click "Add Group" to create one. | |
WhatsApp Group List
| Id | Name |
|---|---|
| Please select a connected device above. | |
API Integration Documentation
POST
/send
Kirim pesan teks WhatsApp secara instan dengan skema kompatibilitas Fonnte (cocok untuk migrasi langsung dari layanan Fonnte).
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | Token otentikasi / API Key perangkat WhatsApp (tanpa 'Bearer' wajib). |
| Content-Type | String | Yes | Gunakan application/json atau application/x-www-form-urlencoded. |
Request Parameters (JSON Body)
| Parameter | Type | Required | Description |
|---|---|---|---|
| target / to | String | Yes | Nomor tujuan WhatsApp penerima (contoh: 628123456789). |
| message | String | Yes | Teks pesan yang ingin dikirimkan. |
Code Snippets
Loading...
Loading...
Loading...
Loading...
Responses Schema
200 OK (Success)
{
"status": true,
"reason": "Message sent successfully"
}
401 / 503 / 500 (Error)
{
"status": false,
"reason": "Unauthorized: Invalid API Key."
}
POST
/api/send-message
Kirim pesan teks WhatsApp terstruktur dengan format JSON dan kembalian respons berstruktur detail.
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | Token otentikasi berupa Bearer YOUR_API_KEY. |
| Content-Type | String | Yes | Harus bernilai application/json. |
Request Parameters (JSON Body)
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | String | Yes | Nomor tujuan WhatsApp penerima (contoh: 628123456789). |
| message | String | Yes | Teks pesan yang ingin dikirimkan. |
Code Snippets
Loading...
Loading...
Loading...
Loading...
Responses Schema
200 OK (Success)
{
"success": true,
"message": "Message dispatched successfully",
"id": "3EB0C1B2D953E2FC3EC8",
"to": "628123456789",
"timestamp": 1779348348
}
401 / 503 / 500 (Error)
{
"error": "Failed to send message: Device is not connected"
}
POST
/api/send-media
Kirim media (gambar, video, dokumen) menggunakan URL file yang dapat diakses publik.
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | Token otentikasi berupa Bearer YOUR_API_KEY. |
| Content-Type | String | Yes | Harus bernilai application/json. |
Request Parameters (JSON Body)
| Parameter | Type | Required | Description |
|---|---|---|---|
| to | String | Yes | Nomor tujuan WhatsApp penerima (contoh: 628123456789). |
| url | String | Yes | URL publik berkas media (contoh: https://placehold.co/600x400.png). |
| caption | String | No | Pesan keterangan yang dikirimkan bersama media. |
| type | String | No | Jenis media: image (default), video, atau document. |
Code Snippets
Loading...
Loading...
Loading...
Loading...
Responses Schema
200 OK (Success)
{
"success": true,
"message": "image message dispatched successfully",
"id": "3EB0C1B2D953E2FC3EC8",
"to": "628123456789",
"timestamp": 1779348348
}
400 / 401 / 503 (Error)
{
"error": "Unsupported media type. Use: 'image', 'video', 'document'"
}
GET
/api/devices/:deviceId/wa-groups
Dapatkan daftar grup WhatsApp yang diikuti oleh perangkat gateway tertentu secara langsung (live Baileys session).
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | Token otentikasi berupa Bearer YOUR_API_KEY. |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| deviceId | String | Yes | ID perangkat terdaftar (contoh: device_legacy). |
Code Snippets
Loading...
Loading...
Loading...
Loading...
Responses Schema
200 OK (Success)
{
"success": true,
"groups": [
{
"id": "1203630234567890@g.us",
"name": "Family Group"
}
]
}
503 Service Unavailable
{
"error": "Device is not connected or session not active"
}
GET
/api/status
Ambil status detail seluruh perangkat beserta status publik URL Cloudflare Tunnel gateway saat ini.
Request Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | String | Yes | Token otentikasi berupa Bearer YOUR_API_KEY. |
Code Snippets
Loading...
Loading...
Loading...
Loading...
Responses Schema
200 OK (Success)
{
"devices": [
{
"id": "device_legacy",
"name": "Default Device",
"apiKey": "wa_f1e2d3c4b5a697887766554433221100",
"webhookUrl": "",
"status": "CONNECTED",
"authenticated": true,
"hasQr": false,
"qr": null,
"phoneNumber": "628123456789",
"pushName": "CS WaApi",
"totalMessagesSent": 5
}
],
"publicUrl": "https://waapi.hsblink.web.id"
}
500 Server Error
{
"error": "Internal Server Error"
}