v1

latestOpenAPI 3.0.02026-07-2411724301.7 KB
Bulk SMS APIs

Send MKT/TXN/OTP SMS using GET method to multiple numbers

To send marketing messages use "type" value as "MKT". To send transactional messages use "type" value as "TXN". To send op messages use "type" value as "OTP". To send SMS to multiple numbers use Comma separated values in "to"

get/v1/{sid}/messages

Path parameters

sidstring required

Query parameters

tostring required

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

senderstring 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"

typestring

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

template_idstring

[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.

bodystring

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

callback_profile_idstring

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

campaign_namestring

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

refstring

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

ref1string

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

ref2string

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

Headers

api-keystring required

API Key generated by kaleyra.io. Example - Ac4XXXXX21f

Content-Typestring required

The format in which the data is sent.

Response

Successful response