Authentication
The API has near feature-parity with the user interface and uses the same RBAC permissions system.
Permissions
Since the API uses the same permissions backend as the regular user interface, any operations you perform in the API will require the equivalent permissions as if you performed the operation in the UI.
Authenticating to the API is done via an API token. API tokens are bound to user accounts and can be managed from your My Account page.
To create an API token:
- Navigate to your My Account page:
- Click on the button in the bottom-left of the side navigation bar to show a nav menu
- Click on the button in the top-right of the header
- You may need to click on the hamburger button to display your username first
- Click on the option from the nav menu
- Scroll down to the API Tokens card
- Type a Description for this API token into the description field for a new token
- Click on the button
Protect your API Key
Once generated, copy your API key to a safe place and treat it like a password. It has all the same permissions and abilities as your regular user login.
Revoking an API key¶
To revoke an API key, you must delete it:
- Navigate to your My Account page (see steps above)
- Scroll down to the API Tokens card
- Locate the API key you want to delete in the table
- Click on the delete button in the row for the key
- Click the button in the confirmation page to confirm the deletion