Authentication
To interact with the CBRN AI API, you'll need an API key linked to your CBRN AI user account. Follow the steps outlined below to generate and use an API key.
How to Generate an API Key
- Navigate to your profile located at the top-right corner of the CRBN AI web interface.
- Find the section labelled 'API keys' and proceed to add a new API key.
- Upon creation of a new key, a string will be generated. It is imperative that you copy and save this API key in a secure location as it will only be visible immediately after creation.
- With your newly generated API key, you can interact with the API as demonstrated in the upcoming sections.
:::highlight gray 💡
For security purposes, your API key is stored in a hashed form on our servers.
:::
How to Use the API
Your API key will be utilized as a Bearer token in the 'Authorization' header of the API call.
Example
A typical API key would appear in the following format: apikeyv1_randomvalues...
.
In order to use the API key, insert it into your API call's 'Authorization' header in the following way:
Authorization: Bearer your_api_key
Replace your_api_key
with your actual API key. This tells the system that you have rights to access the API and perform the specified action.
Last modified: a year ago