Endpoint Examples
AddAPIKey
Creating and Adding the API Key
To use the B-Bot API, you need to generate an API key from your profile. Follow these steps to create and add the API key:
Step 1: Log in to Your Profile
- Visit the B-Bot hub at https://hub.b-bot.space
- Log in using your credentials.
Step 2: Navigate to the Profile Section
- Once logged in, go to the Profile section.
- Scroll to the bottom of the page where the API Key management section is located.
Step 3: Generate an API Key
- In the API Key management section, find the option to generate a new API key.
- Click the Generate API Key button.
- A new API key will be generated and displayed. Make sure to copy and save this key in a secure location. You will not be able to view it again once you navigate away from the page. (In Betatests they will be viewable all the time)
Step 4: Use the API Key
-
When making requests to the B-Bot API, include the API key in the request headers.
-
The header should be formatted as follows:
Example of Adding the API Key to a Request
Here is an example of how to include the API key in a cURL request to the api/v1/invoke_llm
endpoint:
Replace YOUR_API_KEY_HERE
with the API key you generated from your profile.
Keep your API key secure and do not share it publicly.
If you believe your API key has been compromised, you can regenerate a new key from the Profile section by following the same steps.