Send SMS Using a Template

SMS is a simple and cost-effective way to communicate with customers. Before starting to send the SMS APIs, make sure that you have configured the SMS channel in kaleyra.io. This section details how to send your outbound SMS using an API request. To send marketing messages use "type" value as "MKT". To send transactional messages use "type" value as "TXN". To send otp messages use "type" value as "OTP". Note: Select the base URL by clicking the arrow next to the Base URL (right pane).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
Form Data
string
required

It contains a phone number, Numbers Separated by “,“ comma OR It can have a list of numbers in an Array. For example - 9188XXXXXXXX.

string
required

Sender ID used for sending SMS. The sender must be in the form of a tag when used in template-based sending. For example - "KLRHXA"

string

[Conditional] Body of the SMS. It is required if template_id is not provided.

string

[Conditional] Template ID for pre-registered templates. Required if the body is not provided. template_id must be 12 to 30 digits and exist as a tag.

string

Type of the SMS (for example, transactional). type must exist as a tag if using template-based sending.

string

URL for callbacks. Callback must exist as a tag if using template-based sending.

string

Data to replace template placeholders. template_data must be a key-value pair JSON structure with each value under 30 characters.

string

Name of the campaign. Must match regex pattern ^[\w-]*$.

string

Custom reference fields for the message, up to 150 characters each.

string

Custom reference fields for the message, up to 150 characters each.

string

Custom reference fields for the message, up to 150 characters each.

Headers
string
required

API Key generated by kaleyra.io. Example - Ac4XXXXX21f

Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!



© 2026 Kaleyra Inc. All rights reserved.
Trademarks, logos and service marks displayed on this site are registered and unregistered trademarks of Kaleyra Inc.