Send SMS Template
Send SMS Template
Send an SMS using a predefined template
POST
Send SMS Template
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. Eithertemplate_name or template_id must be provided to identify the template.
Headers
string
required
Your API key for authentication.
string
required
Your workspace ID for authentication.
Body
string
required
The phone number with a country prefix to which the message will be sent. Required. Must be in international format without the leading plus sign (+) or any spaces, dashes, or other special characters. Format: country code followed by the phone number. Example:
919876543210 (India: country code 91 + number 9876543210).string
required
Type of connectivity for the message. Supported routes:
promotional, transactional, or otp.string
required
The registered and approved sender name to be used for the message. You can add and manage sender IDs in Zixflow SMS Settings.
string
required
The name of the SMS template to use. You can add and manage SMS templates in Zixflow SMS Content.
object
required
Key-value pairs for template variables. Keys should match the variable names in the template, and values will replace the placeholders.
boolean
Optional. Set this parameter to
true if you want to send a flash SMS via the API; otherwise, set it to false. Flash SMS appears directly on the screen. Default: false.string
(Optional) To receive post-back notifications about the sent message as it is delivered or failed. When a message status changes (delivered, failed, etc.), a notification will be sent to this URL. See Postback Notifications for the payload format and field descriptions.
string
(Optional) The data that will be sent back on the post_back_url with the notification. This can be used as an identifier for the sent message if the client wants to track or correlate messages with their own system. See Postback Notifications for how it appears in the notification.
Response
boolean
Indicates whether the request was successful. true if the request was accepted and queued, false otherwise.
string
Success message when the request succeeded, or error message when it failed.
string
Present only when success is true. Unique identifier for this request; use it for tracking and for correlating with postback notifications.