- API key
- Session
API key authentication is used by the SDK ingestion endpoint (
POST /api/v1/capture). Pass your chatbot’s API key as a Bearer token in the Authorization header:How it works
- The key is validated by hashing it with SHA-256 and looking up the corresponding chatbot.
- The full key is never stored in the database — only the hash.
- The prefix (
ob_live_a1b2c3...) is displayed in the dashboard for identification.
401 Unauthorized.Getting your API key
Find your key prefix
The key prefix is displayed on the settings page so you can identify which key is active.
Rotate if you need the full key
If you need the full key (for example, during initial setup or after losing the original), click Rotate Key. This generates a new key and immediately invalidates the old one.
Key security
- The full key is shown only once at creation or rotation. It cannot be recovered afterward.
- Store your key in environment variables. Never commit it to source code.
- Rotate immediately if you suspect the key has been compromised. Rotating a key invalidates the previous one instantly.
API key format
ob_live_ prefix is constant. The remaining 32 characters are randomly generated hexadecimal.