Webhook
2min
Cada conexão permite a configuração de um endpoint específico.
Desta forma, você poderá receber notificações das mensagens e eventos transacionadas onde desejar.
Abaixo, segue exemplo de payload em json:
MENSAGENS
MENSAGENS
JSON
1{
2 "filaescolhida": "Geral",
3 "filaescolhidaid": 1,
4 "mensagem": "wr43r34",
5 "sender": "5511989091838",
6 "chamadoId": 357,
7 "acao": "start",
8 "name": "Rafael Ribeiro",
9 "companyId": 1,
10 "defaultWhatsapp_x": 2,
11 "fromMe": false,
12 "queueId": 1,
13 "isGroup": false,
14 "ticketData": {
15 "id": 357,
16 "status": "pending",
17 "unreadMessages": 1,
18 "lastMessage": "âAguarde que em breve você será atendido!",
19 "isGroup": false,
20 "userId": null,
21 "contactId": 4192,
22 "whatsappId": 2,
23 "queueId": 1,
24 "chatbot": false,
25 "channel": "whatsapp",
26 "queueOptionId": null,
27 "companyId": 1,
28 "uuid": "cabd8ddd-f5e1-43ab-8661-7b0385ca4e1b",
29 "createdAt": "2023-08-30T02:27:15.376Z",
30 "updatedAt": "2023-10-12T14:07:44.618Z",
31 "contact": {
32 "id": 4192,
33 "name": "Rafael Ribeiro",
34 "number": "5511989091838",
35 "email": "",
36 "profilePicUrl": "https://pps.whatsapp.net/v/t61.24694-24/323970788_1137981286878868_1882391295127733628_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_AdRIhDQmoDnnUAXJdVlRp9eCiVzLdQK5ogchK1GhiSLnAw&oe=6534E077&_nc_sid=000000&_nc_cat=101",
37 "acceptAudioMessage": true,
38 "active": true,
39 "disableBot": false,
40 "extraInfo": []
41 },
42 "user": null,
43 "queue": {
44 "id": 1,
45 "name": "Geral",
46 "color": "#008b02"
47 },
48 "whatsapp": {
49 "name": "SUPORTE X",
50 "webhook": "https://en16nq4b2guar.x.pipedream.net/",
51 "id": 2
52 },
53 "tags": [
54 {
55 "id": 91,
56 "name": "Demandas Em Aberto",
57 "color": "#00C75A",
58 "TicketTag": {
59 "ticketId": 357,
60 "tagId": 91,
61 "createdAt": "2023-10-11T02:38:00.633Z",
62 "updatedAt": "2023-10-11T02:38:00.633Z"
63 }
64 }
65 ],
66 "company": {
67 "name": "Whaticket SaaS"
68 }
69 }
70}
TAGS
JSON
1{
2 "action": "tag-sync",
3 "tags": {
4 "ticketId": 383,
5 "tags": [
6 {
7 "id": 27,
8 "name": "Nome da TAG",
9 "color": "#DD821A",
10 "kanban": 1,
11 "prioridade": 0,
12 "conversao": "QUOTE",
13 "companyId": 1,
14 "createdAt": "2023-07-28T21:03:40.037Z",
15 "updatedAt": "2023-09-10T22:35:53.648Z"
16 }
17 ]
18 },
19 "contact": {
20 "id": 4300,
21 "name": "Nome do Cliente",
22 "number": "5511989091838",
23 "email": "",
24 "profilePicUrl": "",
25 "acceptAudioMessage": true,
26 "active": true,
27 "disableBot": false,
28 "extraInfo": []
29 }
30}
ARQUIVOS ENVIADOS E RECEBIDOS
JSON
1{
2 "sender": "5511989091838",
3 "chamadoId": 357,
4 "acao": "fila-data",
5 "companyId": 1,
6 "defaultWhatsapp_x": 2,
7 "fromMe": false,
8 "queueId": 29,
9 "isGroup": false,
10 "ticketData": {
11 "id": 357,
12 "status": "open",
13 "unreadMessages": 6,
14 "lastMessage": "Áudio",
15 "isGroup": false,
16 "userId": 6,
17 "contactId": 4192,
18 "whatsappId": 2,
19 "queueId": 29,
20 "chatbot": false,
21 "channel": "whatsapp",
22 "queueOptionId": null,
23 "companyId": 1,
24 "uuid": "cabd8ddd-f5e1-43ab-8661-7b0385ca4e1b",
25 "createdAt": "2023-08-30T02:27:15.376Z",
26 "updatedAt": "2023-10-12T13:52:28.783Z",
27 "contact": {
28 "id": 4192,
29 "name": "Rafael Ribeiro",
30 "number": "5511989091838",
31 "email": "",
32 "profilePicUrl": "https://pps.whatsapp.net/v/t61.24694-24/323970788_1137981286878868_1882391295127733628_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_AdRIhDQmoDnnUAXJdVlRp9eCiVzLdQK5ogchK1GhiSLnAw&oe=6534E077&_nc_sid=000000&_nc_cat=101",
33 "acceptAudioMessage": true,
34 "active": true,
35 "disableBot": false,
36 "extraInfo": []
37 },
38 "user": {
39 "id": 6,
40 "name": "Atendente 2"
41 },
42 "queue": {
43 "id": 29,
44 "name": "GRUPO 1",
45 "color": "#653294"
46 },
47 "whatsapp": {
48 "name": "SUPORTE X",
49 "webhook": "https://en16nq4b2guar.x.pipedream.net/",
50 "id": 2
51 },
52 "tags": [
53 {
54 "id": 91,
55 "name": "Demandas Em Aberto",
56 "color": "#00C75A",
57 "TicketTag": {
58 "ticketId": 357,
59 "tagId": 91,
60 "createdAt": "2023-10-11T02:38:00.633Z",
61 "updatedAt": "2023-10-11T02:38:00.633Z"
62 }
63 }
64 ],
65 "company": {
66 "name": "Whaticket SaaS"
67 }
68 },
69 "mediaFolder": "public/company1",
70 "mediaName": "1697118750977.ogg",
71 "backendURL": "https://beta-api.whaticket-saas.com"
72}
STATUS DO TICKET
JSON
1{
2 "sender": "5511989091838",
3 "chamadoId": 357,
4 "acao": "open", // STATUS open ou closed
5 "companyId": 1,
6 "defaultWhatsapp_x": 2,
7 "queueId": 1,
8 "isGroup": false,
9 "ticketData": {
10 "id": 357,
11 "status": "pending",
12 "unreadMessages": 1,
13 "lastMessage": "2",
14 "isGroup": false,
15 "userId": null,
16 "contactId": 4192,
17 "whatsappId": 2,
18 "queueId": 1,
19 "chatbot": false,
20 "channel": "whatsapp",
21 "queueOptionId": null,
22 "companyId": 1,
23 "uuid": "cabd8ddd-f5e1-43ab-8661-7b0385ca4e1b",
24 "createdAt": "2023-08-30T02:27:15.376Z",
25 "updatedAt": "2023-10-12T14:29:04.416Z",
26 "contact": {
27 "id": 4192,
28 "name": "Rafael Ribeiro",
29 "number": "5511989091838",
30 "email": "",
31 "profilePicUrl": "https://pps.whatsapp.net/v/t61.24694-24/323970788_1137981286878868_1882391295127733628_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_AdRIhDQmoDnnUAXJdVlRp9eCiVzLdQK5ogchK1GhiSLnAw&oe=6534E077&_nc_sid=000000&_nc_cat=101",
32 "acceptAudioMessage": true,
33 "active": true,
34 "disableBot": false,
35 "extraInfo": []
36 },
37 "user": null,
38 "queue": {
39 "id": 1,
40 "name": "Geral",
41 "color": "#008b02"
42 },
43 "whatsapp": {
44 "name": "SUPORTE X",
45 "webhook": "https://en16nq4b2guar.x.pipedream.net/",
46 "id": 2
47 },
48 "tags": [
49 {
50 "id": 91,
51 "name": "Demandas Em Aberto",
52 "color": "#00C75A",
53 "TicketTag": {
54 "ticketId": 357,
55 "tagId": 91,
56 "createdAt": "2023-10-11T02:38:00.633Z",
57 "updatedAt": "2023-10-11T02:38:00.633Z"
58 }
59 }
60 ],
61 "company": {
62 "name": "Whaticket SaaS"
63 }
64 }
65}
Updated 10 Feb 2024
Did this page help you?