# URL & Access Token to call webhook API

**URL:** <https://community.hubspot.com/t/url-access-token-to-call-webhook-api/63942>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [August 29, 2022, 12:09pm UTC](https://community.hubspot.com/t/url-access-token-to-call-webhook-api/63942 "2022-08-29T12:09:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ve\_api](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@ve\_api](https://community.hubspot.com/u/ve_api)\
**Post date:** [August 29, 2022, 12:09pm UTC](https://community.hubspot.com/t/url-access-token-to-call-webhook-api/63942/1 "2022-08-29T12:09:11Z")

</div>

What will be the process to generate URL to call Webhooks API to get deleted contacts? Also, how to generate access token for authorization?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [August 29, 2022, 1:11pm UTC](https://community.hubspot.com/t/url-access-token-to-call-webhook-api/63942/2 "2022-08-29T13:11:49Z")

</div>

Hi [@ve\_api](https://community.hubspot.com/t5/user/viewprofilepage/user-id/440699) ,

You need the [Webhook API](https://developers.hubspot.com/docs/api/webhooks) to get started with Webhooks. It uses the OAuth2 flow, which is described in these [docs](https://developers.hubspot.com/docs/api/working-with-oauth).

---

<div class="post-metadata">

**Author:** ![ve\_api](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@ve\_api](https://community.hubspot.com/u/ve_api)\
**Post date:** [August 30, 2022, 6:10am UTC](https://community.hubspot.com/t/url-access-token-to-call-webhook-api/63942/3 "2022-08-30T06:10:18Z")

</div>

Hi @Teun,

I was not able to get the access token after following the Oauth2 flow and it also did not connect my app to my hubspot account.

Also, what will be the URL(API) that will be called to get updated/created/deleted objects in the form of JSON?

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [August 30, 2022, 6:48am UTC](https://community.hubspot.com/t/url-access-token-to-call-webhook-api/63942/4 "2022-08-30T06:48:18Z")

</div>

Hi [@ve\_api](https://community.hubspot.com/t5/user/viewprofilepage/user-id/440699) ,

When you set up your webhooks, you can define the URL (endpoint) where the JSON should be posted.

---

<div class="post-metadata">

**Author:** ![ve\_api](https://avatars.discourse-cdn.com/v4/letter/v/f04885/32.png) [@ve\_api](https://community.hubspot.com/u/ve_api)\
**Post date:** [August 30, 2022, 10:06am UTC](https://community.hubspot.com/t/url-access-token-to-call-webhook-api/63942/5 "2022-08-30T10:06:54Z")

</div>

If I hit the URL with Acess Token as GET in postman, will it give me the JSON in response?
