To send push notifications from your application you must perform a HTTP POST to the following endpoint:
http://127.0.0.1:43770/api/internal/messages
Push notifications are a paying service and before sending push notifications you must check if have enough credits via user.bluecherry.io/credits. If you don't have enough credits you can by a push notification credit package through the web shop on user.bluecherry.io/webshop.
Sending a push notification requires you to perform a POST request like in the following example:
POST /api/internal/messages HTTP/1.1
Host: 127.0.0.1:43770
Content-Type: application/json
Content-Length: 135
[
{
"type": 4,
"destination": "john@johndoe.com",
"message": "Hi, this is a test push notification"
}
]
Every communication request body is a JSON array, this array contains one or more JSON message objects. The message body for a push notification contains the following required fields: