Skip to content

Delayed Delivery

Publishers can specify the time when the message should be processed and delivered to subscribers. This can be done in addition to all other publishing options (basic publish, with headers. Scheduled messages can be canceled at any time using the message cancellation API.

The value of timestamp in the request message body must be a Unix Timestamp, which is the number of milliseconds since the Epoch (January 1st, 1970 at UTC)

Request

curl -H Content-Type:application/json -X POST \  
-d '{ \  
  "message":"hello world!", \  
  "publishAt": timestamp **\**  
}' \  
-v https://api.backendless.com/APP-ID/REST-API-KEY/messaging/default

Response

{  
  "errorMessage":null,  
  "messageId":"message:37C81F70-9B7B-4CF8-FF24-3690D9054F00",  
  "status":"scheduled"  
}

The value of the messageId property can be used to obtain the message delivery status.