Creating legacy public apps and project-based apps is temporary unavailable for new HubSpot accounts.
Learn more in our Trust Center.
curl --request GET \
--url https://api.hubapi.com/oauth/v1/refresh-tokens/{token}{
"token": "<string>",
"user": "<string>",
"hub_domain": "<string>",
"scopes": [
"<string>"
],
"hub_id": 123,
"client_id": "<string>",
"user_id": 123,
"token_type": "<string>"
}Get the metadata for a refresh token. This can be used to get the email address of the HubSpot user that the token was created for, as well as the Hub ID that the token is associated with.
curl --request GET \
--url https://api.hubapi.com/oauth/v1/refresh-tokens/{token}{
"token": "<string>",
"user": "<string>",
"hub_domain": "<string>",
"scopes": [
"<string>"
],
"hub_id": 123,
"client_id": "<string>",
"user_id": 123,
"token_type": "<string>"
}The refresh token that you want to get the metadata for.
Refresh token metadata retrieved successfully
The refresh token
Email address of the HubSpot user
The hub domain
List of scopes granted to the token
The Hub ID that the token is associated with
The client ID
The user ID
The type of token
Was this page helpful?