Skip to main content
Kintone REST API requests must include an authentication header. There are three methods available for external API calls, and one method used automatically by in-browser customizations.

API token authentication

API tokens are scoped to a specific app and grant only the permissions you configure. This is the recommended method for server-side integrations and scripts.Send the token in the X-Cybozu-API-Token header.
curl -X GET 'https://{subdomain}.kintone.com/k/v1/records.json?app={appId}' \
  -H 'X-Cybozu-API-Token: {APIToken}' \
  -H 'Content-Type: application/json'
To generate an API token:
  1. Open your app in Kintone and go to Settings.
  2. Under Customization and integration, select API token.
  3. Click Generate and configure the required permissions.
  4. Click Save, then Update App.
Each API token is tied to a single app. To access multiple apps, generate a separate token per app. You can pass multiple tokens as a comma-separated list in a single X-Cybozu-API-Token header.
Treat API tokens like passwords. Do not commit them to source control or expose them in client-side code.

Choosing an authentication method

MethodBest forScoped to app?
API tokenServer-side scripts, external integrationsYes
PasswordAdmin tasks, migrations, batch scriptsNo
SessionIn-browser JS customizations (kintone.api())No
OAuthUser-delegated access, third-party appsNo

Secure your credentials

Never include credentials or API tokens directly in client-side JavaScript files uploaded to Kintone. These files are accessible to any user who can view the page source.
For server-side code, store credentials in environment variables or a secrets manager — never hardcode them in source files.

Build docs developers (and LLMs) love