<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Troubleshooting Webhooks in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Troubleshooting-Webhooks/m-p/874312#M68771</link>
    <description>&lt;P&gt;Hello!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm attempting to set up webhooks between HubSpot and a third-party app called Clio Manage. There is a native integration, but it's created a data nightmare. So it makes sense to reign things in programatically, and it seems like webhooks would be the perfect way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Importantly, I'm attempting to use webhooks via HubSpot workflow. HubSpot is connecting to Clio and Clio is issuing a token. Things are falling apart from there, it seems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I contacted Clio's support and eventually got to this from them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;I do see that you have the response type in your Authorization Request set up to be &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;code.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;While this certainly can be done, its unusual for marketed application to push this to end users. For context when the response is set to code the Clio Authorization Page (when Approved) will send a JSON response to the redirect URI including an Authorization Code that must be returned through a POST request to be exchanged for an &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;access_token.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Again, while this is perfectly valid and not unusual for self developed applications, I would expect Integrations like Hubspot to be using &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;state&lt;/STRONG&gt;&lt;/FONT&gt; as the response type. More on the distinction between the two can be found in the &lt;A title="Clio Doc" href="https://docs.developers.clio.com/api-docs/authorization/" target="_blank" rel="noopener"&gt;documentation you are referencing.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Does Hubspot allow you to read the specific JSON response given?&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I'm reaching out here for advice. I haven't found and don't recall any mention of &lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;state&lt;/FONT&gt;.&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;And, for reference, the way my request URI is currently constructing after hitting the Clio side is like:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://api.hubapi.com/oauth/v1/token?code=[xyz" target="_blank" rel="noopener"&gt;https://api.hubapi.com/oauth/v1/token?code=[xyz&lt;/A&gt;]&lt;BR /&gt;&lt;BR /&gt;I haven't cnofigured all this before, so it's very possibly somethign quite basic...&lt;BR /&gt;&lt;BR /&gt;Any thoughts/insight? What other info can I provide?&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 12:30:00 GMT</pubDate>
    <dc:creator>Clare_HS</dc:creator>
    <dc:date>2023-11-03T12:30:00Z</dc:date>
    <item>
      <title>Troubleshooting Webhooks</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Troubleshooting-Webhooks/m-p/874312#M68771</link>
      <description>&lt;P&gt;Hello!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'm attempting to set up webhooks between HubSpot and a third-party app called Clio Manage. There is a native integration, but it's created a data nightmare. So it makes sense to reign things in programatically, and it seems like webhooks would be the perfect way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Importantly, I'm attempting to use webhooks via HubSpot workflow. HubSpot is connecting to Clio and Clio is issuing a token. Things are falling apart from there, it seems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I contacted Clio's support and eventually got to this from them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;I do see that you have the response type in your Authorization Request set up to be &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;code.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;While this certainly can be done, its unusual for marketed application to push this to end users. For context when the response is set to code the Clio Authorization Page (when Approved) will send a JSON response to the redirect URI including an Authorization Code that must be returned through a POST request to be exchanged for an &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;access_token.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Again, while this is perfectly valid and not unusual for self developed applications, I would expect Integrations like Hubspot to be using &lt;FONT color="#FF00FF"&gt;&lt;STRONG&gt;state&lt;/STRONG&gt;&lt;/FONT&gt; as the response type. More on the distinction between the two can be found in the &lt;A title="Clio Doc" href="https://docs.developers.clio.com/api-docs/authorization/" target="_blank" rel="noopener"&gt;documentation you are referencing.&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Does Hubspot allow you to read the specific JSON response given?&lt;/BLOCKQUOTE&gt;&lt;P&gt;So I'm reaching out here for advice. I haven't found and don't recall any mention of &lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;state&lt;/FONT&gt;.&amp;nbsp;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;And, for reference, the way my request URI is currently constructing after hitting the Clio side is like:&amp;nbsp;&lt;BR /&gt;&lt;A href="https://api.hubapi.com/oauth/v1/token?code=[xyz" target="_blank" rel="noopener"&gt;https://api.hubapi.com/oauth/v1/token?code=[xyz&lt;/A&gt;]&lt;BR /&gt;&lt;BR /&gt;I haven't cnofigured all this before, so it's very possibly somethign quite basic...&lt;BR /&gt;&lt;BR /&gt;Any thoughts/insight? What other info can I provide?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 12:30:00 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Troubleshooting-Webhooks/m-p/874312#M68771</guid>
      <dc:creator>Clare_HS</dc:creator>
      <dc:date>2023-11-03T12:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshooting Webhooks</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Troubleshooting-Webhooks/m-p/875572#M68850</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/658083"&gt;@Clare_HS&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; I didn't find any community posts from users trying to use the `state`, the Clio API endpoints, and HubSpot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation they linked you to about `state` doesn't seem to give an example that will resolve your issue. Here's the mention of using `state` and OAuth with HubSpot —&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://developers.hubspot.com/docs/api/working-with-oauth#:~:text=details%20about%20scopes.-,State,-%26state%3Dy%0AIf" target="_blank" rel="noopener"&gt;State&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you find a solution, please consider sharing it here, as it will likely help others who are attempting similar solutions.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Beset,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jaycee&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 22:10:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Troubleshooting-Webhooks/m-p/875572#M68850</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2023-11-06T22:10:58Z</dc:date>
    </item>
  </channel>
</rss>

