Proses Integrasi WhatsApp API

1

Register & Pilih Paket

Daftar akun dan pilih paket WhatsApp API yang sesuai dengan kebutuhan bisnis Anda. Basic, Pro, atau Permanent License.

2

Verifikasi & Setup Nomor WhatsApp

Tim kami akan membantu proses verifikasi nomor WhatsApp Business Anda dan setup template pesan yang diperlukan.

3

Integrasi API

Gunakan API key Anda untuk mulai mengirim pesan. Dokumentasi lengkap tersedia untuk berbagai bahasa pemrograman.

4

Mulai Kirim Pesan

Anda siap mengirim pesan WhatsApp ke pelanggan! Pantau pengiriman melalui dashboard analitik real-time.

Contoh Kode Integrasi

<?php
$curl = curl_init();
curl_setopt_array($curl, [
    CURLOPT_URL => 'https://api.nns.id/v1/messages',
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => [
        'Authorization: Bearer YOUR_API_KEY',
        'Content-Type: application/json'
    ],
    CURLOPT_POSTFIELDS => json_encode([
        'to' => '6281234567890',
        'type' => 'text',
        'text' => 'Hello from NNS API!'
    ])
]);
$response = curl_exec($curl);
curl_close($curl);

SMS Gateway Integration

Integrasi SMS Gateway juga sangat mudah. Cukup gunakan HTTP API endpoint kami.

POST https://api.nns.id/v1/sms/send
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
    "to": "6281234567890",
    "message": "Your OTP is 123456",
    "sender": "NNS"
}