Hugery.com
Search…
Webhooks
post
https://SUB_DOMAIN.hugery.com/api/external
/v1/webhooks
Create webhook
put
https://SUB_DOMAIN.hugery.com/api/external
/v1/webhooks/:id
Update webhook
delete
https://SUB_DOMAIN.hugery.com/api/external
/v1/webhooks/:id
Delete webhook

Webhook events

Event: messageCreated

1
{
2
"data": {
3
"aid": 584,
4
"cases": {
5
"aid": 52,
6
"id": "ce30af5f-9941-46e1-88ce-432a82486a5a",
7
"status": "new",
8
"updatedAt": 1588864833
9
},
10
"createdAt": 1588864832,
11
"endUser": {
12
"avatar": "https://static.hugery.com/200x200/bucket-blinger-helpdesk/1588864831223239/99497cc9dd3b7488a6c2a79132cb786a/image.jpg",
13
"avatarStub": false,
14
"id": "772aab4f-17df-4dc2-a3c9-2700440f758b",
15
"name": "Boris",
16
"nameColor": "#472679",
17
"updatedAt": 1588864832
18
},
19
"id": "30864389-9557-4e96-af71-582fd81982d3",
20
"messageContents": [
21
{
22
"content": "hello",
23
"file": null,
24
"id": "af30265f-0e97-4c65-a8db-d0910906ff01",
25
"status": "delivered",
26
"type": "text",
27
"updatedAt": 1588864833
28
}
29
],
30
"preview": {
31
"content": "123",
32
"type": "text"
33
},
34
"teamMember": null,
35
"updatedAt": 1588864832
36
},
37
"event": "messageCreated"
38
}
Copied!

Event: caseCreated

1
{
2
"data": {
3
"aid": 52,
4
"assignedTeamMember": null,
5
"closedAt": null,
6
"conversation": {
7
"channel": {
8
"id": "3686476d-9f8d-4967-abb0-c76aa641ac7f",
9
"label": "Telegram",
10
"title": "test123bot",
11
"type": "telegrambot",
12
"updatedAt": 1587376492
13
},
14
"id": "b7bd53ff-311f-4616-81fd-1c5922be3e94"
15
},
16
"createdAt": 1588864832,
17
"endUser": {
18
"aid": 233,
19
"avatar": "https://static.hugery.com/200x200/bucket-blinger-helpdesk/1588864831223239/99497cc9dd3b7488a6c2a79132cb786a/image.jpg",
20
"avatarStub": false,
21
"channelFields": {
22
"id": "2681123321",
23
"language": "en",
24
"name": "Boris",
25
"user_name": "username"
26
},
27
"createdAt": 1587477016,
28
"extraFields": [],
29
"id": "772aab4f-17df-4dc2-a3c9-2700440f758b",
30
"lastActivityAt": 1588864832,
31
"name": "Boris",
32
"nameColor": "#472679",
33
"updatedAt": 1588864832
34
},
35
"id": "ce30af5f-9941-46e1-88ce-432a82486a5a",
36
"lastMessage": {
37
"id": "30864389-9557-4e96-af71-582fd81982d3",
38
"preview": {
39
"content": "Hello!",
40
"type": "text"
41
},
42
"teamMember": null,
43
"updatedAt": 1588864832
44
},
45
"status": "new",
46
"team": null,
47
"updatedAt": 1588864833
48
},
49
"event": "caseCreated"
50
}
Copied!

Event: caseAssigned

1
{
2
"data": {
3
"aid": 48,
4
"assignedTeamMember": {
5
"avatar": "https://static.hugery.com/200x200/bucket-blinger-helpdesk/1586644129928170/4a460cb03ad82baf2dcf079acd549853/image.png",
6
"id": "d9033c86-a86e-474e-85a3-ccacc21ebc1d",
7
"name": "Ivan Ivanov",
8
"nameColor": "#9c791c",
9
"updatedAt": 1586644134
10
},
11
"closedAt": null,
12
"conversation": {
13
"channel": {
14
"id": "1220e87f-2d03-458b-8de1-7b71687d1839",
15
"label": "WhatsApp",
16
"title": "Hugery",
17
"type": "whatsapp",
18
"updatedAt": 1588259318
19
},
20
"id": "bfa7196b-fe1b-4050-adb0-61a5f20d8ebc"
21
},
22
"createdAt": 1588261504,
23
"endUser": {
24
"aid": 464,
25
"avatar": null,
26
"avatarStub": true,
27
"channelFields": {
28
"channel": "246dacc7-04dd-4f2f-9001-f56614c27abb",
29
"conversation": "346b51d7-fa29-4f87-bc61-28b175d93fb6",
30
"id": "375291231212",
31
"name": "Boris",
32
"phoneNumber": "375291231212"
33
},
34
"createdAt": 1588261504,
35
"extraFields": {
36
"phoneNumber": "375291722482"
37
},
38
"id": "5e897527-5023-4332-955e-de3dcff7bf7c",
39
"lastActivityAt": 1588261504,
40
"name": "375291722488",
41
"nameColor": "#27388b",
42
"updatedAt": 1588261504
43
},
44
"id": "56a5febc-4e3e-4d4c-8cbb-50b39691a097",
45
"lastMessage": {
46
"id": "c6c5b8e2-35a0-4c73-9c9a-61e1b07716a2",
47
"preview": {
48
"content": "Hello!",
49
"type": "text"
50
},
51
"teamMember": null,
52
"updatedAt": 1588864440
53
},
54
"status": "open",
55
"team": {
56
"color": "#000",
57
"id": "a7a76a50-8a4c-4a29-8799-4aeb0164f15f",
58
"title": "Default",
59
"updatedAt": 1586213041
60
},
61
"updatedAt": 1588864440
62
},
63
"event": "caseAssigned"
64
}
Copied!

Event: caseUnassigned

1
{
2
"data": {
3
"aid": 52,
4
"assignedTeamMember": null,
5
"closedAt": null,
6
"conversation": {
7
"channel": {
8
"id": "3686476d-9f8d-4967-abb0-c76aa641ac7f",
9
"label": "Telegram",
10
"title": "mytestbot",
11
"type": "telegrambot",
12
"updatedAt": 1587376492
13
},
14
"id": "b7bd53ff-311f-4616-81fd-1c5922be3e94"
15
},
16
"createdAt": 1588864832,
17
"endUser": {
18
"aid": 233,
19
"avatar": "https://static.hugery.com/200x200/bucket/1588864831223239/99497cc9dd3b7488a6c2a79132cb786a/image.jpg",
20
"avatarStub": false,
21
"channelFields": {
22
"id": "2681123421",
23
"language": "en",
24
"name": "Boris",
25
"user_name": "username"
26
},
27
"createdAt": 1587477016,
28
"extraFields": [],
29
"id": "772aab4f-17df-4dc2-a3c9-2700440f758b",
30
"lastActivityAt": 1588864832,
31
"name": "Boris",
32
"nameColor": "#472679",
33
"updatedAt": 1588864832
34
},
35
"id": "ce30af5f-9941-46e1-88ce-432a82486a5a",
36
"lastMessage": {
37
"id": "63406fbf-dbb9-440c-8db8-fe76946dfc1a",
38
"preview": {
39
"content": "Hello!",
40
"type": "text"
41
},
42
"teamMember": null,
43
"updatedAt": 1588865157
44
},
45
"status": "open",
46
"team": null,
47
"updatedAt": 1588865286
48
},
49
"event": "caseUnassigned"
50
}
Copied!

Event: caseClosed

1
{
2
"data": {
3
"aid": 48,
4
"assignedTeamMember": {
5
"avatar": "https://static.hugery.com/200x200/bucket/1586644129928170/4a460cb03ad82baf2dcf079acd549853/image.png",
6
"id": "d9033c86-a86e-474e-85a3-ccacc21ebc1d",
7
"name": "Ivan Ivanov",
8
"nameColor": "#9c791c",
9
"updatedAt": 1586644134
10
},
11
"closedAt": 1588865467,
12
"conversation": {
13
"channel": {
14
"id": "1220e87f-2d03-458b-8de1-7b71687d1839",
15
"label": "WhatsApp",
16
"title": "Hugery",
17
"type": "whatsapp",
18
"updatedAt": 1588259318
19
},
20
"id": "bfa7196b-fe1b-4050-adb0-61a5f20d8ebc"
21
},
22
"createdAt": 1588261504,
23
"endUser": {
24
"aid": 464,
25
"avatar": null,
26
"avatarStub": true,
27
"channelFields": {
28
"channel": "246dacc7-04dd-4f2f-9001-f56614c27abb",
29
"conversation": "346b51d7-fa29-4f87-bc61-28b175d93fb6",
30
"id": "375291231212",
31
"name": "Boris",
32
"phoneNumber": "375291231212"
33
},
34
"createdAt": 1588261504,
35
"extraFields": {
36
"phoneNumber": "375291231212"
37
},
38
"id": "5e897527-5023-4332-955e-de3dcff7bf7c",
39
"lastActivityAt": 1588261504,
40
"name": "Boris",
41
"nameColor": "#27388b",
42
"updatedAt": 1588261504
43
},
44
"id": "56a5febc-4e3e-4d4c-8cbb-50b39691a097",
45
"lastMessage": {
46
"id": "c6c5b8e2-35a0-4c73-9c9a-61e1b07716a2",
47
"preview": {
48
"content": "Hello!",
49
"type": "text"
50
},
51
"teamMember": null,
52
"updatedAt": 1588864440
53
},
54
"status": "closed",
55
"team": {
56
"color": "#000",
57
"id": "a7a76a50-8a4c-4a29-8799-4aeb0164f15f",
58
"title": "Default",
59
"updatedAt": 1586213041
60
},
61
"updatedAt": 1588864440
62
},
63
"event": "caseClosed"
64
}
Copied!

Event: endUserCreated

1
{
2
"data": {
3
"aid": 589,
4
"avatar": "https://static.hugery.com/200x200/bucket/1588865651178356/97a49ee6688b28f1e9523748532cb8fe/image.jpg",
5
"avatarStub": false,
6
"channelFields": {
7
"id": "268171177",
8
"language": "en",
9
"name": "Boris",
10
"user_name": "username"
11
},
12
"channelLabel": "Telegram",
13
"channelType": "telegrambot",
14
"createdAt": 1588865649,
15
"extraFields": [],
16
"id": "b763cdf9-23d5-4cda-aba3-0e861392055e",
17
"lastActivityAt": 1588865652,
18
"name": "Boris",
19
"nameColor": "#541c83",
20
"qualification": "lead",
21
"updatedAt": 1588865652
22
},
23
"event": "endUserCreated"
24
}
Copied!

Event: endUserUpdated

1
{
2
"data": {
3
"aid": 233,
4
"avatar": "https://static.hugery.com/200x200/bucket-blinger-helpdesk/1588864831223239/99497cc9dd3b7488a6c2a79132cb786a/image.jpg",
5
"avatarStub": false,
6
"channelFields": {
7
"id": "268112332",
8
"language": "en",
9
"name": "Boris",
10
"user_name": "username"
11
},
12
"channelLabel": "Telegram",
13
"channelType": "telegrambot",
14
"createdAt": 1587477016,
15
"extraFields": [],
16
"id": "772aab4f-17df-4dc2-a3c9-2700440f758b",
17
"lastActivityAt": 1588864832,
18
"name": "Boris",
19
"nameColor": "#472679",
20
"qualification": "lead",
21
"updatedAt": 1588864832
22
},
23
"event": "endUserUpdated"
24
}
Copied!
Last modified 2yr ago