Use a previously obtained refresh token to generate a new access token.
Access tokens are short lived. You can check the expires_in parameter when generating an access token to determine its lifetime (in seconds). If you need offline access to HubSpot data, store the refresh token you get when initiating your OAuth integration and use it to generate a new access token once the initial one expires.
Note: HubSpot access tokens will fluctuate in size as the information that’s encoded in them changes over time. It’s recommended to allow for tokens to be up to 300 characters to account for any potential changes.
A confidential credential known only to the application and the authorization server, used to authenticate the client's identity when making token requests.
A long-lived credential issued alongside an access token that can be exchanged for a new access token alongside client credentials when the current access_token expires, allowing continued API access without requiring the user to re-authenticate.
successful operation
The access token used for authentication in API requests.
The duration in seconds for which the access token is valid.
The ID of the HubSpot account associated with the token.
The ID token that contains identity claims about the user.
The type of token, typically indicating the authentication scheme. Typically bearer.
The ID of the hubspot user for whom the token was created.