All record APIs are available on both desktop and mobile unless noted otherwise. Mobile equivalents use the
kintone.mobile.app.record namespace.Record data
kintone.app.record.getId()
kintone.app.record.getId()
Returns the record ID of the record currently displayed on the page.FunctionParametersNone.Return value
Available pages
| Type | Description |
|---|---|
number | null | The record ID, or null if not available on the current page. |
- Record detail
- Record edit
- Record print
kintone.app.record.get()
kintone.app.record.get()
Returns the full record object for the record currently displayed on the page, including all field values.FunctionParametersNone.Return valueReturns an object with a
Available pages
record property containing field code keys and field value objects.| Property | Type | Description |
|---|---|---|
record | object | An object whose keys are field codes. Each value is a field object with type and value properties. |
- Record detail
- Record create
- Record edit
- Record print
kintone.app.record.set(record)
kintone.app.record.set(record)
Updates field values on the record currently displayed on the page.FunctionParameters
Return valueNone.Available pages
| Parameter | Type | Required | Description |
|---|---|---|---|
record | object | Yes | An object with a record property. The record property is an object whose keys are field codes and values are objects with a value property. |
- Record create
- Record edit
kintone.app.record.getPermissions()
kintone.app.record.getPermissions()
Returns the current user’s permissions for the record displayed on the page.FunctionParametersNone.Return value
Available pages
| Property | Type | Description |
|---|---|---|
hasReadPermission | boolean | true if the user can view the record. |
hasEditPermission | boolean | true if the user can edit the record. |
hasDeletePermission | boolean | true if the user can delete the record. |
- Record detail
- Record edit
- Record create
kintone.app.record.getFieldPermissions()
kintone.app.record.getFieldPermissions()
Returns the current user’s permissions for each field on the record displayed on the page.FunctionParametersNone.Return valueReturns an object whose keys are field codes. Each value is a permissions object.
Available pages
| Property | Type | Description |
|---|---|---|
hasReadPermission | boolean | true if the user can view this field. |
hasEditPermission | boolean | true if the user can edit this field. |
- Record detail
- Record edit
- Record create
kintone.app.record.getStatusHistory()
kintone.app.record.getStatusHistory()
Returns the process management status history for the record displayed on the page.FunctionParametersNone.Return valueReturns an array of status history entries in chronological order.
Available pagesExample
| Property | Type | Description |
|---|---|---|
status | string | The status name at this point in the history. |
assignee | object | null | The assignee at this point, or null if unassigned. |
time | string | The ISO 8601 timestamp when this status was set. |
- Record detail
- Record edit
This method returns an empty array if process management is not enabled for the app.
kintone.app.record.getActions()
kintone.app.record.getActions()
Returns the app actions available for the record displayed on the page.FunctionParametersNone.Return valueReturns an array of action objects.
Available pages
| Property | Type | Description |
|---|---|---|
id | string | The action ID. |
name | string | The display name of the action. |
- Record detail
Internal API requests
Use these methods to call the Kintone REST API from within customization code without needing to manage authentication headers manually.kintone.api(url, method, params, callback, errback)
kintone.api(url, method, params, callback, errback)
Sends a Kintone REST API request. Handles authentication automatically.FunctionParameters
Return valueReturns a
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The API endpoint URL. Use kintone.api.url() to build the URL. |
method | string | Yes | HTTP method: "GET", "POST", "PUT", or "DELETE". |
params | object | Yes | Request body or query parameters as a plain object. |
callback | function | No | Called with the response object on success. If omitted, returns a Promise. |
errback | function | No | Called with the error object on failure. |
Promise when callback is omitted; otherwise undefined.Examplekintone.api.url(path, detectGuestSpace)
kintone.api.url(path, detectGuestSpace)
Builds the full URL for a Kintone REST API endpoint, automatically handling guest space paths.FunctionParameters
Return value
Example
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | The API path, such as "/k/v1/records". |
detectGuestSpace | boolean | Yes | Set to true to automatically insert the guest space path segment when the app is inside a guest space. |
| Type | Description |
|---|---|
string | The full URL for the API endpoint. |
kintone.api.urlForGet(path, params, detectGuestSpace)
kintone.api.urlForGet(path, params, detectGuestSpace)
Builds a URL with query parameters appended, suitable for GET requests.FunctionParameters
Return value
Example
| Parameter | Type | Required | Description |
|---|---|---|---|
path | string | Yes | The API path, such as "/k/v1/record". |
params | object | Yes | Query parameters as a plain object. |
detectGuestSpace | boolean | Yes | Set to true to automatically insert the guest space path segment when in a guest space. |
| Type | Description |
|---|---|
string | The full URL with query parameters encoded. |
kintone.getRequestToken()
kintone.getRequestToken()
Returns the CSRF token for the current session. Required when making REST API requests directly with ParametersNone.Return value
Example
XMLHttpRequest or fetch instead of kintone.api().Function| Type | Description |
|---|---|
string | The CSRF token string. |
You do not need this token when using
kintone.api(), which adds it automatically.kintone.api.getConcurrencyLimit()
kintone.api.getConcurrencyLimit()
Returns information about the current API concurrency limit and the number of requests currently running.FunctionParametersNone.Return value
Example
| Property | Type | Description |
|---|---|---|
limit | number | The maximum number of concurrent API requests allowed. |
running | number | The number of API requests currently in progress. |
Proxy requests
Use these methods to call external APIs from Kintone customization code. Requests are routed through the Kintone server to avoid CORS restrictions.kintone.proxy(url, method, headers, data, callback, errback)
kintone.proxy(url, method, headers, data, callback, errback)
Sends an HTTP request to an external URL via the Kintone proxy.FunctionParameters
Return valueWhen using the Promise style, resolves with an array
Example
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The external URL to call. |
method | string | Yes | HTTP method: "GET", "POST", "PUT", or "DELETE". |
headers | object | Yes | HTTP headers as a plain object. Pass {} for no custom headers. |
data | string | object | Yes | Request body. Pass {} for no body. |
callback | function | No | Called with (body, status, headers) on success. If omitted, returns a Promise. |
errback | function | No | Called with the error object on failure. |
[body, status, headers].| Index | Type | Description |
|---|---|---|
0 | string | The response body as a string. |
1 | number | The HTTP status code. |
2 | object | The response headers as a plain object. |
kintone.proxy.upload(url, method, headers, data, callback, errback)
kintone.proxy.upload(url, method, headers, data, callback, errback)
Uploads a file to an external URL via the Kintone proxy.FunctionParameters
Return valueWhen using the Promise style, resolves with an array
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The external URL to upload to. |
method | string | Yes | HTTP method: "POST" or "PUT". |
headers | object | Yes | HTTP headers as a plain object. |
data | object | Yes | An object with contentType (string) and data (string, base64-encoded file content) properties. |
callback | function | No | Called with (body, status, headers) on success. If omitted, returns a Promise. |
errback | function | No | Called with the error object on failure. |
[body, status, headers] — same structure as kintone.proxy().ExampleRelated pages
- App APIs — Read app configuration and metadata
- Event handling — Register and remove event handlers
- REST API: Records — Create, read, update, and delete records via REST