# AccessToken Information Endpoint not working

**URL:** <https://community.hubspot.com/t/accesstoken-information-endpoint-not-working/30249>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [January 15, 2021, 12:12am UTC](https://community.hubspot.com/t/accesstoken-information-endpoint-not-working/30249 "2021-01-15T00:12:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mkhurshid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mkhurshid/32/31851_2.png) [@Mkhurshid](https://community.hubspot.com/u/Mkhurshid)\
**Post date:** [January 15, 2021, 12:12am UTC](https://community.hubspot.com/t/accesstoken-information-endpoint-not-working/30249/1 "2021-01-15T00:12:50Z")

</div>

The following end point is not working for me

`https://api.hubapi.com/oauth/v1/access-tokens/{ACCESS_TOKEN}}`

Postman has the following reponse

{  
“status”: “error”,  
“message”: “The access token must have the correct format”,  
“correlationId”: “a0d2c7fb-9edf-4822-a924-8b931ffe9d90”  
}

I know Access Token is good since I use the Access Token for standard API requests and I do not have an issue.

This is how I am generating the Oauth2 Access Token

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fauth-oauth-v1%2Ftokens%2Fpost-oauth-v1-token)**

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [January 15, 2021, 3:51pm UTC](https://community.hubspot.com/t/accesstoken-information-endpoint-not-working/30249/2 "2021-01-15T15:51:46Z")

</div>

Hi @Mkhurshid

Are you still having this issue? I just did a test and did not encounter this error

@prosa , have you ever experienced this?

---

<div class="post-metadata">

**Author:** ![Mkhurshid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mkhurshid/32/31851_2.png) [@Mkhurshid](https://community.hubspot.com/u/Mkhurshid)\
**Post date:** [January 16, 2021, 7:48am UTC](https://community.hubspot.com/t/accesstoken-information-endpoint-not-working/30249/3 "2021-01-16T07:48:36Z")

</div>

Yes I am still having an issue. Can you share the cURL. It simply

---

<div class="post-metadata">

**Author:** ![Mkhurshid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mkhurshid/32/31851_2.png) [@Mkhurshid](https://community.hubspot.com/u/Mkhurshid)\
**Post date:** [January 16, 2021, 7:55am UTC](https://community.hubspot.com/t/accesstoken-information-endpoint-not-working/30249/4 "2021-01-16T07:55:46Z")

</div>

Nevermind works like a charm, I had an underscore in the URL instead of a dash 🙄. Thanks for your help.

---

<div class="post-metadata">

**Author:** ![FG](https://avatars.discourse-cdn.com/v4/letter/f/c37758/32.png) [@FG](https://community.hubspot.com/u/FG)\
**Post date:** [September 9, 2024, 2:10pm UTC](https://community.hubspot.com/t/accesstoken-information-endpoint-not-working/30249/5 "2024-09-09T14:10:12Z")

</div>

We are using the NodeJS SDK and we’re using the function `

hubspotClient.oauth.accessTokensApi.get`

This function throws an error when we pass the access token like this:

```

hubspotClient.oauth.accessTokensApi.get(user.hubspotAccessToken)

```  
The variable `user.hubspotAccessToken` is 100% valid and we use the literally same variable for all other requests when instantiating the client.

I debugged your code and the `get` function from your client is trying to make a request to the following endpoint (which looks correct)

This is the path I can see from the debugger.

‘/oauth/v1/access-tokens/pat-eu1-censored-rest-of-access-token’

Please can you tell me what I can do?!
