---
title: Webhook
slug: webhook
icon: 🚩
docTags: 
createdAt: 2023-08-13T13:33:35.745Z
---

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
{
    "filaescolhida": "Geral",
    "filaescolhidaid": 1,
    "mensagem": "wr43r34",
    "sender": "5511989091838",
    "chamadoId": 357,
    "acao": "start",
    "name": "Rafael Ribeiro",
    "companyId": 1,
    "defaultWhatsapp_x": 2,
    "fromMe": false,
    "queueId": 1,
    "isGroup": false,
    "ticketData": {
        "id": 357,
        "status": "pending",
        "unreadMessages": 1,
        "lastMessage": "âAguarde que em breve vocÃª serÃ¡ atendido!",
        "isGroup": false,
        "userId": null,
        "contactId": 4192,
        "whatsappId": 2,
        "queueId": 1,
        "chatbot": false,
        "channel": "whatsapp",
        "queueOptionId": null,
        "companyId": 1,
        "uuid": "cabd8ddd-f5e1-43ab-8661-7b0385ca4e1b",
        "createdAt": "2023-08-30T02:27:15.376Z",
        "updatedAt": "2023-10-12T14:07:44.618Z",
        "contact": {
            "id": 4192,
            "name": "Rafael Ribeiro",
            "number": "5511989091838",
            "email": "",
            "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",
            "acceptAudioMessage": true,
            "active": true,
            "disableBot": false,
            "extraInfo": []
        },
        "user": null,
        "queue": {
            "id": 1,
            "name": "Geral",
            "color": "#008b02"
        },
        "whatsapp": {
            "name": "SUPORTE X",
            "webhook": "https://en16nq4b2guar.x.pipedream.net/",
            "id": 2
        },
        "tags": [
            {
                "id": 91,
                "name": "Demandas Em Aberto",
                "color": "#00C75A",
                "TicketTag": {
                    "ticketId": 357,
                    "tagId": 91,
                    "createdAt": "2023-10-11T02:38:00.633Z",
                    "updatedAt": "2023-10-11T02:38:00.633Z"
                }
            }
        ],
        "company": {
            "name": "Whaticket SaaS"
        }
    }
}
```



**TAGS**

```json
{
    "action": "tag-sync",
    "tags": {
        "ticketId": 383,
        "tags": [
            {
                "id": 27,
                "name": "Nome da TAG",
                "color": "#DD821A",
                "kanban": 1,
                "prioridade": 0,
                "conversao": "QUOTE",
                "companyId": 1,
                "createdAt": "2023-07-28T21:03:40.037Z",
                "updatedAt": "2023-09-10T22:35:53.648Z"
            }
        ]
    },
    "contact": {
        "id": 4300,
        "name": "Nome do Cliente",
        "number": "5511989091838",
        "email": "",
        "profilePicUrl": "",
        "acceptAudioMessage": true,
        "active": true,
        "disableBot": false,
        "extraInfo": []
    }
}
```



**ARQUIVOS ENVIADOS E RECEBIDOS**

```json
{
    "sender": "5511989091838",
    "chamadoId": 357,
    "acao": "fila-data",
    "companyId": 1,
    "defaultWhatsapp_x": 2,
    "fromMe": false,
    "queueId": 29,
    "isGroup": false,
    "ticketData": {
        "id": 357,
        "status": "open",
        "unreadMessages": 6,
        "lastMessage": "Áudio",
        "isGroup": false,
        "userId": 6,
        "contactId": 4192,
        "whatsappId": 2,
        "queueId": 29,
        "chatbot": false,
        "channel": "whatsapp",
        "queueOptionId": null,
        "companyId": 1,
        "uuid": "cabd8ddd-f5e1-43ab-8661-7b0385ca4e1b",
        "createdAt": "2023-08-30T02:27:15.376Z",
        "updatedAt": "2023-10-12T13:52:28.783Z",
        "contact": {
            "id": 4192,
            "name": "Rafael Ribeiro",
            "number": "5511989091838",
            "email": "",
            "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",
            "acceptAudioMessage": true,
            "active": true,
            "disableBot": false,
            "extraInfo": []
        },
        "user": {
            "id": 6,
            "name": "Atendente 2"
        },
        "queue": {
            "id": 29,
            "name": "GRUPO 1",
            "color": "#653294"
        },
        "whatsapp": {
            "name": "SUPORTE X",
            "webhook": "https://en16nq4b2guar.x.pipedream.net/",
            "id": 2
        },
        "tags": [
            {
                "id": 91,
                "name": "Demandas Em Aberto",
                "color": "#00C75A",
                "TicketTag": {
                    "ticketId": 357,
                    "tagId": 91,
                    "createdAt": "2023-10-11T02:38:00.633Z",
                    "updatedAt": "2023-10-11T02:38:00.633Z"
                }
            }
        ],
        "company": {
            "name": "Whaticket SaaS"
        }
    },
    "mediaFolder": "public/company1",
    "mediaName": "1697118750977.ogg",
    "backendURL": "https://beta-api.whaticket-saas.com"
}
```



**STATUS DO TICKET**

```json
{
    "sender": "5511989091838",
    "chamadoId": 357,
    "acao": "open", // STATUS open ou closed
    "companyId": 1,
    "defaultWhatsapp_x": 2,
    "queueId": 1,
    "isGroup": false,
    "ticketData": {
        "id": 357,
        "status": "pending",
        "unreadMessages": 1,
        "lastMessage": "2",
        "isGroup": false,
        "userId": null,
        "contactId": 4192,
        "whatsappId": 2,
        "queueId": 1,
        "chatbot": false,
        "channel": "whatsapp",
        "queueOptionId": null,
        "companyId": 1,
        "uuid": "cabd8ddd-f5e1-43ab-8661-7b0385ca4e1b",
        "createdAt": "2023-08-30T02:27:15.376Z",
        "updatedAt": "2023-10-12T14:29:04.416Z",
        "contact": {
            "id": 4192,
            "name": "Rafael Ribeiro",
            "number": "5511989091838",
            "email": "",
            "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",
            "acceptAudioMessage": true,
            "active": true,
            "disableBot": false,
            "extraInfo": []
        },
        "user": null,
        "queue": {
            "id": 1,
            "name": "Geral",
            "color": "#008b02"
        },
        "whatsapp": {
            "name": "SUPORTE X",
            "webhook": "https://en16nq4b2guar.x.pipedream.net/",
            "id": 2
        },
        "tags": [
            {
                "id": 91,
                "name": "Demandas Em Aberto",
                "color": "#00C75A",
                "TicketTag": {
                    "ticketId": 357,
                    "tagId": 91,
                    "createdAt": "2023-10-11T02:38:00.633Z",
                    "updatedAt": "2023-10-11T02:38:00.633Z"
                }
            }
        ],
        "company": {
            "name": "Whaticket SaaS"
        }
    }
}
```

