All API requests require authentication using a Bearer token in the Authorization header.
Getting an API Key
- Log in to Raccoon AI
- Click your profile picture in the top right
- Select Manage Account
- Go to API Keys
- Click Add new key
- Copy and securely store your API key
API keys are shown only once. If you lose your key, you’ll need to generate a new one.
Using Your API Key
Include your API key in the Authorization header of all requests:
Example Request
WebSocket Authentication
For WebSocket connections, pass the token as a query parameter:
Authentication Errors
401 Unauthorized
Returned when the API key is missing or invalid:
403 Forbidden
Returned when the API key doesn’t have permission for the requested resource: