Marketing & CRM
Use a previously obtained refresh token to generate a new access token. Access tokens expire after 6 hours, so if you need offline access to data in HubSpot, you'll need to store the refresh token you get when initiating your OAuth integration, and use that to generate a new access token once the initial access token expires.
Note: HubSpot access tokens will fluctuate in size as we change the information that is encoded the tokens. We recommend allowing for tokens to be up to 300 characters to account for any changes we may make.