Skip to main content
Every Kintone REST API request must be authenticated. Kintone supports three authentication methods: password authentication, API token authentication, and session authentication. Choose the method that suits your use case.
For APIs that operate on a guest space, the URL path changes to /k/guest/{spaceId}/v1/.... The same authentication headers apply.

Password authentication

Use a Kintone user’s login name and password, encoded as a Base64 string, to authenticate requests. This method is suitable for server-to-server integrations where you control the credentials.When to use it: Server-side scripts, backend integrations, or automated tools that run outside the browser.

How it works

Combine the login name and password with a colon, then Base64-encode the result:
base64("{loginName}:{password}")
Pass the encoded value in the X-Cybozu-Authorization header.

Setup

1

Identify the Kintone user account

Choose a Kintone user account for your integration. The API will have the same permissions as that user.
2

Encode the credentials

Base64-encode the string loginName:password. For example, admin:mypassword encodes to YWRtaW46bXlwYXNzd29yZA==.
echo -n 'admin:mypassword' | base64
# YWRtaW46bXlwYXNzd29yZA==
3

Add the header to your request

Include the encoded value in the X-Cybozu-Authorization header.

HTTP header

X-Cybozu-Authorization: {base64EncodedCredentials}

Example

curl -X GET 'https://{subdomain}.kintone.com/k/v1/record.json?app=1&id=1' \
  -H 'X-Cybozu-Authorization: YWRtaW46bXlwYXNzd29yZA=='
Do not store credentials in source code. Use environment variables or a secrets manager to supply them at runtime.

Comparing authentication methods

MethodBest forScopeRevocable
PasswordServer-side scriptsAll apps the user can accessBy changing the password
API tokenApp-specific integrationsSingle app, specific permissionsIndividually, from app settings
SessionIn-browser customizationsThe current user’s permissionsWhen the session expires
OAuth 2.0Third-party apps acting on behalf of a userUser-delegated permissionsVia token revocation

Guest space URLs

APIs that target a guest space use a different URL prefix: /k/guest/{spaceId}/v1/... instead of /k/v1/.... All authentication methods work the same way — only the path changes.Example:
https://{subdomain}.kintone.com/k/guest/5/v1/record.json

Build docs developers (and LLMs) love