Have a read of their API pages https://developers.hubspot.com/docs/methods/conversations_api/hubspot-conversations-javascript-api