{"id":15254,"date":"2022-06-27T13:19:01","date_gmt":"2022-06-27T10:19:01","guid":{"rendered":"https:\/\/snov.io\/knowledgebase\/?p=15254"},"modified":"2026-01-27T16:52:01","modified_gmt":"2026-01-27T13:52:01","slug":"como-usar-os-webhooks-da-snov-io","status":"publish","type":"post","link":"https:\/\/snov.io\/knowledgebase\/br\/como-usar-os-webhooks-da-snov-io\/","title":{"rendered":"Como configurar webhooks usando a API da Snov.io"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Neste artigo, voc\u00ea aprender\u00e1 como configurar e gerenciar webhooks usando a API da Snov.io para suas integra\u00e7\u00f5es personalizadas.<\/span><\/p>\n<h2><b>O que \u00e9 um webhook?<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Os webhooks permitem que voc\u00ea seja notificado sobre eventos que ocorrem em suas prospec\u00e7\u00f5es por e-mail, como respostas de clientes potenciais ou conclus\u00e3o de campanhas.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Basicamente, quando o evento ao qual voc\u00ea se inscreveu ocorre, a Snov.io envia dados relacionados a esse evento para o seu endpoint (URL do webhook) em tempo real. Voc\u00ea pode usar esses dados para integra\u00e7\u00f5es ou automa\u00e7\u00f5es por meio de aplicativos como Zapier ou Make.<\/span><\/p>\n<div class=\"notification-block note\">\n<div class=\"notification-block__icon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/snov.io\/knowledgebase\/wp-content\/themes\/knowledgebase-n\/assets\/img\/ph_circle-wavy-warning.svg\" alt=\"note\" width=\"32\" height=\"32\" \/><\/div>\n<div class=\"notification-block__text\"><span style=\"font-weight: 400;\">Os webhooks exigem um plano pago da Snov.io (premium). Voc\u00ea pode criar at\u00e9 50 webhooks.<\/span><\/div>\n<\/div>\n<h2><b>Como criar webhooks<\/b><\/h2>\n<p><span style=\"font-weight: 400;\">Para se inscrever em webhooks, escolha o evento que deseja rastrear, prepare a URL do seu endpoint e envie uma solicita\u00e7\u00e3o para a API da Snov.io.<\/span><\/p>\n<h3><b>Escolha o evento<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Selecione o evento que deseja rastrear na lista de eventos compat\u00edveis.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Quando o evento selecionado ocorrer, a Snovio enviar\u00e1 automaticamente os dados dele para o seu endpoint.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Os eventos de webhook atualmente compat\u00edveis est\u00e3o listados abaixo. Por exemplo, voc\u00ea pode receber dados de webhook quando um lead responde a um e-mail de campanha, um e-mail retorna ou um cliente potencial conclui uma campanha.<\/span><\/p>\n<table style=\"height: 264px; width: 100%; border: 2px solid #b3d9ff; border-collapse: collapse; font-family: sans-serif;\" border=\"2px solid #b3d9ff\">\n<thead>\n<tr style=\"height: 24px;\">\n<th style=\"border: 1px solid #b3d9ff; background-color: #eaf6ff; padding: 12px; width: 31.2577%; height: 24px; text-align: center;\">Objeto do webhook <em>(event_object)<\/em><\/th>\n<th style=\"border: 1px solid #b3d9ff; background-color: #eaf6ff; padding: 12px; width: 28.3367%; height: 24px; text-align: center;\">A\u00e7\u00e3o (<em>event_action)<\/em><\/th>\n<th style=\"border: 1px solid #b3d9ff; background-color: #eaf6ff; padding: 12px; width: 40.2607%; height: 24px; text-align: center;\">Ativado<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"height: 24px;\" data-start=\"2063\" data-end=\"2164\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2063\" data-end=\"2085\" data-col-size=\"sm\">campaign_email<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2085\" data-end=\"2107\" data-col-size=\"sm\">sent<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2107\" data-end=\"2164\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando um e-mail \u00e9 enviado a um destinat\u00e1rio em qualquer campanha<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"2165\" data-end=\"2272\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2165\" data-end=\"2187\" data-col-size=\"sm\">campaign_email<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2187\" data-end=\"2209\" data-col-size=\"sm\">first_sent<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2209\" data-end=\"2272\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando o primeiro e-mail \u00e9 enviado a um destinat\u00e1rio em qualquer campanha<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"2273\" data-end=\"2369\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2273\" data-end=\"2295\" data-col-size=\"sm\">campaign_email<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2295\" data-end=\"2317\" data-col-size=\"sm\">opened<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2317\" data-end=\"2369\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando um destinat\u00e1rio abre um e-mail de uma campanha<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"2370\" data-end=\"2496\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2370\" data-end=\"2392\" data-col-size=\"sm\">campaign_email<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2392\" data-end=\"2414\" data-col-size=\"sm\">bounced<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2414\" data-end=\"2496\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando um e-mail enviado de uma campanha n\u00e3o pode ser entregue e resulta em uma mensagem de erro (<em>bounce<\/em>)<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"2497\" data-end=\"2598\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2497\" data-end=\"2519\" data-col-size=\"sm\">campaign_reply<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2519\" data-end=\"2541\" data-col-size=\"sm\">received<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2541\" data-end=\"2598\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando um destinat\u00e1rio responde a um e-mail de uma campanha<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"2599\" data-end=\"2710\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2599\" data-end=\"2621\" data-col-size=\"sm\">campaign_reply<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2621\" data-end=\"2643\" data-col-size=\"sm\">first_received<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2643\" data-end=\"2710\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando um destinat\u00e1rio responde a um e-mail de uma campanha pela primeira vez<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"2711\" data-end=\"2839\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2711\" data-end=\"2733\" data-col-size=\"sm\">prospect<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2733\" data-end=\"2755\" data-col-size=\"sm\">campaign_finished<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2755\" data-end=\"2839\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando um lead chega ao final de uma campanha e nenhuma outra a\u00e7\u00e3o est\u00e1 agendada<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"2840\" data-end=\"2939\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2840\" data-end=\"2862\" data-col-size=\"sm\">company<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2862\" data-end=\"2887\" data-col-size=\"sm\">found_domains_by_names<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2887\" data-end=\"2939\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando um dom\u00ednio de empresa \u00e9 encontrado com base em seu nome<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"2940\" data-end=\"3044\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"2940\" data-end=\"2962\" data-col-size=\"sm\">prospect<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"2962\" data-end=\"2984\" data-col-size=\"sm\">found_by_li_url<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"2984\" data-end=\"3044\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando um perfil de potencial cliente \u00e9 encontrado com base em um URL do LinkedIn<\/span><\/td>\n<\/tr>\n<tr style=\"height: 24px;\" data-start=\"3045\" data-end=\"3140\">\n<td style=\"width: 31.2577%; text-align: center; height: 24px;\" data-start=\"3045\" data-end=\"3067\" data-col-size=\"sm\">email_verification<\/td>\n<td style=\"width: 28.3367%; text-align: center; height: 24px;\" data-start=\"3067\" data-end=\"3089\" data-col-size=\"sm\">verified<\/td>\n<td style=\"width: 40.2607%; text-align: center; height: 24px;\" data-start=\"3089\" data-end=\"3140\" data-col-size=\"md\"><span style=\"font-weight: 400;\">Quando uma solicita\u00e7\u00e3o de verifica\u00e7\u00e3o de e-mail \u00e9 conclu\u00edda<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><b>Prepare a URL do seu endpoint<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Esta \u00e9 a sua pr\u00f3pria URL p\u00fablica que pode aceitar solicita\u00e7\u00f5es HTTP de entrada. Por exemplo, uma URL de webhook no Zapier\/Make ou o endpoint do seu aplicativo.<\/span><\/p>\n<h3><b>Envie a solicita\u00e7\u00e3o para criar o webhook<\/b><\/h3>\n<p><span style=\"font-weight: 400;\">Para criar um webhook na sua conta Snov.io, use a op\u00e7\u00e3o <\/span><a href=\"https:\/\/snov.io\/br\/api\"><span style=\"font-weight: 400;\">Adicionar endpoint de webhook da API<\/span><\/a><span style=\"font-weight: 400;\"> Snov.io.<\/span><\/p>\n<div class=\"notification-block learn\">\n<div class=\"notification-block__icon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/snov.io\/knowledgebase\/wp-content\/themes\/knowledgebase-n\/assets\/img\/fluent_chat-warning-16-regular.svg\" alt=\"learn\" width=\"32\" height=\"32\" \/><\/div>\n<div class=\"notification-block__text\"><span style=\"font-weight: 400;\">Voc\u00ea pode se inscrever e gerenciar webhooks por meio de um conjunto de chamadas de API. Para obter detalhes completos, consulte a <a href=\"https:\/\/snov.io\/br\/api\">documenta\u00e7\u00e3o da API<\/a>. <\/span><\/div>\n<\/div>\n<p>.<span style=\"font-weight: 400;\">Envie uma solicita\u00e7\u00e3o de API com os par\u00e2metros abaixo. Saiba, por\u00e9m, que tais modelos de webhook s\u00e3o predefinidos com base no tipo de evento que voc\u00ea deseja rastrear.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>M\u00e9todo:<\/b><span style=\"font-weight: 400;\"> POST<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>URL da solicita\u00e7\u00e3o: <\/b><span style=\"font-weight: 400;\">https:\/\/api.snov.io\/v2\/webhooks<\/span><\/li>\n<\/ul>\n<h3><b>Par\u00e2metros do webhook<\/b><\/h3>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>event_object<\/b><span style=\"font-weight: 400;\"> \u2014 o que voc\u00ea deseja rastrear, como prospecto ou e-mail (copie os valores correspondentes da tabela acima)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>event_action<\/b><span style=\"font-weight: 400;\"> \u2014 o evento espec\u00edfico que precisa ocorrer para que o webhook seja ativado (copie os valores correspondentes da tabela acima)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>endpoint_url<\/b><span style=\"font-weight: 400;\"> \u2014 forne\u00e7a seu pr\u00f3prio URL p\u00fablico para onde a Snov.io enviar\u00e1 os dados<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Para criar um webhook para respostas de clientes potenciais (quando um destinat\u00e1rio responde a qualquer e-mail em qualquer campanha), escolha estes modelos:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><i><span style=\"font-weight: 400;\">event_object:<\/span><\/i><span style=\"font-weight: 400;\"> campaign_reply<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><i><span style=\"font-weight: 400;\">event_action:<\/span><\/i><span style=\"font-weight: 400;\"> received<\/span><\/li>\n<\/ul>\n<div class=\"notification-block note-gray\">\n<div class=\"notification-block__text\">\n<p><b>Exemplo de corpo de requisi\u00e7\u00e3o da API:<\/b><\/p>\n<p><i><span style=\"font-weight: 400;\">{ \"event_object\": \"campaign_reply\", \"event_action\": \"received\", \"endpoint_url\": \"https:\/\/your-domain.com\/webhooks\/snov-replies\" }<\/span><\/i><\/p>\n<\/div>\n<\/div>\n<p><b>Verifique se o webhook est\u00e1 funcionando<\/b><\/p>\n<p><span style=\"font-weight: 400;\">Ap\u00f3s criar o webhook:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Certifique-se de que seu endpoint retorne um status HTTP <\/span><b>200\u2013299<\/b><span style=\"font-weight: 400;\"> em at\u00e9 <\/span><b>3 segundos<\/b><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Se o endpoint retornar um status diferente (ou expirar o tempo limite), a Snov.io tentar\u00e1 reenviar o webhook automaticamente<\/span><\/li>\n<\/ul>\n<div class=\"notification-block learn\">\n<div class=\"notification-block__icon\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/snov.io\/knowledgebase\/wp-content\/themes\/knowledgebase-n\/assets\/img\/fluent_chat-warning-16-regular.svg\" alt=\"learn\" width=\"32\" height=\"32\" \/><\/div>\n<div class=\"notification-block__text\">\n<p><b>Pol\u00edtica de repeti\u00e7\u00e3o: <\/b><span style=\"font-weight: 400;\">o comportamento abaixo reflete como a Snov.io entrega eventos de webhook na pr\u00e1tica.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">O webhook \u00e9 considerado bem-sucedido se a Snov.io receber um status HTTP no intervalo de 200 a 299 em at\u00e9 3 segundos.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Em outras palavras, se recebermos qualquer outro status HTTP ou ocorrer um tempo limite, faremos sete tentativas de repeti\u00e7\u00e3o com intervalos crescentes, at\u00e9 38 horas ap\u00f3s o evento que disparou o webhook:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Se todas as tentativas falharem, o webhook ser\u00e1 desativado.<\/span><\/p>\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">1\u00aa: imediatamente ap\u00f3s o evento<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">2\u00aa: 20 minutos ap\u00f3s a \u00faltima tentativa (20 minutos ap\u00f3s o evento)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">3\u00aa: 40 minutos ap\u00f3s a \u00faltima tentativa (1 hora ap\u00f3s o evento)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">4\u00aa: 60 minutos ap\u00f3s a \u00faltima tentativa (2 horas ap\u00f3s o evento)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">5\u00aa: 4 horas ap\u00f3s a \u00faltima tentativa (6 horas ap\u00f3s o evento)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">6\u00aa: 8 horas ap\u00f3s a \u00faltima tentativa (14 horas ap\u00f3s o evento)<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">7\u00aa: 24 horas ap\u00f3s a \u00faltima tentativa (38 horas ap\u00f3s o evento)<\/span><\/li>\n<\/ul>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Neste artigo, voc\u00ea aprender\u00e1 como configurar e gerenciar webhooks usando a API da Snov.io para suas integra\u00e7\u00f5es personalizadas. O que \u00e9 um webhook? Os webhooks permitem que voc\u00ea seja notificado sobre eventos que ocorrem em suas prospec\u00e7\u00f5es por e-mail, como respostas de clientes potenciais ou conclus\u00e3o de campanhas. Basicamente, quando o evento ao qual voc\u00ea [&hellip;]<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2310],"tags":[],"_links":{"self":[{"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/posts\/15254"}],"collection":[{"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/comments?post=15254"}],"version-history":[{"count":4,"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/posts\/15254\/revisions"}],"predecessor-version":[{"id":44513,"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/posts\/15254\/revisions\/44513"}],"wp:attachment":[{"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/media?parent=15254"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/categories?post=15254"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/snov.io\/knowledgebase\/wp-json\/wp\/v2\/tags?post=15254"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}