Webhooks ›
Webhook Eventos
Webhook Eventos
Imagine você ser notificado todas vez que um evento específico acontece. 🔔
Com a nossa plataforma isso é possível!
Nossos Webhooks de Eventos notificam você sempre que:
✅ enviar uma mensagem interna
✅ alterar uma tag no ticket
✅ alterar o status do usuário
✅ alterar o status do CRM
Payload Enviado
Um payload diferente é enviado conforme cada tipo de ação. Veja abaixo:
1. Envio de Mensagem Interna
{
"body": {
"acao": "send-internal-message",
"messageData": {
"wid": "INT17480218555331gwLoQEL2QL0",
"ticketId": 64,
"body": "Teste de mensagem interna",
"mediaType": "internal",
"fromMe": true,
"read": true,
"ack": 4,
"isForwarded": false,
"messageTimestamp": 1748021855533,
"importando": false
}
},
"webhookUrl": "https://go.dominio.com.br/webhook",
"executionMode": "production"
}
2. Alteração de Tags
{
"body": {
"acao": "tag-sync",
"tagList": [
{
"tagId": 27,
"ticketId": 64
},
{
"tagId": 5,
"ticketId": 64
}
],
"tags": [
{
"id": 27,
"name": "Atenção",
"color": "#CD0003",
"TicketTag": {
"ticketId": 64,
"tagId": 27,
"disparei": 0,
"createdAt": "2025-01-22T19:14:53.901Z",
"updatedAt": "2025-01-22T19:14:53.901Z"
}
},
{
"id": 5,
"name": "Follow Up",
"color": "#A4CCCC",
"kanban": 1,
"prioridade": 2,
"automation": 0,
"flowsId": null,
"conversao": null,
"tagType": "Atendimento",
"companyId": 1,
"createdAt": "2024-08-20T20:55:38.045Z",
"updatedAt": "2024-09-20T09:24:34.988Z"
}
],
"ticket": {
"id": 64,
"status": "open",
"unreadMessages": 0,
"lastMessage": "Olá",
"protocolo": "29092",
"typebot_sessionId": null,
"typebot_status": null,
"customA": null,
"lastFlowId": null,
"repeatCount": 0,
"fromAds": 24,
"customB": null,
"nextFlowId": null,
"isGroup": false,
"userId": 1,
"contactId": 128,
"whatsappId": 1,
"queueId": 16,
"chatbot": false,
"isMenu": false,
"variables": null,
"channel": "whatsapp",
"queueOptionId": null,
"companyId": 1,
"uuid": "705fb38e-f524-4áá98c-a7af-e14c021cafeb",
"promptId": null,
"createdAt": "2024-08-21T20:53:04.945Z",
"updatedAt": "2025-05-23T17:37:35.558Z",
"contact": {
"id": 128,
"name": "José Cliente",
"number": "5511999999999",
"email": "",
"profilePicUrl": "https://pps.whatsapp.net/v/t61.24694-24/312265127_1983643049442739_n.jpg?stp=dst-jpg_s96x96_tt6&ccb=11-4&oh=01_Q5Aa1gGJ4YYfqWviyq19L2I2wSohVwm6QCNQ&oe=683DA3F8&_nc_sid=5e03e0&_nc_cat=108",
"acceptAudioMessage": true,
"active": true,
"disableBot": false,
"extraInfo": []
},
"user": {
"id": 1,
"name": "João Atendimento"
},
"whatsapp": {
"name": "Atendimento",
"webhook": "https://go.dominio.com.br/webhook",
"id": 1,
"token": "7ydsa6dahdaksdas9",
"status": "CONNECTED"
},
"tags": [
{
"id": 27,
"name": "Atenção",
"color": "#CD0003",
"TicketTag": {
"ticketId": 64,
"tagId": 27,
"disparei": 0,
"createdAt": "2025-05-23T17:43:32.964Z",
"updatedAt": "2025-05-23T17:43:32.964Z"
}
},
{
"id": 5,
"name": "Follow Up",
"color": "#A4CCCC",
"TicketTag": {
"ticketId": 64,
"tagId": 5,
"disparei": 0,
"createdAt": "2025-05-23T17:43:32.964Z",
"updatedAt": "2025-05-23T17:43:32.964Z"
}
}
],
"queue": {
"id": 16,
"name": "Dep. Orçamentos",
"color": "#999999"
},
"company": {
"id": 1,
"name": "AGrafica"
}
},
"addedTags": [
{
"id": 5,
"name": "Follow Up",
"color": "#A4CCCC",
"kanban": 1,
"prioridade": 2,
"automation": 0,
"flowsId": null,
"conversao": null,
"tagType": "Atendimento",
"companyId": 1,
"createdAt": "2024-08-20T20:55:38.045Z",
"updatedAt": "2024-09-20T09:24:34.988Z"
}
],
"removedTags": [],
"backendURL": "https://backend_url.com.br"
},
"webhookUrl": "https://go.dominio.com.br/webhook",
"executionMode": "production"
}
3. Alteração do Status do Usuário
{
"body": {
"acao": "user-status-offline",
"user": {
"id": 1,
"name": "João Atendimento",
"email": "[email protected]",
"passwordHash": "$2a$08Pa.8WwrUZUnWfbJjwh/KkmzErZ3msNzsAS",
"tokenVersion": 0,
"profile": "admin",
"whatsappId": 1,
"super": false,
"online": false,
"farewellMessage": "",
"rdId": null,
"color": "343784",
"cvId": null,
"cvImob": null,
"perfexId": null,
"ausencia": null,
"carteiraQueueId": null,
"number": "5511987654321",
"startWork": "00:00",
"endWork": "23:59",
"limited": true,
"restricted": false,
"away": false,
"sigame": false,
"randomupdatedAt": null,
"callstatus": "0",
"companyId": 1,
"createdAt": "2024-08-20T12:22:40.024Z",
"updatedAt": "2025-05-23T17:50:00.140Z"
}
},
"webhookUrl": "https://go.dominio.com.br/webhook",
"executionMode": "production"
}
4. Alteração do CRM
{
"body": {
"acao": "create",
"oportunidade": {
"id": 134,
"name": "Oportunidade 23116",
"companyId": 1,
"contactId": 23240,
"ticketId": 23116,
"message": "Lead está bem aquecido, lembrar amanhã",
"etapadofunil": "Proposta",
"produto": "Camisa de Futebol",
"valor": "350",
"free1": "Time São Paulo",
"free2": "Oficial",
"free3": "Número 9",
"free4": "Camisa Principal",
"userId": 1,
"updatedAt": "2025-05-23T21:42:16.165Z",
"createdAt": "2025-05-23T21:42:16.165Z",
"funil": null,
"fonte": null,
"campanha": null,
"datadeida": null,
"datadevolta": null,
"origem": null,
"destino": null
},
"backendURL": "https://backend_url.com.br"
},
"webhookUrl": "https://go.dominio.com.br/webhook",
"executionMode": "production"
}