APIs & Integrations

IntegrationDev
Contributor

/oauth/v1/access-tokens errors with private app access token

SOLVE

Hello,

 

When I try to use the v1 Get Information for OAuth 2.0 Access Token API with a private app token, the API errors.

GET https://api.hubapi.com/oauth/v1/access-tokens/pat-{rest of token here}

400 Bad Request
{
	"status": "error",
	"message": "The access token must have the correct format",
	"correlationId": "{correlation ID here}"
}

 

Any idea what's going on here?

 

Ultimately, what I'm trying to do is get the list of scopes associated with the currently being used private app (i.e. the private app's access token is being used to authenticate the current request). If using the above API won't work with private app access tokens, is there an alternate way to get the currently applicable scopes? I'm trying to wire in a way for my integration to adapt what does based on the access it has to HubSpot.

 

Thank you!

2 Accepted solutions
dennisedson
Solution
Community Manager
Community Manager

/oauth/v1/access-tokens errors with private app access token

SOLVE

@IntegrationDev 

There is not an equivalent endpoint for private apps, yet.   Presently, the only way to see the scopes is through the UI. 

I would suggest creating an idea and posting the idea link on this thread for anyone else looking for this functionality to upvote it.


loop Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.
Learn More

View solution in original post

IntegrationDev
Solution
Contributor

/oauth/v1/access-tokens errors with private app access token

SOLVE
2 Replies 2
IntegrationDev
Solution
Contributor

/oauth/v1/access-tokens errors with private app access token

SOLVE
dennisedson
Solution
Community Manager
Community Manager

/oauth/v1/access-tokens errors with private app access token

SOLVE

@IntegrationDev 

There is not an equivalent endpoint for private apps, yet.   Presently, the only way to see the scopes is through the UI. 

I would suggest creating an idea and posting the idea link on this thread for anyone else looking for this functionality to upvote it.


loop Loop Marketing is a new four-stage approach that combines AI efficiency and human authenticity to drive growth.
Learn More