# API to Download File

**URL:** <https://forum.kintone.dev/t/api-to-download-file/124>\
**Category:** General\
**Created:** [July 10, 2019, 8:39am UTC](https://forum.kintone.dev/t/api-to-download-file/124 "2019-07-10T08:39:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 10, 2019, 8:39am UTC](https://forum.kintone.dev/t/api-to-download-file/124/1 "2019-07-10T08:39:58Z")

</div>

Dear Developers,

I have this code,

and that fileKey comes from a record, it’s from this one

and then, the response that I got from calling that API is this

Where did I do wrong? That code on the above picture already follow the guide from this link:

[https://developer.kintone.io/hc/en-us/articles/212494468-Download-File](https://forum.kintone.dev/hc/en-us/articles/212494468-Download-File)

and is using GET method to be able to download a file using API.

Please help, any answer would be appreciated.

Thank you in advance

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 10, 2019, 4:53pm UTC](https://forum.kintone.dev/t/api-to-download-file/124/2 "2019-07-10T16:53:27Z")

</div>

Hello Muhammad!

Hmmm, the code looks fine to me, but it might be the fact that you are missing “.json” after “/k/v1/file”  
All the examples in the page that you showed me has it as “/k/v1/file.json”.  
Please fix that part in see whether that will work.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 12, 2019, 9:33am UTC](https://forum.kintone.dev/t/api-to-download-file/124/3 "2019-07-12T09:33:15Z")

</div>

Hi Yuzo,

Thank you for the answer!

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [July 16, 2019, 1:54am UTC](https://forum.kintone.dev/t/api-to-download-file/124/4 "2019-07-16T01:54:57Z")

</div>

Hi Muhammad,&nbsp;

Unfortunately, it is not possible to achieve image file downloads with the kintone.api() methods. However, the Kintone JS SDK can be used for this purpose.&nbsp;

Link (Kintone JS SDK Quickstart): [https://kintone.github.io/kintone-js-sdk/latest/getting-started/quickstart-browser/](https://kintone.github.io/kintone-js-sdk/latest/getting-started/quickstart-browser/)

Link (Downloading files with JS SDK Quickstart): [https://kintone.github.io/kintone-js-sdk/latest/reference/file/#uploadfilename-fileblob](https://kintone.github.io/kintone-js-sdk/latest/reference/file/#uploadfilename-fileblob)

The method detailed in the second article returns a file blob if the download is successful. I found this resource to be useful for reference:&nbsp;[https://javascript.info/blob](https://javascript.info/blob)

Hope this helped!

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [September 26, 2019, 7:25am UTC](https://forum.kintone.dev/t/api-to-download-file/124/5 "2019-09-26T07:25:47Z")

</div>

hello ,

&nbsp;

i downloaded applied for kintone licence but i confused that what have to do after that to open my kintone developement platform

plz help i am new in kintone

---

<div class="post-metadata">

**Author:** ![legacy\_user](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.kintone.dev/legacy_user/32/25_2.png) [@legacy\_user](https://forum.kintone.dev/u/legacy_user)\
**Post date:** [September 26, 2019, 7:58am UTC](https://forum.kintone.dev/t/api-to-download-file/124/6 "2019-09-26T07:58:25Z")

</div>

Hi Pradeep,

I checked our back end but it doesn’t look like your registration for the license went through.

Can you confirm that you signed up for the developer license through the following page?  
[https://developer.kintone.io/hc/en-us/articles/219946307](https://forum.kintone.dev/hc/en-us/articles/219946307)

If you have not, please fill out the form at the bottom of the page and we will process your registration as soon as possible!
