Skip to content

Repeated Publish

Backendless supports repeated message processing - a message is published once, but is delivered to subscribers with the specified frequency. Repeated delivery will stop either at the specified time unless it is canceled 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

Important

Make sure to replace xxxx in the domain name in the sample request below to the one assigned to your application.

curl -H Content-Type:application/json -X POST \  
-d '{ \  
  "message":"this is a recurring message!", \  
  "repeatEvery": 20, \  
  "repeatExpiresAt": timestamp \  
}' \  
-v https://xxxx.backendless.app/api/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.