APIs & Integrations

silicium
Member

How to get more information about attachment?

According to API documents we can get some information via Engagements API, for example, using this method
Get Associated Engagements

But in attachments list we can see only id, like this:

"attachments": [
    {
        "id": 5415389099
    }
]

Unfortunately, I couldn’t find info how to get more information, like file’s name, file\s type and link to file.

Thanks for help

0 Upvotes
4 Replies 4
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

How to get more information about attachment?

Hi @kremenetskyi,

I’m glad to hear you’ve got it working! Just for context, files attached to engagements have a field hidden set to true. This prevents them from appearing in the file manager UI and from being visible by their public URL. The only way to views hidden files is through the UI of the object they’re attached to. This is why you’re not able to see these files in your file manager.

0 Upvotes
Derek_Gervais
HubSpot Alumni
HubSpot Alumni

How to get more information about attachment?

Hi @kremenetskyi,

You’ll need to use the COS Files API to pull that file’s information:

Get file metadata | COS Files API

GET /filemanager/api/v2/files/:file_id

0 Upvotes
silicium
Member

How to get more information about attachment?

Thank you @Derek_Gervais,

I am not sure, because I don’t see files, which were attached, in File Manager on front-end.

Anyway, I will try and let you know.

0 Upvotes
silicium
Member

How to get more information about attachment?

Hi @Derek_Gervais.

It works! Thanks