{"id":13220,"date":"2024-03-20T15:24:16","date_gmt":"2024-03-20T14:24:16","guid":{"rendered":"https:\/\/helpcenter.blendee.com\/article\/webhooks-element-in-experiences\/"},"modified":"2024-03-20T15:24:17","modified_gmt":"2024-03-20T14:24:17","slug":"webhooks-element-in-experiences","status":"publish","type":"article","link":"https:\/\/helpcenter.streamwise.it\/en\/article\/webhooks-element-in-experiences\/","title":{"rendered":"Webhooks element in experiences"},"content":{"rendered":"<p>In the construction of an experience (<a href=\"https:\/\/helpcenter.streamwise.it\/article\/come-creare-delle-nuove-esperienze\/\">see the related article for more information<\/a>), we can insert the <strong>Webhook<\/strong> element, to be able to pass data in server-to-server mode.<\/p>\n<p><a href=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-17-alle-15.15.59.png\" data-lbwps-width=\"288\" data-lbwps-height=\"162\" data-lbwps-srcsmall=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-17-alle-15.15.59.png\"><img class=\"size-full wp-image-7887 aligncenter\" data-original=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-17-alle-15.15.59.png\" alt=\"\" width=\"288\" height=\"162\"><\/a>In the block configuration, we enter the URL to the Web Service that will handle the call<\/p>\n<p><a href=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-17-alle-15.20.28.png\" data-lbwps-width=\"320\" data-lbwps-height=\"268\" data-lbwps-srcsmall=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-17-alle-15.20.28.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7889\" src=\"https:\/\/helpcenter.blendee.com\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-17-alle-15.20.28.png\" alt=\"\" width=\"320\" height=\"268\" srcset=\"https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-17-alle-15.20.28.png 320w, https:\/\/helpcenter.streamwise.it\/wp-content\/uploads\/2022\/03\/Schermata-2022-03-17-alle-15.20.28-300x251.png 300w\" sizes=\"(max-width: 320px) 100vw, 320px\" \/><\/a><\/p>\n<p>Once configured in the experience, Blendee will make a call in POST mode to the saved address, as the content of the POST call it will send a JSON structured similar to the following:<\/p>\n<pre class=\"EnlighterJSRAW \" data-enlighter-language=\"json\">{\n\"experienceId\":001,\n\"campaignId\":002,\n\"experienceName\":\"Nome della esperienza\",\n\"campaignName\":\"Nome della campagna\",\n\"userId\":\"id utente\",\n\"email\":\"indirizzoemail@miosito.it\"\n}<\/pre>\n<p><strong>experienceId<\/strong>: Id of the experience from which the call originated<br \/>\n<strong>experienceName<\/strong>: Name of the experience from which the call originated<br \/>\n<strong>campaignId<\/strong>: id of the campaign from which the call originated<br \/>\n<strong>campaignName<\/strong>: Name of the campaign from which the call originated<br \/>\n<strong>userId<\/strong>: Blendee user ID that generated the call<br \/>\n<strong>email<\/strong>: Blendee user email that generated the call<\/p>\n<div class=\"wrap-post-useful post_useful_13220\">\n<p><div style=\"color: black; margin-bottom: 15px;\"><strong>Was this content useful?<\/strong><\/div><\/p>\n<p class=\"post_useful_success post_useful_success_13220\">Thanks for contributing!<\/p>\n<div class=\"post-useful-buttons post_useful_buttons_13220\">\n<a href=\"javascript:;\" style=\"border:0px;\" title=\"Yes\" class=\"post-useful-vote post-useful-vote-yes\" data-id=\"13220\" data-rate=\"1\">Yes<\/a>\n<a href=\"javascript:;\" style=\"border:0px;\" title=\"No\" class=\"post-useful-vote post-useful-vote-no\" data-id=\"13220\" data-rate=\"0\">No<\/a>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the construction of an experience (see the related article for more information), we can insert the Webhook element, to be able to pass data in server-to-server mode. In the block configuration, we enter the URL to the Web Service that will handle the call Once configured in the experience, Blendee will make a call [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"template":"","format":"standard","article-category":[591],"article-tag":[619],"class_list":["post-13220","article","type-article","status-publish","format-standard","hentry","article-category-experience-manager-en","article-tag-webhooks-en"],"_links":{"self":[{"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article\/13220"}],"collection":[{"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article\/13220\/revisions"}],"predecessor-version":[{"id":13221,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article\/13220\/revisions\/13221"}],"wp:attachment":[{"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/media?parent=13220"}],"wp:term":[{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article-category?post=13220"},{"taxonomy":"article-tag","embeddable":true,"href":"https:\/\/helpcenter.streamwise.it\/en\/wp-json\/wp\/v2\/article-tag?post=13220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}