Semua request API memerlukan API Key yang dikirim melalui Bearer Token.
Authorization: Bearer YOUR_API_KEY
Endpoint untuk mengirim pesan WhatsApp.
POST https://api.nns.id/v1/whatsapp/send
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"to": "6281234567890",
"type": "text",
"text": "Hello from NNS!"
}
{
"success": true,
"message_id": "wamid.xxx",
"status": "sent"
}
Endpoint untuk mengirim SMS.
POST https://api.nns.id/v1/sms/send
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY
{
"to": "6281234567890",
"message": "Your OTP is 123456",
"sender": "NNS"
}
Konfigurasi webhook untuk menerima notifikasi real-time.
{
"event": "message.received",
"from": "6281234567890",
"timestamp": "2026-01-15T10:30:00Z",
"message": {
"type": "text",
"text": "Hello"
}
}