# Ticket API attachments

**URL:** <https://community.hubspot.com/t/ticket-api-attachments/80725>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [May 8, 2023, 8:16am UTC](https://community.hubspot.com/t/ticket-api-attachments/80725 "2023-05-08T08:16:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MCaputo599](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@MCaputo599](https://community.hubspot.com/u/MCaputo599)\
**Post date:** [May 8, 2023, 8:16am UTC](https://community.hubspot.com/t/ticket-api-attachments/80725/1 "2023-05-08T08:16:42Z")

</div>

Hi everyone,

Is it possible with the ticket API to also retrieve the associated attachments?

Thanks

---

<div class="post-metadata">

**Author:** ![JBeatty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbeatty/32/52252_2.png) [@JBeatty](https://community.hubspot.com/u/JBeatty)\
**Post date:** [May 8, 2023, 3:20pm UTC](https://community.hubspot.com/t/ticket-api-attachments/80725/2 "2023-05-08T15:20:54Z")

</div>

Hi @MCaputo599,

This post should be able to help you out. It is for deals and not tickets, but the behavoir is the same:

[https://community.hubspot.com/t5/APIs-Integrations/How-to-get-file-attachments-associated-to-a-single-deal-with-API/m-p/453404](https://community.hubspot.com/t5/APIs-Integrations/How-to-get-file-attachments-associated-to-a-single-deal-with-API/m-p/453404)

Best,

---

<div class="post-metadata">

**Author:** ![MCaputo599](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@MCaputo599](https://community.hubspot.com/u/MCaputo599)\
**Post date:** [May 9, 2023, 7:51am UTC](https://community.hubspot.com/t/ticket-api-attachments/80725/3 "2023-05-09T07:51:47Z")

</div>

Hi Joshua,

I had seen this solution but it doesn’t seem to work for tickets

Thanks

---

<div class="post-metadata">

**Author:** ![JBeatty](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jbeatty/32/52252_2.png) [@JBeatty](https://community.hubspot.com/u/JBeatty)\
**Post date:** [May 9, 2023, 3:26pm UTC](https://community.hubspot.com/t/ticket-api-attachments/80725/4 "2023-05-09T15:26:31Z")

</div>

Hi @MCaputo599,

What part of that process didn’t work for you? I just tried it out with a ticket in my portal and it worked correctly. Remeber to change the association type from 11 to 17. 11 is Deal to Engagement, while 17 is Ticket to Engagement as seen here: [Accounts Dashboard | HubSpot](https://legacydocs.hubspot.com/docs/methods/crm-associations/crm-associations-overview).

 ![JBeatty_0-1683645919275.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/6/46be9b4d21198e4df81895982fdcf6d344d1a041.png)

 ![JBeatty_1-1683645962298.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/ab65ad099ddac5d1111fb41953a17be0a8038087.png)

Best,

---

<div class="post-metadata">

**Author:** ![Franci](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/franci/32/225468_2.png) [@Franci](https://community.hubspot.com/u/Franci)\
**Post date:** [November 6, 2023, 3:37pm UTC](https://community.hubspot.com/t/ticket-api-attachments/80725/5 "2023-11-06T15:37:12Z")

</div>

Hi Everyone,

I work for a HubSpot Diamond Partner. We have developed an app for the marketplace that helps identify objects with attached files and provides a live count of the associated attachments, continuously updated in real-time.

We are seeking beta testers who can try our app at no cost, provide valuable feedback, and assist us in enhancing the product’s overall usability.

👉 Join the Beta Test → [Installation link](https://cdn.apps.exelab.com/2045410/consent) 🔗

👉 _How it works_ document → [PDF](https://exelab.com/hubfs/Apps%20Exelab/Has%20Attachment%20Filter/Has%20Attachment%20Filter%20-%20How%20it%20works.pdf)

While you’re here, don’t forget to check out [our other apps](https://ecosystem.hubspot.com/marketplace/apps/all-categories?eco_search=Exelab) in the HubSpot Marketplace for more helpful solutions!

Cheers!
