Description
This endpoint allows you to send an SMS using a predefined template. Templates can include variables that are replaced with actual values when the SMS is sent. Either template_name or template_id must be provided to identify the template.
Your API key for authentication.
Your workspace ID for authentication.
Body
The phone number of the recipient in international format (e.g., “919876543210”).
The SMS route to use for sending. Supported routes: promotional, transactional, otp.
The sender ID to display on the recipient’s phone.
The name of the SMS template to use. Either template_name or template_id is required.
The ID of the SMS template to use. Either template_name or template_id is required.
Key-value pairs for template variables. Keys should match the variable names in the template, and values will replace the placeholders.
Whether to send as a flash SMS. Flash SMS appears directly on the screen without saving. Default: false
Optional URL to receive post-back notifications about the SMS status.
Optional data to include in post-back notifications.
Response
Indicates whether the call was successful. true if successful, false if not.
Success or error response message.
200-Success
400-Bad Request
401-Unauthorised
{
"success" : true ,
"message" : "SMS template sent successfully"
}