# Attach(upload) file to Note via api

**URL:** <https://community.hubspot.com/t/attach-upload-file-to-note-via-api/28807>\
**Category:** APIs & Integrations\
**Tags:** starter\
**Created:** [December 5, 2020, 5:49pm UTC](https://community.hubspot.com/t/attach-upload-file-to-note-via-api/28807 "2020-12-05T17:49:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhimanyu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abhimanyu/32/78108_2.png) [@Abhimanyu](https://community.hubspot.com/u/Abhimanyu)\
**Post date:** [December 5, 2020, 5:49pm UTC](https://community.hubspot.com/t/attach-upload-file-to-note-via-api/28807/1 "2020-12-05T17:49:18Z")

</div>

Hi

Can we used engagement api to attach (upload) file to note?

I saw this post [Solved: HubSpot Community - How can I upload file to a ticket using API. - HubSpot Community](https://community.hubspot.com/t5/APIs-Integrations/How-can-I-upload-file-to-a-ticket-using-API/m-p/301096#M28332) but it is for attaching to ticket but I want to attach fie to NOTE.

Thanks

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [December 8, 2020, 2:18am UTC](https://community.hubspot.com/t/attach-upload-file-to-note-via-api/28807/2 "2020-12-08T02:18:54Z")

</div>

Hey @Abhimanyu !

You will need to upload the file with file manager and then get the ID and use that ID as the value for the attachment in your note

[@quentin\_lamamy](https://community.hubspot.com/t5/user/viewprofilepage/user-id/148828) might be able to help with more specific code implementation!

---

<div class="post-metadata">

**Author:** ![quentin\_lamamy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/quentin_lamamy/32/20212_2.png) [@quentin\_lamamy](https://community.hubspot.com/u/quentin_lamamy)\
**Post date:** [December 8, 2020, 7:41am UTC](https://community.hubspot.com/t/attach-upload-file-to-note-via-api/28807/3 "2020-12-08T07:41:34Z")

</div>

Thanks @dennisedson for the ping  
Hi @Abhimanyu ,

Which langugage are you using ? Are you using a sdk ?

---

<div class="post-metadata">

**Author:** ![Abhimanyu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/abhimanyu/32/78108_2.png) [@Abhimanyu](https://community.hubspot.com/u/Abhimanyu)\
**Post date:** [December 9, 2020, 9:10am UTC](https://community.hubspot.com/t/attach-upload-file-to-note-via-api/28807/4 "2020-12-09T09:10:37Z")

</div>

Hi [@quentin\_lamamy](https://community.hubspot.com/t5/user/viewprofilepage/user-id/148828)  
I am using C#. As @dennisedson mention now I able to upload file to the note earlirier I was getting the error becuase attachment json was incorrect and it is causing the issue.

Thank you

---

<div class="post-metadata">

**Author:** ![quentin\_lamamy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/quentin_lamamy/32/20212_2.png) [@quentin\_lamamy](https://community.hubspot.com/u/quentin_lamamy)\
**Post date:** [December 9, 2020, 10:20am UTC](https://community.hubspot.com/t/attach-upload-file-to-note-via-api/28807/5 "2020-12-09T10:20:57Z")

</div>

Hi @Abhimanyu

I’m glad to hear that you solved your issue, don’t forget to flag your topic as sovled.
