> For the complete documentation index, see [llms.txt](https://serpul.gitbook.io/serpul-app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://serpul.gitbook.io/serpul-app/manajemen-tenant/otp-sender/integrasi-ke-wablas.md).

# Integrasi ke Wablas

### Panduan Integrasi Serpul dengan Layanan OTP Wablas

#### Tahap 1: Persiapan Akun Wablas

1. Buka website: [https://wablas.com](https://wablas.com/)
2. Jika belum punya akun, klik **Register**, lalu daftar dulu.
3. Setelah berhasil daftar, login ke dashboard Wablas.
4. Pilih menu **Device / Perangkat**.
5. Klik tombol **Create New Device**, lalu:
   * Masukkan nama device
   * Masukkan nomor WhatsApp untuk pengiriman OTP
   * Pilih paket kuota sesuai kebutuhan
   * Klik **Buy with IDR** untuk lanjut ke pembayaran
6. Lanjutkan dan selesaikan proses pembayaran.
7. Setelah pembayaran berhasil, kembali ke menu **Device**.
8. Klik tombol **QR Code**, lalu scan QR menggunakan WhatsApp.

Pastikan Anda sudah berhasil menghubungkan akun WhatsApp ke Wablas.\
Jika sudah terhubung, silakan lanjut ke tahap berikutnya.

***

#### Tahap 2: Menghubungkan Akun Wablas ke Serpul

1. Login ke dashboard Serpul.
2. Masuk ke menu **OTP Sender**, lalu buka halaman **Pengaturan Sender WhatsApp**.
3. Pilih provider **Wablas**, lalu klik ikon **Edit**.
4. Masukkan **Domain API** dan **Token/API Key** yang didapat dari Wablas.

***

#### Cara Mendapatkan Domain API & Token dari Wablas

1. Login ke dashboard Wablas, lalu pilih menu **Device / Perangkat**.
2. Pilih device yang sudah terkoneksi dengan WhatsApp, lalu klik **Setting**.
3. Di form akan terlihat informasi berikut:
   * **Domain**: misalnya `https://deu.wablas.com`\
     → cukup salin `deu.wablas.com` saja
   * **Token/API Key**: salin kode token yang tersedia
4. Kembali ke dashboard Serpul, lalu:
   * Tempelkan Domain API ke kolom domain
   * Tempelkan Token API ke kolom token

***

#### Testing (Pengujian)

1. Di halaman OTP Sender Serpul, masukkan nomor WhatsApp tujuan di kolom **to**
2. Klik **Run Testing**
3. Jika muncul pesan error seperti ini:

```
{
  "status": false,
  "message": "Access denied: Your IP (128.191.111.111) is not authorized. Or need secret key"
}
```

4. Salin IP yang disebutkan, misalnya: `128.191.111.111`

***

#### Menambahkan IP ke Whitelist di Wablas

1. Kembali ke dashboard Wablas
2. Pilih device yang digunakan, lalu klik **Setting**
3. Masukkan IP tadi ke kolom **Whitelist IP**, lalu klik **Save / Simpan**

***

#### Finalisasi

1. Kembali ke dashboard Serpul
2. Simpan **Domain API** dan **Token API**
3. Jalankan testing lagi untuk memastikan integrasi berhasil

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://serpul.gitbook.io/serpul-app/manajemen-tenant/otp-sender/integrasi-ke-wablas.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
