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.