There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Execute functions when HubSpotConversations loads

Last updated June 17, 2020

window.hsConversationsOnReady = [...]

hsConversationsOnReady takes an array functions that will be executed as soon as the JavaScript API becomes available.

This array will only be processed once, when the JavaScript API is loaded. Adding items to the array after window.HubSpotConversations is ready will have no effect.