Creating API Keys
API access requires each API request to include 2 parameters:
- Account key - Shown in the Settings > Account. You must enable your Account to use API.
- Secret key - Created by account owners for their use or for other owners of the same account.
Generating a secret key
For an account owner to create a key for themselves:
In https://app.redislabs.com, navigate to Settings, and select Cloud API Keys.
If Cloud API Keys is not shown, make sure you enabled your Account to use API.
To create a new key, click Add new API secret key.
Enter the secret key properties:
User Name - Select the user associated with the key.
API requests using this key are be authorized and audited to this user.
API Key Name - A descriptive name for the key.
Two keys associated with the same user must have different names. Key names must meet these requirements:
- Between 10 and 50 characters
- Only letters, digits, hyphens ('-') and underscores ('_')
- No spaces
Click Generate API Key.
A popup window is shown that shows that the secret key was successfully created.
Copy the secret key value and store it in a safe location.
Using the secret key
The secret value of the key is shown only when you generate the key. The value of the secret key cannot be retrieved later on. If lost or compromised, delete the key and generate a new key.
Use the secret value as a parameter for all API requests by the user associated with the key only.