Send Notification

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&notify=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 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.

Notification

Response:

{
"success":true
}