# File ID when uploading

**URL:** <https://community.hubspot.com/t/file-id-when-uploading/50098>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, object, contacts\
**Created:** [January 20, 2022, 1:53pm UTC](https://community.hubspot.com/t/file-id-when-uploading/50098 "2022-01-20T13:53:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilir-test](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ilir-test/32/53612_2.png) [@ilir-test](https://community.hubspot.com/u/ilir-test)\
**Post date:** [January 20, 2022, 1:53pm UTC](https://community.hubspot.com/t/file-id-when-uploading/50098/1 "2022-01-20T13:53:40Z")

</div>

Hi HubSpot members,

I upload a file in the File Manager using:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Ffiles-files-v3%2Fguide)**

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?

---

<div class="post-metadata">

**Author:** ![ilir-test](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ilir-test/32/53612_2.png) [@ilir-test](https://community.hubspot.com/u/ilir-test)\
**Post date:** [January 20, 2022, 1:55pm UTC](https://community.hubspot.com/t/file-id-when-uploading/50098/2 "2022-01-20T13:55:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [January 27, 2022, 8:30am UTC](https://community.hubspot.com/t/file-id-when-uploading/50098/3 "2022-01-27T08:30:57Z")

</div>

Hi @ilir-test ,  
Pass the id in get file api and you can get all the file details  
in that see = [Screenshot by Lightshot](https://prnt.sc/26k15na)

Hope this helps!

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

---

<div class="post-metadata">

**Author:** ![ilir-test](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ilir-test/32/53612_2.png) [@ilir-test](https://community.hubspot.com/u/ilir-test)\
**Post date:** [January 27, 2022, 9:47am UTC](https://community.hubspot.com/t/file-id-when-uploading/50098/4 "2022-01-27T09:47:09Z")

</div>

Hi [@webdew](https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510) ,

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

[Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/files/files) 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.

 ![ilirtest_0-1643276575439.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/0/0a5eb60073069de8d99842c2df653bcfb40c39b1.png)

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
