You can generate API keys that can be added to the x-api-key
header to authenticate API requests.
Generate an API key
- Click on the drop-up menu with your name in the side panel.
- Navigate to Settings > API Keys.
- Click on the + ADD NEW button.
- Enter a name for the key and click Yes.
- Click on Copy And Close. Save the API key somewhere safe.
The API key cannot be viewed or copied after this step.
Performing API tests using the API key
Test the API in Zenskar documentation
- Head over to the API documentation you would like to test.
- Add the API key to the header as shown below:
- Some APIs will require you to fill in the mandatory
organization
query parameter.
The organization
query parameter can be obtained by navigating to Settings > General. The organization
query parameter accepts a valid universally unique identifier (UUID).
Note
If the mandatory
organization
query parameter is left empty or if a wrong UUID is entered, you may receive an HTTP 403 error with the following message in the response:{ "Message": "User is not authorized to access this resource with an explicit deny" }
- Fill in the other necessary optional query parameters.
- Click on Try It!. A successful test will result in an HTTP 200 status with a proper JSON response as shown below.
Test the API using tools like Postman
The API keys can be used to test the APIs using tools such as Postman or Thunder Client. You should refer to tool-specific instructions.
Deleting an API key
- Click on the drop-up menu with your name in the side panel.
- Navigate to Settings > API Keys.
- Click on the button with the trashcan icon.