Web SDK
Public Key
Understanding the Public SDK Key, rotation procedures, and domain binding security.
Overview
The Public SDK Key (pk_live_... or pk_test_...) authorizes client browsers to request conversational sessions for a specific project.
Public vs Private Keys
| Key Type | Prefix | Location | Capabilities |
|---|---|---|---|
| Public SDK Key | pk_live_... | Client Browser | Mount assistant, stream messages, send telemetry |
| Private API Key | sk_live_... | Server Only | Full CRUD on projects, knowledge, and billing |
Rotating Public Keys
- Navigate to Project Settings > API & SDK Keys.
- Click Regenerate Public Key.
- Update your website environment variables and redeploy.