Skip to main content
POST
/
sms
/
template
Send SMS with Template ID
curl --request POST \
  --url https://one.telepie.com/sms/template \
  --header 'apikey: <api-key>'

Request Body Parameters

sender
string
required
Originator/Alphanumeric ID
to
string
required
Recipient’s MSISDN
templateId
string
required
Unique ID of the template
type
string
required
TRANS
custom
object
required
If the template contains variables, pass a custom parameter value in the array with the number of variables present in the template data. Otherwise, pass the custom parameter with a blank array.
{
  "sender": "AOCAPI",
  "to": "91XXXXXXXXXX",
  "templateId": "150716565XXXXXXXXXX",
  "custom": ["var1", "var2"],
  "type": "TRANS"
}