I have a requirement to download the quotes via API. For that im using batch read endpoint and get the hs_download_link to download the quote. But I need to get the file_size for that paticular file. How can i do that?
Also is there any way to get the published quote attachment id? If so then we can use it to get the file related details.
Hey @RSPerera1, thank you for posting in our Community!
To get the file size for a quote, you can make a HEAD request to the hs_download_link. The Content-Length header in the response will provide the file size in bytes without requiring you to download the file.
Regarding the published quote attachment ID, it isn’t directly available via the Quotes API. You might need to explore related objects or associations through the CRM API to retrieve additional details.
I just have one concern—will making a HEAD request to the hs_download_link impact the API rate limits in HubSpot? Understanding this will help me ensure the method is both efficient and sustainable.