<?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 Re: Webhook through accesstoken for private apps in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979707#M73767</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/749610"&gt;@gayathri139&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Yes, it is possible to update the webhook URL or hit the specified endpoints using an access token for private apps in HubSpot.&lt;BR /&gt;HubSpot is deprecating API keys in favor of OAuth access tokens, you should be able to perform these actions with an access token.&lt;/P&gt;&lt;P&gt;Here is a step-by-step guide on how to achieve this:&lt;/P&gt;&lt;H3&gt;1. Obtain the Access Token&lt;/H3&gt;&lt;P&gt;First, ensure you have the access token for your private app:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigate to your HubSpot account.&lt;/LI&gt;&lt;LI&gt;Go to &lt;STRONG&gt;Settings&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Integrations&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Private Apps&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Create a new private app and ensure you have the appropriate scopes (permissions) for managing webhooks.&lt;/LI&gt;&lt;LI&gt;Copy the access token provided.&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;2. Update Webhook Settings Using Access Token&lt;/H3&gt;&lt;P&gt;You can use the access token to authenticate your requests to the HubSpot API. Here is an example using the curl command to update webhook settings.&lt;/P&gt;&lt;H4&gt;Update Subscription Endpoint&lt;/H4&gt;&lt;P&gt;To update webhook subscriptions, you can use the following curl command:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;curl --request POST \ --url &lt;A href="https://api.hubapi.com/webhooks/v3/{appId}/subscriptions" target="_blank" rel="noopener"&gt;https://api.hubapi.com/webhooks/v3/{appId}/subscriptions&lt;/A&gt; \ --header &lt;SPAN class=""&gt;'Authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/SPAN&gt; \ --header &lt;SPAN class=""&gt;'Content-Type: application/json'&lt;/SPAN&gt; \ --data &lt;SPAN class=""&gt;'{ "subscriptionDetails": { "eventType": "contact.creation", "propertyName": "email" } }'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Replace YOUR_ACCESS_TOKEN with your actual access token and {appId} with your app ID. Modify the subscriptionDetails as per your requirements.&lt;/P&gt;&lt;H4&gt;Update Webhook URL Endpoint&lt;/H4&gt;&lt;P&gt;To update the webhook URL settings, you can use the following curl command:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;curl --request PUT \ --url &lt;A href="https://api.hubapi.com/webhooks/v3/{appId}/settings" target="_blank" rel="noopener"&gt;https://api.hubapi.com/webhooks/v3/{appId}/settings&lt;/A&gt; \ --header &lt;SPAN class=""&gt;'Authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/SPAN&gt; \ --header &lt;SPAN class=""&gt;'Content-Type: application/json'&lt;/SPAN&gt; \ --data &lt;SPAN class=""&gt;'{ "webhookUrl": "&lt;A href="https://your-new-webhook-url.com" target="_blank" rel="noopener"&gt;https://your-new-webhook-url.com&lt;/A&gt;", "maxConcurrentRequests": 5 }'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Replace YOUR_ACCESS_TOKEN with your actual access token, {appId} with your app ID, and &lt;A href="https://your-new-webhook-url.com" target="_blank" rel="noopener"&gt;https://your-new-webhook-url.com&lt;/A&gt; with your new webhook URL. You can also adjust maxConcurrentRequests as needed.&lt;/P&gt;&lt;H3&gt;Example Using a Programming Language&lt;/H3&gt;&lt;P&gt;If you prefer using a programming language like Python, here is an example using the requests library:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; requests &lt;SPAN class=""&gt;# Replace with your actual values&lt;/SPAN&gt; access_token = &lt;SPAN class=""&gt;'YOUR_ACCESS_TOKEN'&lt;/SPAN&gt; app_id = &lt;SPAN class=""&gt;'YOUR_APP_ID'&lt;/SPAN&gt; webhook_url = &lt;SPAN class=""&gt;'&lt;A href="https://your-new-webhook-url.com" target="_blank" rel="noopener"&gt;https://your-new-webhook-url.com&lt;/A&gt;'&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Update webhook settings&lt;/SPAN&gt; url = &lt;SPAN class=""&gt;f'&lt;A href="https://api.hubapi.com/webhooks/v3/" target="_blank" rel="noopener"&gt;https://api.hubapi.com/webhooks/v3/&lt;/A&gt;&lt;SPAN class=""&gt;{app_id}&lt;/SPAN&gt;/settings'&lt;/SPAN&gt; headers = { &lt;SPAN class=""&gt;'Authorization'&lt;/SPAN&gt;: &lt;SPAN class=""&gt;f'Bearer &lt;SPAN class=""&gt;{access_token}&lt;/SPAN&gt;'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;'Content-Type'&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'application/json'&lt;/SPAN&gt; } data = { &lt;SPAN class=""&gt;"webhookUrl"&lt;/SPAN&gt;: webhook_url, &lt;SPAN class=""&gt;"maxConcurrentRequests"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;5&lt;/SPAN&gt; } response = requests.put(url, headers=headers, json=data) &lt;SPAN class=""&gt;if&lt;/SPAN&gt; response.status_code == &lt;SPAN class=""&gt;200&lt;/SPAN&gt;: &lt;SPAN class=""&gt;print&lt;/SPAN&gt;(&lt;SPAN class=""&gt;"Webhook URL updated successfully."&lt;/SPAN&gt;) &lt;SPAN class=""&gt;else&lt;/SPAN&gt;: &lt;SPAN class=""&gt;print&lt;/SPAN&gt;(&lt;SPAN class=""&gt;f"Failed to update webhook URL: &lt;SPAN class=""&gt;{response.status_code}&lt;/SPAN&gt; - &lt;SPAN class=""&gt;{response.text}&lt;/SPAN&gt;"&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;P&gt;Make sure your private app has the necessary scopes to manage webhooks. Using the Authorization: Bearer YOUR_ACCESS_TOKEN header in your requests will authenticate them correctly.&lt;/P&gt;&lt;P&gt;If you encounter any issues, double-check your access token and permissions, and ensure your requests are correctly formatted.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Good luck and please give me a shout if I can help with anything.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James - CEO&amp;nbsp;@&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.portant.co/" target="_blank" rel="noopener nofollow noreferrer"&gt;Portant&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;Portant App for HubSpot:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://ecosystem.hubspot.com/marketplace/apps/sales/sales-enablement/portant-hubspot-google-docs-integration" target="_blank" rel="noopener noreferrer"&gt;https://ecosystem.hubspot.com/marketplace/apps/sales/sales-enablement/portant-hubspot-google-docs-in...&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 21 May 2024 13:15:44 GMT</pubDate>
    <dc:creator>james-portant</dc:creator>
    <dc:date>2024-05-21T13:15:44Z</dc:date>
    <item>
      <title>Webhook through accesstoken for private apps</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979453#M73755</link>
      <description>&lt;P&gt;Can we update the webhookurl or hit these endpoint "&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/webhooks/v3/appId/subscriptions" target="_blank"&gt;https://api.hubapi.com/webhooks/v3/appId/subscriptions&lt;/A&gt;&lt;/SPAN&gt;" or "&lt;SPAN&gt;&lt;A href="https://api.hubapi.com/webhooks/v3/appId/settings" target="_blank"&gt;https://api.hubapi.com/webhooks/v3/appId/settings&lt;/A&gt;&lt;/SPAN&gt;" with access token.I tried with api key it worked but i want to hit through access token to update my webhook settings ,Is it possible?If possible, How?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 05:47:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979453#M73755</guid>
      <dc:creator>gayathri139</dc:creator>
      <dc:date>2024-05-21T05:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook through accesstoken for private apps</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979707#M73767</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/749610"&gt;@gayathri139&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Yes, it is possible to update the webhook URL or hit the specified endpoints using an access token for private apps in HubSpot.&lt;BR /&gt;HubSpot is deprecating API keys in favor of OAuth access tokens, you should be able to perform these actions with an access token.&lt;/P&gt;&lt;P&gt;Here is a step-by-step guide on how to achieve this:&lt;/P&gt;&lt;H3&gt;1. Obtain the Access Token&lt;/H3&gt;&lt;P&gt;First, ensure you have the access token for your private app:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Navigate to your HubSpot account.&lt;/LI&gt;&lt;LI&gt;Go to &lt;STRONG&gt;Settings&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Integrations&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Private Apps&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Create a new private app and ensure you have the appropriate scopes (permissions) for managing webhooks.&lt;/LI&gt;&lt;LI&gt;Copy the access token provided.&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;2. Update Webhook Settings Using Access Token&lt;/H3&gt;&lt;P&gt;You can use the access token to authenticate your requests to the HubSpot API. Here is an example using the curl command to update webhook settings.&lt;/P&gt;&lt;H4&gt;Update Subscription Endpoint&lt;/H4&gt;&lt;P&gt;To update webhook subscriptions, you can use the following curl command:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;curl --request POST \ --url &lt;A href="https://api.hubapi.com/webhooks/v3/{appId}/subscriptions" target="_blank" rel="noopener"&gt;https://api.hubapi.com/webhooks/v3/{appId}/subscriptions&lt;/A&gt; \ --header &lt;SPAN class=""&gt;'Authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/SPAN&gt; \ --header &lt;SPAN class=""&gt;'Content-Type: application/json'&lt;/SPAN&gt; \ --data &lt;SPAN class=""&gt;'{ "subscriptionDetails": { "eventType": "contact.creation", "propertyName": "email" } }'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Replace YOUR_ACCESS_TOKEN with your actual access token and {appId} with your app ID. Modify the subscriptionDetails as per your requirements.&lt;/P&gt;&lt;H4&gt;Update Webhook URL Endpoint&lt;/H4&gt;&lt;P&gt;To update the webhook URL settings, you can use the following curl command:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;curl --request PUT \ --url &lt;A href="https://api.hubapi.com/webhooks/v3/{appId}/settings" target="_blank" rel="noopener"&gt;https://api.hubapi.com/webhooks/v3/{appId}/settings&lt;/A&gt; \ --header &lt;SPAN class=""&gt;'Authorization: Bearer YOUR_ACCESS_TOKEN'&lt;/SPAN&gt; \ --header &lt;SPAN class=""&gt;'Content-Type: application/json'&lt;/SPAN&gt; \ --data &lt;SPAN class=""&gt;'{ "webhookUrl": "&lt;A href="https://your-new-webhook-url.com" target="_blank" rel="noopener"&gt;https://your-new-webhook-url.com&lt;/A&gt;", "maxConcurrentRequests": 5 }'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Replace YOUR_ACCESS_TOKEN with your actual access token, {appId} with your app ID, and &lt;A href="https://your-new-webhook-url.com" target="_blank" rel="noopener"&gt;https://your-new-webhook-url.com&lt;/A&gt; with your new webhook URL. You can also adjust maxConcurrentRequests as needed.&lt;/P&gt;&lt;H3&gt;Example Using a Programming Language&lt;/H3&gt;&lt;P&gt;If you prefer using a programming language like Python, here is an example using the requests library:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;import&lt;/SPAN&gt; requests &lt;SPAN class=""&gt;# Replace with your actual values&lt;/SPAN&gt; access_token = &lt;SPAN class=""&gt;'YOUR_ACCESS_TOKEN'&lt;/SPAN&gt; app_id = &lt;SPAN class=""&gt;'YOUR_APP_ID'&lt;/SPAN&gt; webhook_url = &lt;SPAN class=""&gt;'&lt;A href="https://your-new-webhook-url.com" target="_blank" rel="noopener"&gt;https://your-new-webhook-url.com&lt;/A&gt;'&lt;/SPAN&gt; &lt;SPAN class=""&gt;# Update webhook settings&lt;/SPAN&gt; url = &lt;SPAN class=""&gt;f'&lt;A href="https://api.hubapi.com/webhooks/v3/" target="_blank" rel="noopener"&gt;https://api.hubapi.com/webhooks/v3/&lt;/A&gt;&lt;SPAN class=""&gt;{app_id}&lt;/SPAN&gt;/settings'&lt;/SPAN&gt; headers = { &lt;SPAN class=""&gt;'Authorization'&lt;/SPAN&gt;: &lt;SPAN class=""&gt;f'Bearer &lt;SPAN class=""&gt;{access_token}&lt;/SPAN&gt;'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;'Content-Type'&lt;/SPAN&gt;: &lt;SPAN class=""&gt;'application/json'&lt;/SPAN&gt; } data = { &lt;SPAN class=""&gt;"webhookUrl"&lt;/SPAN&gt;: webhook_url, &lt;SPAN class=""&gt;"maxConcurrentRequests"&lt;/SPAN&gt;: &lt;SPAN class=""&gt;5&lt;/SPAN&gt; } response = requests.put(url, headers=headers, json=data) &lt;SPAN class=""&gt;if&lt;/SPAN&gt; response.status_code == &lt;SPAN class=""&gt;200&lt;/SPAN&gt;: &lt;SPAN class=""&gt;print&lt;/SPAN&gt;(&lt;SPAN class=""&gt;"Webhook URL updated successfully."&lt;/SPAN&gt;) &lt;SPAN class=""&gt;else&lt;/SPAN&gt;: &lt;SPAN class=""&gt;print&lt;/SPAN&gt;(&lt;SPAN class=""&gt;f"Failed to update webhook URL: &lt;SPAN class=""&gt;{response.status_code}&lt;/SPAN&gt; - &lt;SPAN class=""&gt;{response.text}&lt;/SPAN&gt;"&lt;/SPAN&gt;)&lt;/DIV&gt;&lt;/DIV&gt;&lt;H3&gt;&amp;nbsp;&lt;/H3&gt;&lt;P&gt;Make sure your private app has the necessary scopes to manage webhooks. Using the Authorization: Bearer YOUR_ACCESS_TOKEN header in your requests will authenticate them correctly.&lt;/P&gt;&lt;P&gt;If you encounter any issues, double-check your access token and permissions, and ensure your requests are correctly formatted.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Good luck and please give me a shout if I can help with anything.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;James - CEO&amp;nbsp;@&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.portant.co/" target="_blank" rel="noopener nofollow noreferrer"&gt;Portant&lt;BR /&gt;&lt;/A&gt;&lt;BR /&gt;&lt;STRONG&gt;Portant App for HubSpot:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://ecosystem.hubspot.com/marketplace/apps/sales/sales-enablement/portant-hubspot-google-docs-integration" target="_blank" rel="noopener noreferrer"&gt;https://ecosystem.hubspot.com/marketplace/apps/sales/sales-enablement/portant-hubspot-google-docs-in...&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 May 2024 13:15:44 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979707#M73767</guid>
      <dc:creator>james-portant</dc:creator>
      <dc:date>2024-05-21T13:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook through accesstoken for private apps</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979736#M73772</link>
      <description>&lt;P&gt;i tried hitting the curls you provided and i got this as response, and could you please share the scopes that are required to hit these.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"status"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"error"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"message"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"The scope needed for this API call isn't available for public use. If you have questions, contact support or post in our developer forum."&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"correlationId"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"30d4e060-e524-4211-8715-5e7f724eba11"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"links"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"support"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://help.hubspot.com/" target="_blank" rel="noopener"&gt;https://help.hubspot.com/&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"forum"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;A href="https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations" target="_blank" rel="noopener"&gt;https://community.hubspot.com/t5/APIs-Integrations/bd-p/integrations&lt;/A&gt;"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; },&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"category"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"MISSING_SCOPES"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 May 2024 13:46:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979736#M73772</guid>
      <dc:creator>gayathri139</dc:creator>
      <dc:date>2024-05-21T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook through accesstoken for private apps</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979791#M73776</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/749610"&gt;@gayathri139&lt;/a&gt;&amp;nbsp;, maybe I copied it wrong:&lt;BR /&gt;curl --request PUT \&lt;BR /&gt;--url '&lt;A href="https://api.hubapi.com/webhooks/v3//settings?hapikey=YOUR_HUBSPOT_DEVELOPER_API_KEY" target="_blank" rel="noopener"&gt;https://api.hubapi.com/webhooks/v3//settings?hapikey=YOUR_HUBSPOT_DEVELOPER_API_KEY&lt;/A&gt;' \&lt;BR /&gt;--header 'content-type: application/json' \&lt;BR /&gt;--data '{&lt;BR /&gt;"throttling": {&lt;BR /&gt;"period": "SECONDLY",&lt;BR /&gt;"maxConcurrentRequests": 5&lt;BR /&gt;},&lt;BR /&gt;"targetUrl": "&lt;A href="https://www.example.com/hubspot/target" target="_blank" rel="noopener"&gt;https://www.example.com/hubspot/target&lt;/A&gt;"&lt;BR /&gt;}'&lt;BR /&gt;&lt;BR /&gt;Found here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/api/webhooks" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/api/webhooks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For scopes:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Go to &lt;STRONG&gt;Settings&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Integrations&lt;/STRONG&gt; &amp;gt; &lt;STRONG&gt;Private Apps&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Select your private app.&lt;/LI&gt;&lt;LI&gt;Ensure that the following scopes are enabled:&lt;UL&gt;&lt;LI&gt;webhooks&lt;/LI&gt;&lt;LI&gt;Any other specific scopes required for your API operations (e.g., contacts if you are dealing with contact creation).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I hope that works this time.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 15:14:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/979791#M73776</guid>
      <dc:creator>james-portant</dc:creator>
      <dc:date>2024-05-21T15:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook through accesstoken for private apps</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/980134#M73790</link>
      <description>&lt;P&gt;Hii James, Thanks for the time and assistance.&lt;BR /&gt;You provided the curl to hit it with api key, but i need it to hit through ACCESS TOKEN,Thats my actual requirement. You again provided the curl which i have already tried and got the response using api key.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 05:58:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/980134#M73790</guid>
      <dc:creator>gayathri139</dc:creator>
      <dc:date>2024-05-22T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Webhook through accesstoken for private apps</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/980781#M73823</link>
      <description>&lt;P&gt;Hey, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/749610"&gt;@gayathri139&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Happy to help clarify things here.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looking at the &lt;A href="https://developers.hubspot.com/docs/api/webhooks#:~:text=You%20can%20also%20manage%20webhooks%20in%20a%20private%20app.%20In%20private%20apps%2C%20webhook%20settings%20can%20only%20be%20edited%20in%20the%20in%2Dapp%20settings%20for%20your%20private%20app%2C%20and%20cannot%20currently%20be%20edited%20through%20the%20API." target="_blank"&gt;documentation&lt;/A&gt;:&lt;/P&gt;
&lt;UL&gt;
 &lt;LI&gt;The Webhooks API can &lt;STRONG&gt;only &lt;/STRONG&gt;be accessed using your Developer API key &amp;nbsp;— “Webhooks are set up for a HubSpot app, not individual accounts.”&lt;/LI&gt;
 &lt;LI&gt;You can set up and manage Webhooks via a Private App, but it &lt;STRONG&gt;must &lt;/STRONG&gt;be done in-app – “You can also &lt;A href="https://developers.hubspot.com/docs/api/create-and-edit-webhook-subscriptions-in-private-apps" target="_blank"&gt;manage webhooks in a private app&lt;/A&gt;. In private apps, webhook settings can only be edited in the in-app settings for your private app, and &lt;STRONG&gt;cannot currently be edited through the API&lt;/STRONG&gt;.”. Otherwise, if you try to use your Private App token using the Webhooks API, you'll get an error (as you noted)&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;If you have a Public App (using OAuth) you can use the Developer API key and The Webhooks API to setup and manage your webhook subscriptions. If you are using a Private App, it must be done in-app.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps get you moving forward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 21:12:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Webhook-through-accesstoken-for-private-apps/m-p/980781#M73823</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-05-22T21:12:05Z</dc:date>
    </item>
  </channel>
</rss>

