# connection between tickets and conversation

**URL:** <https://community.hubspot.com/t/connection-between-tickets-and-conversation/103295>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [March 24, 2024, 11:20pm UTC](https://community.hubspot.com/t/connection-between-tickets-and-conversation/103295 "2024-03-24T23:20:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PKondratiew](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@PKondratiew](https://community.hubspot.com/u/PKondratiew)\
**Post date:** [March 24, 2024, 11:20pm UTC](https://community.hubspot.com/t/connection-between-tickets-and-conversation/103295/1 "2024-03-24T23:20:51Z")

</div>

I would like to know if I can somehow get all the conversations included in a ticket and how to do this, or vice versa, can I get by the id of the conversation which ticket it is attached to?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 25, 2024, 4:12pm UTC](https://community.hubspot.com/t/connection-between-tickets-and-conversation/103295/2 "2024-03-25T16:12:06Z")

</div>

Hi, @PKondratiew 👋 Welcome to the community. Have you tried the Associations API? You can make a request to get the typeIDs for Tickets \> Conversations and Conversations \> Tickets. These are separate calls, as Associations in HubSpot are omnidirectional. Once you have those, you can use your Ticket ID to make requests to the Associations endpoints to get back records. We also have the  
[Conversations inbox and messages APIs (BETA) endpoints](https://developers.hubspot.com/docs/api/conversations/conversations), which are worth exploring as you work with conversations more.

Example:

Request

`https://api.hubapi.com/crm/v4/associations/Conversation/Ticket/labels`

Response

```lia-code-sample
{
 "results": [
 {
 "category": "HUBSPOT_DEFINED",
 "typeId": 31,
 "label": null
 },
 {
 "category": "HUBSPOT_DEFINED",
 "typeId": 277,
 "label": null
 }
 ]
}

```

Best,

Jaycee
