Secure your API access
AI Integration MockupAuthentication
Secure your API access using channel API keys.
API Keys
Each channel has its own unique API key. Keys use the prefix followed by a UUID, making them easy to identify in logs and environment configs.
text
text
Key Security
Channel API keys are AES-256 encrypted at rest in the database. The raw key value is never stored in plaintext — only an encrypted form and a SHA-256 hash (used for fast lookup) are persisted. Your key is never exposed in API responses.
Using Your API Key
Include your API key in the header on every request:
text
http
Finding Your API Key
- Go to Channels in your dashboard
- Open the channel
- Copy the API Key from the channel overview card
Security Best Practices
Do
- Store API keys in environment variables ()text
- Use a backend proxy for client-side calls — never expose your key in browser JavaScript
- Rotate keys periodically or immediately if you suspect a leak
Do Not
- Commit API keys to version control
- Include keys in client-side JavaScript for public-facing sites
- Share keys across multiple environments
Key Rotation
To rotate your API key:
- Go to Channels in your dashboard
- Open the channel
- Click Regenerate API Key
- Update your integration with the new key
- Test that requests succeed with the new key
⚠️ Warning: Regenerating a key invalidates the old key immediately. Update all consuming applications before regenerating to avoid downtime.