{"id":887,"date":"2017-12-07T22:37:26","date_gmt":"2017-12-07T22:37:26","guid":{"rendered":"http:\/\/kb.powercode.com\/?post_type=ht_kb&#038;p=887"},"modified":"2020-01-23T20:33:54","modified_gmt":"2020-01-23T20:33:54","slug":"webhooks-api","status":"publish","type":"ht_kb","link":"https:\/\/kb.powercode.com\/?ht_kb=webhooks-api","title":{"rendered":"Webhooks"},"content":{"rendered":"<p><strong>Webhooks<\/strong> can be found under <strong>Config<\/strong> &gt; <strong>System Configuration<\/strong> &gt; <strong>Webhooks.<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-1122\" src=\"http:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/webhooks.png\" alt=\"\" width=\"1366\" height=\"509\" srcset=\"https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/webhooks.png 1366w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/webhooks-300x112.png 300w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/webhooks-768x286.png 768w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/webhooks-1024x382.png 1024w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/webhooks-50x19.png 50w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/webhooks-60x22.png 60w, https:\/\/kb.powercode.com\/wp-content\/uploads\/2017\/12\/webhooks-100x37.png 100w\" sizes=\"(max-width: 1366px) 100vw, 1366px\" \/><\/p>\n<p><strong>Webhooks<\/strong> allow Powercode to supply information to\u00a0<strong>Slack<\/strong> and other external applications even without a specific integration. The data is sent via an HTTP POST in JSON format to the specified URLs an <strong>Event<\/strong> is linked to inside of Powercode.<\/p>\n<h3>An Example Use Case<\/h3>\n<p>To send all incoming <strong>Twilio SMS<\/strong> messages to <strong>Slack<\/strong>, you would:<\/p>\n<ul>\n<li>Choose the send <strong>Event<\/strong>: Twilio &#8211; Customer Replies<\/li>\n<li>Click the blue <strong>+<\/strong> button to add a destination URL.<\/li>\n<li>Select\u00a0<strong>Slack\u00a0<\/strong>as the <strong>Application Type.<\/strong><\/li>\n<li>Name the <strong>Destination URL<\/strong> according to your channel name.<\/li>\n<li>Get a <strong>Slack<\/strong> channel URL by following the <a href=\"https:\/\/get.slack.help\/hc\/en-us\/articles\/115005265063-Incoming-WebHooks-for-Slack\">instructions Slack provides<\/a> and enter it in the <strong>Destination URL <\/strong> field.<\/li>\n<li>Save the URL and click <strong>Add Web Hook<\/strong>.<\/li>\n<\/ul>\n<p>Once this is set up a <strong>Slack<\/strong> notification will appear in the chosen <strong>Slack<\/strong> channel every time a customer replies to the <strong>Twilio SMS<\/strong> number.\u00a0 The slack notification will contain a link to the customer page, where the full <strong>SMS<\/strong> conversation can be read and replied to.<\/p>\n<h3>Documentation<\/h3>\n<p>Documentation on existing Powercode webhooks are stored <a href=\"http:\/\/api.powercode.com\/webhooks\/\">here<\/a>.<br \/>\n    \t\t<div class=\"hts-messages hts-messages--info   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tDon&#8217;t see what you need? Send us a message at support@powercode.com and we might just be able to help you.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Webhooks can be found under Config &gt; System Configuration &gt; Webhooks. Webhooks allow Powercode to supply information to\u00a0Slack and other external applications even without a specific integration. The data is sent via an HTTP POST in JSON format to the specified URLs an Event is linked to inside of Powercode&#8230;.<\/p>\n","protected":false},"author":4,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[104],"ht-kb-tag":[],"_links":{"self":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/887"}],"collection":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=887"}],"version-history":[{"count":7,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/887\/revisions"}],"predecessor-version":[{"id":1399,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=\/wp\/v2\/ht-kb\/887\/revisions\/1399"}],"wp:attachment":[{"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=887"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-category&post=887"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/kb.powercode.com\/index.php?rest_route=%2Fwp%2Fv2%2Fht-kb-tag&post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}