Webhooks
Webhooks allows you to receive real-time HTTP notifications of changes to specific objects in Socialboards. For example, we could send you a notification when new ticket comes into the system or whenever they reply came to the existing ticket. This prevents you from having to query the API for changes that may or may not have happened.
Make sure you have the appropriate legal basis to collect and process client data before using webhooks.

Objects and Events

There are many types of objects in the Socialboards, such as Ticket objects and Reply objects, so whenever you configure a Webhook you must first choose an object type. Different objects support different events, so make sure you subscribe to events for that object type. Whenever such an event happens, we'll send you a notification.
Notifications are sent to you as HTTP POST requests and contain a JSON payload for that event. For example, let's say you set up a “Ticket” Webhook and subscribed to “Status changed” event. If the ticket’s status is changed from “pending” to “open”, we'll send you a notification that would look like this:
1
{
2
"CommunityName": "yourCompany",
3
"EventType": "ticket_status_change",
4
"Events": [{
5
"InboxLink": "https://inbox.socialboards.com/yourCompany/tickets?ticketId=4478963",
6
"PreviousTicketStatus": "open",
7
"Ticket": {
8
"Author": {
9
"Id": "35692164-bfaa-4c49-a23c-ecfa618f7d20",
10
"Name": "Robert Baker",
11
"Image": null,
12
"Email": "[email protected]",
13
"Status": "client",
14
"IsBot": false
15
},
16
"Category": {
17
"Id": 15721,
18
"Name": "Other cases",
19
"Parents": []
20
},
21
"CreationTime": "2019-12-17T08:03:48.318717+01:00",
22
"DetailedSource": "web_website",
23
"Id": 4478963,
24
"LastThreadElementCreationTime": "2019-12-17T08:10:03.8181291+01:00",
25
"LockedBy": null,
26
"Message": "I want to take my cat to a vet",
27
"OriginalLink": null,
28
"Properties": {
29
"IsAnonymized": false,
30
"IsMuted": false,
31
"HasAttachments": false,
32
"HasDraft": false,
33
"IsAssignedToBot": false,
34
"IsDeleted": false,
35
"IsExpired": false,
36
"IsHidden": false,
37
"IsLocked": false,
38
"IsSpam": false,
39
"IsSensitive": false
40
},
41
"ReplyCount": 1,
42
"Sentiment": "question",
43
"Source": "web",
44
"SourceName": null,
45
"Status": "pending",
46
"Title": "Cat is ill",
47
"HtmlMessage": "I want to take my cat to a vet"
48
},
49
"TicketId": 4478963
50
}
51
]
52
}
53
Copied!

HTTPS Servers

Webhooks are sent using HTTPS, so your server must be able to receive and process HTTPS requests, and it must have a valid TLS/SSL certificate installed. Self-signed certificates are not supported.

Setup

To use Webhooks, you will need to set up an endpoint on a secure (HTTPS) server, then add and configure the Webhooks product in your inbox settings. The rest of these documents explain how to complete both of these steps.
Last modified 1yr ago