Unable to get associated service tickets for a particular contact

Hi,

I have a requirement to get all service tickets of a particular contact. Unable to find anything regarding this in API document.

Please let me know if there is any possibility to achieve the above or Do the needful.

NOTE: I have tried get all tickets API. But unable to get any associated contact id from the response.

Hi, @manikandan1212.

The CRM Associations API allows you to retrieve tickets associated with a contact using definition ID 15 or contacts associated with a ticket using definition ID 16.

For example, if you wish to see all ticket IDs associated with contact record 1234, then you would use this endpoint and the request URL:

crm-associations/v1/associations/1234/HUBSPOT_DEFINED/15

With the ticket IDs returned, you could then query this endpoint to retrieve the ticket record data.