{"id":6318,"date":"2021-10-04T09:14:20","date_gmt":"2021-10-04T13:14:20","guid":{"rendered":"https:\/\/rafflepress.com\/?post_type=ht_kb&#038;p=6318"},"modified":"2022-04-08T15:30:11","modified_gmt":"2022-04-08T19:30:11","slug":"webhooks","status":"publish","type":"ht_kb","link":"https:\/\/rafflepress.com\/docs\/webhooks\/","title":{"rendered":"Webhooks"},"content":{"rendered":"<h2>Setting Up Webhooks<\/h2>\n<p>Start sending giveaway data with Webhook integration! Please follow these steps to set up a single or multiple webhooks.<\/p>\n<blockquote><p><strong>NOTE: <\/strong>This integration sends the following RafflePress fields for new login entries to the webhook request URL(s) specified:\u00a0&#8220;fullname&#8221;, &#8220;first_name&#8221;, &#8220;last_name&#8221;, &#8220;email&#8221;, &#8220;giveaway_id&#8221;, &#8220;giveaway_name&#8221;, &#8220;sign_up_date&#8221;.<\/p>\n<p>User data from giveaway actions that use third-party platforms (eg. Facebook, Twitter, YouTube, Instagram, Pinterest) are <strong>NOT<\/strong> shared using this feature.<\/p><\/blockquote>\n<ol>\n<li>Go to\u00a0<strong>Settings <\/strong>&gt; <strong>Webhooks<\/strong> to enable\u00a0the <strong>Webhooks<\/strong> option.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6357\" src=\"https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-settings-main.png\" alt=\"\" width=\"958\" height=\"700\" srcset=\"https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-settings-main.png 958w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-settings-main-300x219.png 300w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-settings-main-768x561.png 768w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-settings-main-50x37.png 50w\" sizes=\"auto, (max-width: 958px) 100vw, 958px\" \/><\/li>\n<li>Click on the <strong>Webhook 1<\/strong> item to start setting up your first webhook. This includes adding the webhook&#8217;s <strong>Request URL<\/strong>, selecting its request format (<strong>JSON<\/strong> or <strong>FORM<\/strong>), and add any additional headers needed to send data successfully to this request URL.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6356\" style=\"text-indent: -2em;\" src=\"https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-setting.png\" alt=\"\" width=\"914\" height=\"700\" srcset=\"https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-setting.png 914w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-setting-300x230.png 300w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-setting-768x588.png 768w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-setting-50x38.png 50w\" sizes=\"auto, (max-width: 914px) 100vw, 914px\" \/><br \/>\nIf needed, you can add more webhook integrations by clicking on the <strong>Add New Webhooks<\/strong> button. Enter the necessary details for these\u00a0additional webhook items.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-6366\" src=\"https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-2-setting.png\" alt=\"\" width=\"1006\" height=\"700\" srcset=\"https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-2-setting.png 1006w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-2-setting-300x209.png 300w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-2-setting-768x534.png 768w, https:\/\/rafflepress.com\/wp-content\/uploads\/2021\/10\/rafflepress-webhooks-integration-webhook-2-setting-50x35.png 50w\" sizes=\"auto, (max-width: 1006px) 100vw, 1006px\" \/><\/li>\n<li><strong>That&#8217;s it!<\/strong> You can now check your webhook endpoint to see user data being received after each user signs up for the giveaway!<\/li>\n<\/ol>\n<h2>Troubleshooting Tips<\/h2>\n<p>If there is no data being received at the webhook endpoint:<\/p>\n<ul>\n<li>Check and adjust any blocking security policy on both the website and the webhook endpoint to allow communication between both.<\/li>\n<li>Ensure that the request format is the same as the webhook&#8217;s accepted format.<\/li>\n<li>Ensure that <strong>ALL<\/strong> the request headers needed by the webhook endpoint are present and correct.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Setting Up Webhooks Start sending giveaway data with Webhook integration! Please follow these steps to set up a single or multiple webhooks. NOTE: This integration sends the following RafflePress fields for new login entries to the webhook request URL(s) specified:\u00a0&#8220;fullname&#8221;, &#8220;first_name&#8221;, &#8220;last_name&#8221;, &#8220;email&#8221;, &#8220;giveaway_id&#8221;, &#8220;giveaway_name&#8221;, &#8220;sign_up_date&#8221;. User data from giveaway actions that use third-party platforms [&hellip;]<\/p>\n","protected":false},"author":1,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"limit_modified_date":"","last_modified_date":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"ht-kb-category":[6,2243],"ht-kb-tag":[],"class_list":["post-6318","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-integrations","ht_kb_category-developer"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/ht-kb\/6318","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/comments?post=6318"}],"version-history":[{"count":23,"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/ht-kb\/6318\/revisions"}],"predecessor-version":[{"id":8123,"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/ht-kb\/6318\/revisions\/8123"}],"wp:attachment":[{"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/media?parent=6318"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/ht-kb-category?post=6318"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/rafflepress.com\/wp-json\/wp\/v2\/ht-kb-tag?post=6318"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}