File ID when uploading

Hi HubSpot members,

I upload a file in the File Manager using:

Endpoint: /files/v3/files/import-from-url/async

In the response I get id, but it is not the same id as the id of the file in File Manager!

Here is an example:

Id in the response of file upload: AAAADvor4Gc
Id in the File Manager: 64326721639

Because of this when I try to make an Engagement with a Contact or a Deal I get an error.

Any suggestions?

I do not see another way to retrieve the file id other than when it gets uploaded, any ideas?

Hi @ilir-test ,
Pass the id in get file api and you can get all the file details
in that see = Screenshot by Lightshot

Hope this helps!

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

Hi @webdew ,

Thank you for taking the time to answer, but the whole point was that when uploading the file through

Accounts Dashboard | HubSpot and the endpoint: /files/v3/files/import-from-url/async , I do not get the correct file id in response!

Because of that I cannot pass the file id when I make an Engagement.

But your answer made me research more and I found out that after uploading the file I can check the status of the uploaded file with this endpoint: /files/v3/files/import-from-url/async/tasks/{taskId}/status , where I can get the file id and url in the response.

So I will accept your answer as a solution, although what I was exactly looking was something else.

Thank you and all the best,

Ilir