Create Templates

Create Templates

Create templates using post method under your account

API Endpoint

https://portal.mobtexting.com/api/v2/

POST

{endpoint}sms/template/create

PARAMETERS

Name Optional Descriptions
sender No Enter the approved sender-id under your account
name Yes Input the name of the template that you would like to refer with
body No Input the body of the sms(template)
template_id Mixed DLT Template id (required for india)

Example Request

curl -X POST \
  {endpoint}sms/template/create \
    -H 'Accept: application/json' \
    -H 'Authorization: Bearer 5b02112fb7xxxxxxxxx'
    -H 'Content-Type: application/x-www-form-urlencoded' \
    -d sender=TXTsms \
    -d name=test1 \
    -d 'body=testing sms 1'

Example Response

{
  "status": "OK",
  "message": "Template saved successfully"
}