Sender IDs

List approved IDs from the API. Apply for a new one in the dashboard.

Scope sms:send. List approved IDs you can pass to POST /send/with-sender-id. To request a new sender ID, apply in the dashboard under Sender IDs. MessengerNepal reviews the request. You can send with that ID after it is approved. In sandbox, the sender SANDBOX is always available, and your account sender IDs can be used for testing.

Request: GET /api/v1/sms/sender-ids

bash

curl -X GET "https://api.messengernepal.com.np/api/v1/sms/sender-ids" \
  -H "X-API-Key: msnp_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

Response: approved sender IDs

json

{
  "success": true,
  "data": {
    "allowed_sender_ids": ["Msngr_test", "SANDBOX"],
    "default_sender_id": "Msngr_test",
    "sender_ids": [
      {
        "sender_id": "Msngr_test",
        "type": "alphanumeric",
        "access_mode": "shared",
        "status": "approved"
      }
    ]
  }
}