is this still the case? the only reason I ask is I'm trying to access all the documents within a deal. Using the current method I have to get all of the engagements for a deal, then loop around those to get the attachment id, then make a separate call to get each document.
On top of this, if there are 100 records in the first engagement call, I have to make another call shifting the offset to get more engagements, then do the above all over again.
Surely there is a get /files/v1/files/associated/deal/[id]/paged?hapikey=happydays
Were you able to circumvent this problem? I used the strategy mentioned, but the links for the attachments are broken, albeit present in 3 different properties, and I needed those.
All attachments to objects (deals, contacts, companies, etc.) are actually just note engagements with an included file. Pulling the associated engagements is currently the only way to get attached files. I can understand the use case you’re mentioning, though. If you have the inclination, I would encourage you to check out the Ideas Forum on the HubSpot Community. There, you can create a post including your use case that product and other customers can see.
GET /engagements/v1/engagements/associated/:objectType/:objectId/paged - Get engagements associated with another CRM object via the HubSpot API.
Filtering with the DEAL type + the deal ID.
Do you think that there would be a way to filter only engagements with a type that would be like “ATTACHMENT”