# 403 ERROR on POST /oauth/v1/token

**URL:** <https://community.hubspot.com/t/403-error-on-post-oauth-v1-token/11811>\
**Category:** APIs & Integrations\
**Tags:** oauth\
**Created:** [April 4, 2018, 7:45pm UTC](https://community.hubspot.com/t/403-error-on-post-oauth-v1-token/11811 "2018-04-04T19:45:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [April 4, 2018, 7:45pm UTC](https://community.hubspot.com/t/403-error-on-post-oauth-v1-token/11811/1 "2018-04-04T19:45:17Z")

</div>

Hello, guys!

I’m trying to get an **Access Token** like the way it is explained in this link: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/methods/oauth2/get-access-and-refresh-tokens)

I already got the **Authorization Code** and my POST to the endpoint /oauth/v1/token is like:

[

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/0/8/08378cba40ca5862ea8f0787b317c9f58f186dce.png)

403-error.png1041x553 8.2 KB

]([https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/3/396adcf008c707eb9cd46e7e10eef0c82fb92b2f.png](https://community.hubspot.com/legacyfs/online/uploads/default/original/2X/3/396adcf008c707eb9cd46e7e10eef0c82fb92b2f.png))

What could this be? Can you help me?

Thanks!

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [April 5, 2018, 7:48pm UTC](https://community.hubspot.com/t/403-error-on-post-oauth-v1-token/11811/2 "2018-04-05T19:48:48Z")

</div>

Hi [@Thelio](https://community.hubspot.com/u/thelio),

The domain of your request URL must be `api.hubspot.com`, not `app.hubspot.com`.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [April 5, 2018, 8:01pm UTC](https://community.hubspot.com/t/403-error-on-post-oauth-v1-token/11811/3 "2018-04-05T20:01:10Z")

</div>

Thanks, Derek! I got the token
