Generating API Tokens
API tokens are used for authenticating Kintone REST API requests sent from external programs.
Specifying an API token in the "X-Cybozu-API-Token" header of your REST API request authenticates the request, and the API is executed. You can also specify multiple API tokens with commas in between.
GET /k/v1/record.json?app=7&id=100 HTTP/1.1 Host: example.kintone.com:443 X-Cybozu-API-Token:cJrAD9Es62qm0Z3eE6uzQQmaDxM3q9jiDay1oysX |
curl -X POST -H "X-Cybozu-API-Token: cJrAD9Es62qm0Z3eE6uzQQmaDxM3q9jiDay1oysX, 6oDAV8hCY6HTa1AC6EZbNe2dpc1t8QnWZrHOMgMb" "https://subdomain-name.kintone.com/k/v1/record.json" -H "Content-Type: application/json" -d '{app: 20, record: {"Customer Name": {value: "Kintone Research"}}}' |
For details on authentication using API tokens, refer to the "Authentication" section in the following page:
Kintone REST API Overview (Kintone Developer Program)
Generating API Tokens
-
Click the App Settings icon (the gear-shaped icon) at the upper right of the "View" screen.
-
Select the App Settings tab in App Settings, then click API Token under Customization and Integration.
-
On the "API Token" screen, click Generate.
-
For the generated API token, select the checkboxes under Permissions for the actions you want to allow.
-
If necessary, add notes for the API token by clicking the Edit icon for the Notes input field.
You can use this field to enter information useful for managing the API token, such as the purpose of the API token or a contact person.
- You can enlarge the input field horizontally and/or vertically by dragging its lower right corner with your mouse.
- You can enter up to 200 characters.
-
Click the Save icon (the check mark) to save your notes.
-
Click Save at the bottom right of the screen.
-
Click Update App at the upper right of the screen.
-
On the "Update App" dialog, click Update App.