SMS Configuration

Create an account on msg91 and login to get the authKey. Register the sender ID. Register the SMS template in the DLT portal and get a template ID. Add the approved template to the msg91 portal along with the template ID.

Use the below msg91 curl to verify sending the SMS:

curl --location --request POST 'https://api.msg91.com/api/v2/sendsms' \
--header 'accept: application/json' \
--header 'authkey: <authkey>' \
--header 'content-type: application/json' \
--data-raw '{
  "sender": "<senderid registered with DLT>",
  "route": "4",
  "country": "91",
  "unicode": 1,
  "sms": [
    {
      "message": "<message registered with DLT>",
      "to": [
        "<mobilenumber>"
      ]
    }
  ],
  "DLT_TE_ID": "<template id of the message registered with DLT>"
}'

smsTemplateConfig:

Once sending the SMS is verified using the above curl, configure the message template using the SystemSetting API in learner service using the below curl.

Note: Replace the <DLT_TE_ID> with the template ID of the message registered with DLT.

Verify the smsTemplateConfig by using the below curl:

Set the auth key and sender name as system env to user-org service, notification service and notification data pipeline job:

Last updated

Was this helpful?