cxinyu
September 7, 2025, 10:58am
1
Question / Problem
Hi I am using Kintone API to download attachments, here is the url:Url: https://kddi.cybozu.com/k/v1/files.json?fileKey=20250902122423E4E1FE26C7B84FE5895AAB876749FB6A237
it results in 404 error. I can fetch record successfully and the filekey is coming from my records, so it should not be authentication issue.
Chris
September 8, 2025, 3:20pm
2
Hello and welcome to the community @cxinyu !
Based on the provided info, it looks like the endpoint is just slightly off.
You’re calling /k/v1/files.json (plural), which doesn’t exist for GET requests, so Kintone returns a 404.
The correct endpoint is:
https://{your-subdomain}.cybozu.com/k/v1/file.json?fileKey=...
A couple of common mistakes:
Make sure your token/user has permission to view the app/record/file field.
Use the fileKey from the saved record (not a temporary upload key from before the record is saved).
Lastly, it’s best not to post real fileKey values publicly.
Please consider redacting them in examples.
Hope that helps!