Nepal DoIT Centralized SMS gateway

Integration for sending SMS via Nepal DoIT Centralized SMS gateway

From CHT version 4.22.0, SMS messages can be sent using the Nepal DoIT service.

Nepal DoIT configuration

Log in to the Nepal DoIT Gateway dashboard and get your “API Key” that you will use as the nepal-doit-api-key.

Next, save the nepal-doit-api-key in your CHT Core configuration as covered below.

CHT Core configuration

API keys

The integration uses the CHT Credentials service to retrieve the API key using the ID nepal_doit_sms:outgoing.

Use the CHT credentials API to securely store the credentials by running the commands below. Be sure to replace a valid user, pass and hostname in the command:

curl -X PUT -H "Content-Type: text/plain" https://<user>:<pass>@<hostname>/api/v1/credentials/nepal_doit_sms:outgoing -d 'nepal-doit-api-key'`

App settings

Update your app settings as follows.

{
  "sms": {
    "outgoing_service": "nepal-doit-sms",
    "nepal_doit_sms": {
      "url": "https://sms.doit.gov.np/api/sms"
    }
  }
}

Testing

Nepal DoIT SMS gateway does not provide a sandbox environment for testing. Once you get your API key, you can test your integration by sending a message to a valid phone number.


Build > Reference > app_settings.json > .sms

SMS Settings: Instructions and schema for defining SMS settings

Build > Forms > Configuring > App Form SMS

Trigger calls and SMS from within the form, or send an SMS once submitted

Build > Messaging > SMS States

Overview of the possible states of SMS messages

Build > Messaging > Message Loops

How to avoid messaging loops

Build > Messaging > Contact IDs

Using unique short codes to identify places and people via messaging

Last updated on

Did this documentation help you ?