# Getting 403 status code while adding webhook subscription using api

**URL:** <https://community.hubspot.com/t/getting-403-status-code-while-adding-webhook-subscription-using-api/21734>\
**Category:** APIs & Integrations\
**Tags:** webhooks\
**Created:** [June 16, 2020, 5:46am UTC](https://community.hubspot.com/t/getting-403-status-code-while-adding-webhook-subscription-using-api/21734 "2020-06-16T05:46:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bulbul](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/bulbul/32/44643_2.png) [@bulbul](https://community.hubspot.com/u/bulbul)\
**Post date:** [June 16, 2020, 5:46am UTC](https://community.hubspot.com/t/getting-403-status-code-while-adding-webhook-subscription-using-api/21734/1 "2020-06-16T05:46:06Z")

</div>

Hi,

Getting 403 status code while adding webhook subscription using api. Could anybody please let me know, what are the prerequisites this apis,

Thanks,

Bulbul

---

<div class="post-metadata">

**Author:** ![Willson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willson/32/84663_2.png) [@Willson](https://community.hubspot.com/u/Willson)\
**Post date:** [June 18, 2020, 10:51am UTC](https://community.hubspot.com/t/getting-403-status-code-while-adding-webhook-subscription-using-api/21734/2 "2020-06-18T10:51:09Z")

</div>

Hey @bulbul

This error is commonly encountered when there is an issue with the scopes of the app. To confirm here, your app will need to be configured to require the `contacts` scope.

This scope **must** be set up before you will be able to create any any webhook subscriptions, either from your developer account in the app settings, or when using the Webhooks API to configure subscriptions.

See the OAuth documentation for [more details about scopes](https://legacydocs.hubspot.com/docs/methods/oauth2/initiate-oauth-integration#scopes) and [setting up the authorization URL](https://legacydocs.hubspot.com/docs/methods/oauth2/initiate-oauth-integration?hsLang=en) for your app.

I hope this helps!
