# API to query conversations (Live Chat)?

**URL:** <https://community.hubspot.com/t/api-to-query-conversations-live-chat/21482>\
**Category:** APIs & Integrations\
**Tags:** timeline-and-extensions-apis\
**Created:** [June 7, 2020, 9:31am UTC](https://community.hubspot.com/t/api-to-query-conversations-live-chat/21482 "2020-06-07T09:31:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Munro](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tim_munro/32/87893_2.png) [@Tim\_Munro](https://community.hubspot.com/u/Tim_Munro)\
**Post date:** [June 7, 2020, 9:31am UTC](https://community.hubspot.com/t/api-to-query-conversations-live-chat/21482/1 "2020-06-07T09:31:25Z")

</div>

Wondering if there is an API, similar to the “Engagements API”, that would allow us to query for recent “Live Chat” messages in order to retrieve the chat messages linked to a particular contact (email address). The desire is to load these chat interactions into another system.

Have scanned the recent API docs, but not seeing any way to retrieve “Live Chat” interactions.

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [June 8, 2020, 5:32am UTC](https://community.hubspot.com/t/api-to-query-conversations-live-chat/21482/2 "2020-06-08T05:32:15Z")

</div>

Hey [@Tim\_Munro](https://community.hubspot.com/t5/user/viewprofilepage/user-id/17996),

At the moment, we do not have a public API to retrieve chat messages or export it. For now, you can only [Email the chat transcript](https://knowledge.hubspot.com/conversations/chat-with-your-website-visitors) or view it in-app.

---

<div class="post-metadata">

**Author:** ![marcusC](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/marcusc/32/73373_2.png) [@marcusC](https://community.hubspot.com/u/marcusC)\
**Post date:** [September 15, 2020, 5:30pm UTC](https://community.hubspot.com/t/api-to-query-conversations-live-chat/21482/3 "2020-09-15T17:30:11Z")

</div>

Hello @WendyGoh , Is there any other option to export chat messages from Chatflow besides emailing the transcript. Can I use a webhook to trigger an external endpoint to export the entire chat conversation once its completed.

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [September 17, 2020, 2:29am UTC](https://community.hubspot.com/t/api-to-query-conversations-live-chat/21482/4 "2020-09-17T02:29:19Z")

</div>

Hey @marcusC,

Currently, HubSpot APIs does not support an endpoint that export chat messages. The best way to retrieve these messages is still using the [Email chat transcript feature](https://knowledge.hubspot.com/conversations/chat-with-your-website-visitors) within your HubSpot portal.

---

<div class="post-metadata">

**Author:** ![m4tthumphrey](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/m4tthumphrey/32/27089_2.png) [@m4tthumphrey](https://community.hubspot.com/u/m4tthumphrey)\
**Post date:** [October 15, 2021, 9:21am UTC](https://community.hubspot.com/t/api-to-query-conversations-live-chat/21482/5 "2021-10-15T09:21:09Z")

</div>

So the API is there but it does not look like the public can consume it (outside of using the front end UI):

[https://api.hubspot.com/livechat/v1/timeline/history](https://api.hubspot.com/livechat/v1/timeline/history)

Is the endpoint (albeit with additional query args) but it doesnt like the `hapikey`. There must be someway of us being able to interact with an already existing API?
