Send a different SMS to each recipient
Sends a different message to each recipient in one request, for example with each customer's name or balance. Returns a batchId and a messageId per recipient for delivery tracking.
Authorization
basicAuth Base64 of API ID:API Key.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v1/messages/batch/personalized/send" \ -H "Content-Type: application/json" \ -d '{ "From": "AbrantieCo", "personalizedRecipients": [ { "To": "233501431586", "Content": "Hi Pheezy, thank you for all you do for this business" }, { "To": "233501431586", "Content": "Hi Joe, thank you for all you do for this business" } ] }'{ "batchId": "18ee6a2a-29ac-41c6-b70f-de809b040584", "status": 0, "data": [ { "recipient": "233501431586", "content": "Hi Pheezy, thank you for all you do for this business", "messageId": "350fd34d-dce1-4694-a4c9-d9b97d1f4593" }, { "recipient": "233546335113", "content": "Hi Joe, thank you for all you do for this business", "messageId": "f58e7f2a-203a-4079-a518-7f6647099b5e" } ]}Send the same SMS to many recipients POST
Sends one message to a list of recipients and returns a `batchId` plus a `messageId` per recipient.
Send an SMS with a GET request GET
Sends one SMS with credentials and content in the query string. Prefer **Send an SMS** (POST): query strings may be recorded in server logs and expose your client secret.