# The API was obtained by OAuth2 Token

**URL:** <https://community.hubspot.com/t/the-api-was-obtained-by-oauth2-token/97478>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [January 10, 2024, 5:24am UTC](https://community.hubspot.com/t/the-api-was-obtained-by-oauth2-token/97478 "2024-01-10T05:24:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_Shearwater](https://avatars.discourse-cdn.com/v4/letter/_/ad7895/32.png) [@\_Shearwater](https://community.hubspot.com/u/_Shearwater)\
**Post date:** [January 10, 2024, 5:24am UTC](https://community.hubspot.com/t/the-api-was-obtained-by-oauth2-token/97478/1 "2024-01-10T05:24:11Z")

</div>

Step 2: HubSpot prompts user for consentAfter performing the above steps, authentication failed.  
Error message: Authentication failed.

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [January 10, 2024, 2:54pm UTC](https://community.hubspot.com/t/the-api-was-obtained-by-oauth2-token/97478/2 "2024-01-10T14:54:06Z")

</div>

Hi [@林Shearwater](https://community.hubspot.com/t5/user/viewprofilepage/user-id/689832)

Can you share more details on this. It is not clear what the query is. You can share the code or screen shot of the issue

Thanks!

---

<div class="post-metadata">

**Author:** ![\_Shearwater](https://avatars.discourse-cdn.com/v4/letter/_/ad7895/32.png) [@\_Shearwater](https://community.hubspot.com/u/_Shearwater)\
**Post date:** [January 11, 2024, 12:17am UTC](https://community.hubspot.com/t/the-api-was-obtained-by-oauth2-token/97478/3 "2024-01-11T00:17:50Z")

</div>

This time, I would like to link Huspot (a public app) with an external system.  
The authentication method in the system is Oauth2.  
Is it possible to obtain a token using postman?  
Are the settings correct on the Huspot side?  
We apologize for the inconvenience and thank you for your understanding.

 ![インテグレーション設定.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/7/6704352c6e7602acc996d088f2198b0861e7f861.png)

 ![Developers-HubSpot.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7a08d127c0beccdc67baaba3ddaa45317e98bb2d.png)

---

<div class="post-metadata">

**Author:** ![GRajput](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/grajput/32/102020_2.png) [@GRajput](https://community.hubspot.com/u/GRajput)\
**Post date:** [January 12, 2024, 10:58am UTC](https://community.hubspot.com/t/the-api-was-obtained-by-oauth2-token/97478/4 "2024-01-12T10:58:43Z")

</div>

Hi [@林Shearwater](https://community.hubspot.com/t5/user/viewprofilepage/user-id/689832)

Regarding the query you have shared in the screenshot, I can’t understand the language. Can you please share the screenshot in American English.

Thanks!

---

<div class="post-metadata">

**Author:** ![\_Shearwater](https://avatars.discourse-cdn.com/v4/letter/_/ad7895/32.png) [@\_Shearwater](https://community.hubspot.com/u/_Shearwater)\
**Post date:** [January 11, 2024, 9:43am UTC](https://community.hubspot.com/t/the-api-was-obtained-by-oauth2-token/97478/5 "2024-01-11T09:43:00Z")

</div>

## 

 ![インテグレーション設定.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/7/6704352c6e7602acc996d088f2198b0861e7f861.png)

 ![Developers-HubSpot.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7a08d127c0beccdc67baaba3ddaa45317e98bb2d.png)
