There's a new version of the HubSpot API

Starting November 30, 2022, API keys will be sunset as an authentication method. Learn more about this change and how to migrate an API key integration to use a private app instead.

Close the chat widget

Last updated June 17, 2020

HubSpotConversations.widget.close()

Close the widget. If the widget is already closed, this is a no-op.