fileKey string — upload a file first to get a fileKey, then use that key when adding or updating a record.
Endpoint summary
| API | Method | URL |
|---|---|---|
| Download File | GET | /k/v1/file.json |
| Upload File | POST | /k/v1/file.json |
Download file
GET /k/v1/file.json — Download File
GET /k/v1/file.json — Download File
Downloads a file from Kintone. The
ResponseThe response body is the raw binary content of the file. The Getting a fileKey from a recordFile field values in a record contain an array of attachment objects. Each attachment has a
fileKey for a file is returned in the record’s file field value when you retrieve a record.Request parameters| Parameter | Type | Required | Description |
|---|---|---|---|
fileKey | String | Yes | The file key of the file to download. Obtain this from the file field value of a record. |
Content-Type header reflects the file’s MIME type.The
fileKey is tied to the specific attachment on a specific record. Retrieve it from the record’s file field using Get Record before calling this endpoint.fileKey property:Upload file
POST /k/v1/file.json — Upload File
POST /k/v1/file.json — Upload File
Uploads a file to Kintone and returns a
Form parameters
Response parameters
Sample response
fileKey. Use the fileKey when setting a file field value in Add Record or Update Record.Request| Property | Value |
|---|---|
| Content-Type | multipart/form-data |
| Parameter | Type | Required | Description |
|---|---|---|---|
file | Binary | Yes | The file to upload. Include the file content, filename, and MIME type in the multipart form data. |
| Parameter | Type | Description |
|---|---|---|
fileKey | String | A temporary file key that represents the uploaded file. Use this key when setting a file field value on a record. |
Attaching an uploaded file to a record
After uploading, pass the returnedfileKey in the file field value when creating or updating a record:
curl
Related pages
- Records — Add and update records, including file field values.
- Bulk requests — Combine file-related record operations.