curl --location --request POST '/v1/api/dispatch' \
--header 'X-API-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
"message": {
"languageDefault": "en",
"translations": {
"en": {
"contents": [
{
"text": {
"body": "Hello {{firstname}}! This is a simple SMS test."
}
}
]
}
}
},
"recipients": [
{
"recipientIdentifiers": [
{
"channelIdType": "MSISDN",
"channelIdentifier": "+39347XXXXXXX"
}
],
"placeholders": {
"firstname": "Mark"
}
},
{
"recipientIdentifiers": [
{
"channelIdType": "MSISDN",
"channelIdentifier": "+39349XXXXXXX"
}
],
"placeholders": {
"firstname": "Robert"
}
}
],
"channels": {
"sms": {
"senderId": "{{SMS_SENDER_ID}}"
}
},
"countryCodeFixEnabled": true,
"countryCodeDefault": "IT"
}'