You can use POST method for sending notifications.
Request:
POST /api/notify?from=sam&to=John&room=Support&message=New Ticket Posted&color=C7EDFC&otr=0¬ify=1
Fields Description:
| Fields | Details |
|---|---|
| from | Sender’s Username or Email. |
| to | Receiver’s Username or Email. Optional, when room parameter is provided. |
| room | Room name, you want to send the notification. optional, when to parameter is provided. |
| message | Content of the message. |
| color | Background Color optional. Default value is #C7EDFC. |
| otr | Off-The-Record messages. 1 – ON. 0 – OFF. optional. Default value is 0. |
| notify | 1 – Trigger User Notification. 0 – No Notification. optional. Default value is 1. |
Response:
{
"success":true
}Actions with API Notifications
You can Reply / Forward / Star the received API notification.
