API Keys
API keys authenticate requests from your embedded Char AI widgets to the backend.Key Types
| Type | Purpose | Visibility |
|---|---|---|
| Site API Key | Widget authentication | Client-side (public) |
| Organization JWT | API management | Server-side (private) |
Creating API Keys
1
Select a Site
Navigate to the site you want to create a key for.
2
Generate Key
Click Create API Key and provide a descriptive name.
3
Copy Key
Copy the key immediately - it won’t be shown again.
Using API Keys
Include the API key when initializing the widget:Key Rotation
Rotate keys periodically for security:- Create a new API key
- Update your application to use the new key
- Monitor for any failed requests
- Delete the old key

