Hi, im doing an integration between hubspot and some ERP.
I want to upload tons of excel files to hubspot. But the only resource that i found was
https://api.hubapi.com/filemanager/api/v3/files/upload which only allows 1 file per call, so, if i have 1.000.000 of files, i have to make 1.000.000 of calls. I need a way to make bulk upload of file Also, i need a way of make bulk associations between a company and a file Im using
No bulk endpoints, but you should be able to reach pretty high throughput with the Files API, particularly if you can expose your files temporarily via public URL and then use the async endpoint I guess. https://developers.hubspot.com/docs/api/files/files
Once the files are uploaded and you have their HubSpot IDs, you can pass them into the v3 engagements API (hs_attachment_ids ) to associate them with engagements (notes) https://developers.hubspot.com/docs/api/crm/notes . That API includes batch create endpoints that also accept those file IDs.
I would actually caution against moving ahead with this implementation unless you have carefully tested the UI side of it: a HubSpot company record is not optimized for navigating many thousands of notes and attachments (for example, the "Attachments" widget in the company sidebar will only show a limited number of attachments if I remember correctly. But of course I don't know the context of what you are building so feel free to disregard.