Bulk SMS APIs

Send SMS using XML

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". To send SMS to multiple numbers use Comma separated values in "to"

post/v1/{sid}/messages/xml

Request

  • Base URL
    api.in.kaleyra.io (relative, and the document’s source URL is not known)
  • URL
    api.in.kaleyra.io/v1/{sid}/messages/xml
  • Auth
    none declared. Required headers: api-key, Content-Type

Path parameters

sidstring required

Headers

api-keystring required

API Key generated by kaleyra.io. Example - Ac4XXXXX21f

Content-Typestring required

The format in which the data is sent.

Request body */*

string required

Example request

"\" <api>\\r\\n     <channel>sms</channel>\\r\\n     <from>{{sender_id}}</from>\\r\\n     <body>{{body}}</body>\\r\\n     <sms>\\r\\n         <to>{{to}}</to>\\r\\n         <body>{{body}}</body>\\r\\n     </sms>\\r\\n     <sms>\\r\\n         <to>{{to}}</to>\\r\\n     </sms>\\r\\n </api>\\r\\n\""

Response

Successful response

Changes

No recorded changes to this operation across all 2 revisions of this API.