Push notifications

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:

  • type: '4' denotes that you want to send a push notification.
  • destination: this field contains the email address of the BlueCherry account owner to which you want to send a push notification. If multiple mobile devices are linked to the account, all devices will receive a notification at the same time.
  • message: this field contains the contents of the push notification.