Build > Reference > app_settings.json > .sms
SMS Settings: Instructions and schema for defining SMS settings
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.
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.
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'`
Update your app settings as follows.
{
"sms": {
"outgoing_service": "nepal-doit-sms",
"nepal_doit_sms": {
"url": "https://sms.doit.gov.np/api/sms"
}
}
}
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.
SMS Settings: Instructions and schema for defining SMS settings
Trigger calls and SMS from within the form, or send an SMS once submitted
Overview of the possible states of SMS messages
How to avoid messaging loops
Using unique short codes to identify places and people via messaging