Skip to content

Basic Publish

The following example publishes a message to the default channel:

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":"hello world!"}' \  
-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.