To optimise your bulk sending, you can pre-load recipients in a CSV file.
To create a recipient file, use the following method:
"description": "My customers list",
The file should contain — at minimum — a "number" column containing the recipients' mobile numbers.
You can define other columns that can be used to replace variables in your sending.
To send an SMS to all recipients in this file, simply call the following method:
"message": "Hello, Mr #NAME#. You are #AGE# years old.",
With this call, the three recipients will receive a custom message.
For example, Mr Dupont will receive the message "Hello, Mr Dupont. You are 47 years old."
By adding the "tag" parameter, you can also search SMS messages corresponding to this sending with the method:
Please note that the method https://api.ovh.com/1.0/sms/sms-aa1-1/jobs will not give you the IDs of SMS messages in this mode. The sending will be carried out asynchronously.