curl --request POST \
--url https://api.royalti.io/ddex/delivery/deliver-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"messageIds": [
"<string>"
],
"priority": "normal",
"scheduleDelivery": "2023-11-07T05:31:56Z"
}
'{
"status": "<string>",
"data": {
"messageCount": 123,
"jobIds": [
"<string>"
],
"status": "queued_for_delivery",
"priority": "<string>",
"scheduledDeliveryAt": "2023-11-07T05:31:56Z"
}
}Queue delivery for multiple messages
curl --request POST \
--url https://api.royalti.io/ddex/delivery/deliver-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"messageIds": [
"<string>"
],
"priority": "normal",
"scheduleDelivery": "2023-11-07T05:31:56Z"
}
'{
"status": "<string>",
"data": {
"messageCount": 123,
"jobIds": [
"<string>"
],
"status": "queued_for_delivery",
"priority": "<string>",
"scheduledDeliveryAt": "2023-11-07T05:31:56Z"
}
}const response = await fetch('https://api.royalti.io/ddex/delivery/deliver-batch', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"messageIds": [
{}
],
"priority": "sample-priority",
"scheduleDelivery": "2024-01-21T12:00:00Z"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"