Webhooks
Version 1.0
For provision of access to the setting of webhooks, please, contact with our Support Team.
Your server must return HTTP 200 status if the request is received successfully.
Webhooks can trigger the third-party solution on the following events occurred:

Event: Conversation is unassigned

Trigger when a conversation status changed to unassigned
1
{
2
"webhook":"on_conversation_unassigned",
3
"conversation":{
4
"id":181,
5
"application":"telegrambot",
6
"status":"unassigned",
7
"date_created":1513351579,
8
"date_updated":1513353161,
9
"from_user":{
10
"user_id":374,
11
"role":"default",
12
"title":"Yuri Dzabaev",
13
"avatar":"https://app.blinger.io/images/users/no-user.png",
14
"page_title":"Blinger – Messengers for business", //only for livechat
15
"page_url":"https://blinger.io", //only for livechat
16
"status":"enabled",
17
"service_user_id":"ta4ta4",
18
"date_created":1513262192
19
}
20
}
21
}
Copied!

Event: Conversation is assigned to operator

Trigger when a conversation is assigned to operator.
1
{
2
"webhook":"on_conversation_assigned",
3
"conversation":{
4
"id":180,
5
"application":"telegrambot",
6
"status":"inbox",
7
"date_created":1513350728,
8
"date_updated":1513351289,
9
"operator":{
10
"id":11,
11
"name":"Supervisor",
12
13
},
14
"from_user":{
15
"user_id":374,
16
"role":"default",
17
"title":"Yuri Dzabaev",
18
"avatar":"https://app.blinger.io/images/users/no-user.png",
19
"page_title":"Blinger – Messengers for business", //only for livechat
20
"page_url":"https://blinger.io", //only for livechat
21
"status":"enabled",
22
"service_user_id":"ta4ta4",
23
"date_created":1513262192
24
}
25
}
26
}
Copied!

Event: Conversation is closed

Trigger when a conversation is closed.
1
{
2
"webhook":"on_conversation_closed",
3
"conversation":{
4
"id":181,
5
"application":"telegrambot",
6
"status":"closed",
7
"date_created":1513351579,
8
"date_updated":1513353917,
9
"operator":{
10
"id":11,
11
"name":"Supervisor",
12
13
},
14
"from_user":{
15
"user_id":374,
16
"role":"default",
17
"title":"Yuri Dzabaev",
18
"avatar":"https://app.blinger.io/images/users/no-user.png",
19
"page_title":"Blinger – Messengers for business", //only for livechat
20
"page_url":"https://blinger.io", //only for livechat
21
"status":"enabled",
22
"service_user_id":"ta4ta4",
23
"date_created":1513262192
24
}
25
"messages":[
26
{
27
"id":634,
28
"from_blinger_user_id":547,
29
"to_blinger_user_id":374,
30
"from_user_id":547,
31
"to_user_id":374,
32
"type":"text",
33
"application":"telegrambot",
34
"message":"123",
35
"blinger_message_id":4717,
36
"date_created":1513353914,
37
"status":"sent",
38
"is_outgoing":true,
39
"is_inner_message":false,
40
"from_user_name":null,
41
"to_user_name":"Yuri Dzabaev",
42
"fromBlingerUser":{
43
"id":299,
44
"service_blinger_id":18,
45
"blinger_user_id":547,
46
"is_active":true,
47
"date_updated":1513346127,
48
"date_created":1513346127,
49
"tags":"[]",
50
"name":null,
51
"role":"customer",
52
"avatar":null,
53
"application":"telegrambot",
54
"service_user_id":null,
55
"status":"enabled"
56
},
57
"toBlingerUser":{
58
"id":294,
59
"service_blinger_id":18,
60
"blinger_user_id":374,
61
"is_active":true,
62
"date_updated":1513262192,
63
"date_created":1513262192,
64
"tags":null,
65
"name":"Yuri Dzabaev",
66
"role":"default",
67
"avatar":"https://app.blinger.io/images/users/no-user.png",
68
"application":"telegrambot",
69
"service_user_id":"ta4ta4",
70
"status":"enabled"
71
}
72
}
73
],
74
"tags":[
75
{
76
"id":"id",
77
"title":"test1",
78
"message_id":"634"
79
},
80
{
81
"id":"id",
82
"title":"test1",
83
"message_id":"634"
84
},
85
{
86
"id":"id",
87
"title":"test1",
88
"message_id":"634"
89
}
90
],
91
'close_group' => [
92
'title' => 'Duplicate',
93
],
94
}
95
}
Copied!

Event: Incoming message

Trigger when a new incoming message received.
1
{
2
"webhook":"on_message_incoming",
3
"from_user_id":481,
4
"to_user_id":542,
5
"message_id":546,
6
"message_blinger_id":4627,
7
"conversation_id":173,
8
"conversation_token":"G67iEBrRWGx6tz1Q84X5kREL2UhGC8XxzmbLszr60fLep_l6hjGghQ5Umdvac_8U",
9
"operator":{
10
"id":11, // null if conversation is not assigned to operator
11
"name":"Supervisor", // null if conversation is not assigned to operator
12
"email":"[email protected]" // null if conversation is not assigned to operator
13
},
14
"from_user":{
15
"user_id":481,
16
"role":"default",
17
"title":"Yuri Dzabaev",
18
"avatar":"https://app.blinger.io/images/users/no-user.png",
19
"page_title":"Blinger – Messengers for business", //only for livechat
20
"page_url":"https://blinger.io", //only for livechat
21
"status":"enabled",
22
"application":"vk",
23
"service_user_id":"101786025",
24
"date_created":1513329664
25
},
26
"to_user":{
27
"user_id":542,
28
"role":"customer",
29
"title":null,
30
"avatar":null,
31
"status":"enabled",
32
"application":"vk",
33
"service_user_id":null,
34
"date_created":1513329654
35
},
36
"message":{
37
"id":546,
38
"from_user_id":481,
39
"to_user_id":542,
40
"type":"text",
41
"application":"vk",
42
"date_created":1513338128,
43
"message":"test",
44
"tags":["tag1", "tag2"]
45
}
46
}
Copied!

Event: Outgoing message

Trigger when a new outgoing message received
1
{
2
"webhook":"on_message_outgoing",
3
"from_user_id":542,
4
"to_user_id":481,
5
"message_id":545,
6
"message_blinger_id":4626,
7
"conversation_id":173,
8
"conversation_token":"G67iEBrRWGx6tz1Q84X5kREL2UhGC8XxzmbLszr60fLep_l6hjGghQ5Umdvac_8U",
9
"operator":{
10
"id":11,
11
"name":"Supervisor",
12
13
},
14
"from_user":{
15
"user_id":542,
16
"role":"customer",
17
"title":null,
18
"avatar":null,
19
"page_title":"Blinger – Messengers for business", //only for livechat
20
"page_url":"https://blinger.io", //only for livechat
21
"status":"enabled",
22
"application":"vk",
23
"service_user_id":null,
24
"date_created":1513329654
25
},
26
"to_user":{
27
"user_id":481,
28
"role":"default",
29
"title":"Yuri Dzabaev",
30
"avatar":"https://app.blinger.io/images/users/no-user.png",
31
"page_title":"Blinger – Messengers for business", //only for livechat
32
"page_url":"https://blinger.io", //only for livechat
33
"status":"enabled",
34
"application":"vk",
35
"service_user_id":"101786025",
36
"date_created":1513329664
37
},
38
"message":{
39
"id":545,
40
"from_user_id":542,
41
"to_user_id":481,
42
"type":"text",
43
"application":"vk",
44
"date_created":1513337982,
45
"message":"123",
46
"tags":["tag1", "tag2"]
47
}
48
}
Copied!

Event: Incoming comment

Trigger when a new incoming comment received
1
{
2
"webhook":"on_comment_incoming",
3
"from_user_id":481,
4
"to_user_id":542,
5
"comment_id":546,
6
"comment_blinger_id":4627,
7
"conversation_id":173,
8
"conversation_token":"G67iEBrRWGx6tz1Q84X5kREL2UhGC8XxzmbLszr60fLep_l6hjGghQ5Umdvac_8U",
9
"operator":{
10
"id":11, // null if conversation is not assigned to operator
11
"name":"Supervisor", // null if conversation is not assigned to operator
12
"email":"[email protected]" // null if conversation is not assigned to operator
13
},
14
"from_user":{
15
"user_id":481,
16
"role":"default",
17
"title":"Yuri Dzabaev",
18
"avatar":"https://app.blinger.io/images/users/no-user.png",
19
"status":"enabled",
20
"application":"vk",
21
"service_user_id":"101786025",
22
"date_created":1513329664
23
},
24
"to_user":{
25
"user_id":542,
26
"role":"customer",
27
"title":null,
28
"avatar":null,
29
"status":"enabled",
30
"application":"vk",
31
"service_user_id":null,
32
"date_created":1513329654
33
},
34
"comment":{
35
"id":546,
36
"from_user_id":481,
37
"to_user_id":542,
38
"reply_comment_id":544,
39
"type":"text",
40
"post_id":"123123",
41
"post_url":"https://vk.com/id1?w=wall1_2307813",
42
"post_title":"Пост из вк",
43
"application":"vk",
44
"date_created":1513338128,
45
"message":"test"
46
}
47
}
Copied!

Event: Outgoing comment

Trigger when a new outgoing comment received
1
{
2
"webhook":"on_comment_outgoing",
3
"from_user_id":542,
4
"to_user_id":481,
5
"comment_id":545,
6
"comment_blinger_id":4626,
7
"conversation_id":173,
8
"conversation_token":"G67iEBrRWGx6tz1Q84X5kREL2UhGC8XxzmbLszr60fLep_l6hjGghQ5Umdvac_8U",
9
"operator":{
10
"id":11,
11
"name":"Supervisor",
12
13
},
14
"from_user":{
15
"user_id":542,
16
"role":"customer",
17
"title":null,
18
"avatar":null,
19
"status":"enabled",
20
"application":"vk",
21
"service_user_id":null,
22
"date_created":1513329654
23
},
24
"to_user":{
25
"user_id":481,
26
"role":"default",
27
"title":"Yuri Dzabaev",
28
"avatar":"https://app.blinger.io/images/users/no-user.png",
29
"status":"enabled",
30
"application":"vk",
31
"service_user_id":"101786025",
32
"date_created":1513329664
33
},
34
"comment":{
35
"id":545,
36
"from_user_id":542,
37
"to_user_id":481,
38
"reply_comment_id":544,
39
"type":"text",
40
"post_id":"123123",
41
"post_url":"https://vk.com/id1?w=wall1_2307813",
42
"post_title":"Пост из вк",
43
"application":"vk",
44
"date_created":1513337982,
45
"message":"123"
46
}
47
}
Copied!

Event: New client

Trigger when a new user is created
1
{
2
"webhook":"on_user_new",
3
"user":{
4
"id":294,
5
"blinger_user_id":374,
6
"name":"Yuri Dzabaev",
7
"avatar":"https://app.blinger.io/images/users/no-user.png",
8
"application":"telegrambot",
9
"service_user_id":"ta4ta4",
10
"date_created":1513262192
11
}
12
}
Copied!
Last modified 8mo ago