API Tokens
A Nirmata API Token is an access key that is required to login to NCH via NCTL, or to make raw API requests to NCH. The API token is available in the NCH profile.
Generating API Tokens
To generate an API token in NCH:
- Go to Settings>Profile. The page displays all the information related to the NCH profile along with the API key.
- Click on the
Generate API Key
button located on the top right corner of the screen. A dialog box appears with a prompt to enter the password.
Note: If an API Key was already generated and the generated token is within the expiry time, the API Key will be automatically fetched within the dialog box.
- Next, enter the password set for the NCH profile under the
Password
section and leave theAPI Key
section empty.
- Finally, click Generate to generate a new API Key.
Managing API Token Settings
A Nirmata Admin User can manage and review API Token settings as per requirements.
To manage API Token settings:
- Go to Identity & Access -> API Tokens. The Settings page for API Tokens opens.
- Manage the generation and usage of API Tokens for users by clicking the radio button beside the available options:
a. SelectingNone
will prevent all users from generating and using API Tokens.
b. SelectingAll users
will allow all users to generate and use API Tokens. Click the radio button besideToken lifetime
to set a specific expiry time for API Tokens, or selectNever expires
to set tokens that don’t expire.
c. SelectingSelected users based on their
allows you to choose specific users based on their role and ID provider:
i. SelectRole
orID Provider
from the dropdown menu.
ii. Choose the specific role or ID provider from the next dropdown.
iii. Click the radio button besideToken lifetime
to set a specific expiry time, or selectNever expires
to set tokens that don’t expire for users of the selected role or ID provider.
iv. Click the+
button to add additional roles or ID providers.
- Click Save.