Quick start

Create a key, send one SMS, then follow delivery.

1. In the dashboard go to API Integration, then API Token, and click Add Token. Choose Sandbox while you integrate. Live requires a Package or Enterprise plan (not Flex), plus approved dashboard KYC (individual or company) and live API approval. Copy the key immediately. It is shown only once. Creating a key does not revoke existing keys.

2. Send the key on every request:

Header

text

X-API-Key: msnp_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

3. POST to https://api.messengernepal.com.np/api/v1/sms/send. A successful send returns 202 with dispatch_id, job_id, and message_id (same value). In sandbox, open Sandbox inbox in the dashboard. For live traffic, use the dashboard or webhooks.

Request: sandbox send

bash

curl -X POST "https://api.messengernepal.com.np/api/v1/sms/send" \
  -H "X-API-Key: msnp_test_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: unique-client-id-1" \
  -d '{
    "to": "98XXXXXXX",
    "message": "Your Content Here!"
  }'

Response: 202 Accepted (sandbox)

json

{
  "success": true,
  "message": "SMS accepted for delivery",
  "data": {
    "dispatch_id": "661f0a1b2c3d4e5f67890123",
    "job_id": "661f0a1b2c3d4e5f67890123",
    "message_id": "661f0a1b2c3d4e5f67890123",
    "status": "accepted",
    "environment": "sandbox",
    "charged": false,
    "recipient": "98XXXXXXX",
    "cost": 1,
    "remaining_balance": 999,
    "remaining_credits": 999
  }
}