APIs & Integrations

MOkano
Member | Elite Partner
Member | Elite Partner

List atachments from Contacts and Custom Objects

I know how to upload files and attach them to contacts but  how read all atachments from a Contact using Hubspot API? And atachments from Custom Objects?

0 Upvotes
1 Reply 1
webdew
Guide | Diamond Partner
Guide | Diamond Partner

List atachments from Contacts and Custom Objects

Hi @MOkano ,

Use this for get activities and check attachments id's here in activities result:
https://legacydocs.hubspot.com/docs/methods/engagements/get-all-engagements

If you want get only contact activities then please using the assciation of contacts with engagements.
https://legacydocs.hubspot.com/docs/methods/crm-associations/get-associations

use this url for getting associate engagements with attachment if having:

https://api.hubapi.com/crm-associations/v1/associations/<Contacts_VID>/HUBSPOT_DEFINED/9?hapikey=demo

use "9" for get contacts engagements

Hope this helps!


If we were able to answer your query, kindly help the community by marking it as a solution.

Thanks and Regards.