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 { "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 { "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 { "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 { "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" } } }