Template SMS
Send SMS using predefined templates
In order to use predefined templates, register a template in your panel. once the template has been reviewed you can use the template using the following API
Template SMS
POST
https://api.bitel.rest/api/v2/sms/template
Request Body
PhoneNumber
string
The target phone number
Params
array
The parameters to replace variables in template
TemplateId
number
The id of the template in Bitel panel
Sample Request
Sample Response
Getting SMS Status
In order to get the detail of a request, including the delivery status, price and more please refer to Sms Status API.
Error Codes
Code
Description
InvalidRequest
Submitted data is invalid or missing, most likely the phone number
TemplateFormatError
The template variables don't match the given parameters, usually the number of parameters is less than the variables
InvalidTemplate
The template doesn't exist
TemplatePending
The template hasn't yet been reviewed
Last updated