Request a message dispatch
It creates a multi-channel and multi-language message for multiple recipients. Please note that there is a limit of 1000 recipients per request.
Body
Required
Dispatch request payload
-
message
object Multilanguage, multichannel message. Required if template is not specified
Additional properties are allowed.
-
template
object Required if message is not specified
Additional properties are allowed.
-
recipients
array[object] Required -
scheduleDate
string(date-time) Optional scheduled date and time for a deferred message delivery in UTC format (e.g., 'yyyy-MM-dd'T'HH:mm:ss'Z'). Must be in the future and no more than 365 days from the current date. If null, the message will be sent immediately and cannot be cancelled. A scheduled dispatch can be cancelled only up to 5 minutes before the specified date and time.
-
countryCodeFixEnabled
boolean Set true if you want to fix msisdn numbers with the countryCodeDefault. If numbers in the recipient list don't have interational prefix, set this flag to true otherwise recipients with invalid numbers will be skipped.
-
countryCodeDefault
string Required if countryCodeFixEnabled is true
-
channels
object Channels parameters. Required if message is specified, ignored for template.
Additional properties are allowed.
-
metadata
object Optional custom metadata linked to the dispatch. Sent as 'dispatchMetadata' parameter of "Message Status Update" webhook.
-
webhookUrl
string Optional URL to which status updates for sent messages will be delivered as webhook callbacks. The URL must use the HTTPS protocol to ensure secure communication.
Maximum length is
255
. -
webhookSecret
string Optional secret key used to sign webhook callbacks. If provided, each webhook request will include a signature header computed using HMAC-SHA256 with this secret, allowing the recipient to verify the integrity and authenticity of the payload.
Minimum length is
16
, maximum length is64
.
curl \
--request POST 'https://api.nifteem.com/v1/api/dispatch' \
--header "X-API-Key: $API_KEY" \
--header "Content-Type: application/json" \
--data '{"message":{"translations":{"en":{"contents":[{"text":{"body":"Hello {{firstname}}! This is a simple SMS test."}}]}},"languageDefault":"en"},"channels":{"sms":{"senderId":"{{SMS_SENDER_ID}}"}},"recipients":[{"placeholders":{"firstname":"Mark"},"recipientIdentifiers":[{"channelIdType":"MSISDN","channelIdentifier":"+39347XXXXXXX"}]},{"placeholders":{"firstname":"Robert"},"recipientIdentifiers":[{"channelIdType":"MSISDN","channelIdentifier":"+39349XXXXXXX"}]}],"countryCodeDefault":"IT","countryCodeFixEnabled":true}'
{
"message": {
"translations": {
"en": {
"contents": [
{
"text": {
"body": "Hello {{firstname}}! This is a simple SMS test."
}
}
]
}
},
"languageDefault": "en"
},
"channels": {
"sms": {
"senderId": "{{SMS_SENDER_ID}}"
}
},
"recipients": [
{
"placeholders": {
"firstname": "Mark"
},
"recipientIdentifiers": [
{
"channelIdType": "MSISDN",
"channelIdentifier": "+39347XXXXXXX"
}
]
},
{
"placeholders": {
"firstname": "Robert"
},
"recipientIdentifiers": [
{
"channelIdType": "MSISDN",
"channelIdentifier": "+39349XXXXXXX"
}
]
}
],
"countryCodeDefault": "IT",
"countryCodeFixEnabled": true
}
{
"message": {
"translations": {
"en": {
"contents": [
{
"text": {
"body": "Hello {{firstname}}! This is a simple RCS with SMS fallback test."
}
}
]
}
},
"languageDefault": "en"
},
"channels": {
"rcs": {
"senderId": "{{RCS_SENDER_ID}}"
},
"sms": {
"senderId": "{{SMS_SENDER_ID}}"
}
},
"recipients": [
{
"placeholders": {
"firstname": "Mark"
},
"recipientIdentifiers": [
{
"channelIdType": "MSISDN",
"channelIdentifier": "+39347XXXXXXX"
}
]
},
{
"placeholders": {
"firstname": "Robert"
},
"recipientIdentifiers": [
{
"channelIdType": "MSISDN",
"channelIdentifier": "+39349XXXXXXX"
}
]
}
]
}
{
"message": {
"translations": {
"en": {
"contents": [
{
"text": {
"body": "Hello {{firstname}}! this is a reminder for your appointment on {{date}} at {{time}}. Call us at +39 02 000XXXXX"
}
}
],
"channelContents": {
"rcs": [
{
"text": {
"body": "Hello {{firstname}}, this is a reminder for your appointment on {{date}} at {{time}} with {{doctorname}} at {{location}}. Please arrive 10 minutes early. Need to reschedule or have questions? Call us at +39 02 000XXXXX . See you soon!"
}
}
]
}
}
},
"languageDefault": "en"
},
"channels": {
"rcs": {
"senderId": "{{RCS_SENDER_ID}}"
},
"sms": {
"senderId": "{{SMS_SENDER_ID}}"
}
},
"recipients": [
{
"placeholders": {
"date": "14/02/2025",
"time": "14:14",
"location": "Via Roma, 48 - Milano",
"firstname": "Mark",
"doctorname": "Dr. John Smith"
},
"recipientIdentifiers": [
{
"channelIdType": "MSISDN",
"channelIdentifier": "+39347XXXXXXX"
}
]
}
]
}
{
"template": {
"id": "0K2QG0XXXXXX"
},
"recipients": [
{
"placeholders": {
"date": "31/01/2025",
"time": "14:14",
"firstname": "Mark"
},
"recipientIdentifiers": [
{
"channelIdType": "MSISDN",
"channelIdentifier": "39347XXXXXXX"
}
]
}
],
"countryCodeDefault": "IT",
"countryCodeFixEnabled": true
}
{
"dispatchId": "0K0FHMEJ4DPFZ",
"scheduleDate": "2025-03-05T12:00:10Z",
"rejectedRecipients": []
}