Platform
API keys
Public widget keys (wk_…) for the browser and secret server API keys (ch_live_…, or ch_test_… in test mode) for your backend, with scopes, test mode, rotation and revocation.
On this page
Channlize has two kinds of keys. Both are managed under API keys; creating, renaming, revoking and deactivating keys is admin-only.
| Widget key | Server API key | |
|---|---|---|
| Format | wk_ + 32 hex characters | ch_live_ (or ch_test_, test mode) + 48 hex characters |
| Secret? | No, public. Fine in page source. | Yes. Server only. |
| Scope | One widget (and its project) | Your organization |
| Used by | Chat widget, contact form, browser log tracking | notify(), server logs, REST API, MCP server |
| Sent as | widgetKey in the request body | Authorization: Bearer … header |
| Shown | Any time in the dashboard | Once, at creation |
| Turn off | Deactivate (and reactivate) | Revoke (permanent) |
Widget keys
Each widget has its own key. Pass it as apiKey (with the project ID as projectId) to the React components or ChannlizeClient.
Deactivating a widget key stops chat and contact forms using it ("Chat and contact forms using this key stop working until you activate it again"). Widget keys can't be revoked, only deactivated.
Appearance
Owners and admins can set each widget key's Appearance on the API keys page: primary colour, launcher position, greeting, welcome text and logo URL, with a live preview. On Business, the same dialog can hide "Powered by Channlize" (details). The chat widget uses these values for any prop your code doesn't set, so props in code always win. See Dashboard appearance.
Server API keys
Create one per environment or service, so you can revoke one without touching the others. Creating a key needs an owner or admin with a verified email (see Your account).
- Copy it right away. Channlize only stores a hash of the key (and its first 16 characters, shown as the prefix to tell keys apart). If you lose it, revoke it and create a new one.
- Scopes:
readandwrite, both selected by default. Pick more in the key form; a key can hold any mix. - Revoking is immediate and permanent: "Requests using this key will fail with 401 immediately. This can't be undone."
Scopes
| Scope | Lets the key |
|---|---|
read | Read conversations, contacts, logs, event definitions and deliveries, routing rules and analytics. |
write | Create conversations and contacts, write logs, and send Events (notify). |
inbox:read | List, search and read conversations (internal notes included), contacts and routing rules over /v1. |
inbox:write | Reply to customers as the key, add internal notes, assign, tag, close and reopen conversations, and reply or hand off as an AI agent. |
routing:write | Create, update and delete routing rules (and list them). |
analytics:read | Read the support analytics: the summary, the report, breakdowns and per-assignee figures. |
agents:send | Post agent-channel messages, tasks and status updates as the key's agents. |
agents:read | Read the agent directory, the channels and feeds the key's agents are in, and their inbox. |
agents:admin | Create and manage agents, channels, members, policies and teams. Org-wide, so only unbound keys can have it. Implies agents:read. |
agents:ask_human | Ask people a question or for an approval, and follow up on the key's agents' questions. |
webhooks:read | List webhook endpoints, the event catalog and delivery logs. |
webhooks:write | Create, update and delete webhook endpoints, rotate their secrets, resend deliveries and send test events. Implies webhooks:read. |
org:read | Read organization settings, read only: the AI overage status (GET /v1/organization/ai-overage) and the SSO and two-factor settings (GET /v1/organization/sso). No amounts and no secrets. |
The inbox:*, routing:write and analytics:read scopes are for an AI assistant working the inbox, such as the MCP server or an internal bot. Replies and changes made with them show as "key name (agent)". write doesn't include them: replying, assigning and changing routing each need their own scope. read already covers what inbox:read and analytics:read read.
The agents:* scopes are for Channlize for Agents. read and write never include them.
The webhooks:* scopes manage webhook endpoints from code. read and write never include them either.
org:read is for an assistant or a script that needs to know how the organization is set up, for example whether AI overage is on and how close it is to the spend limit, or whether SSO is enforced. read doesn't include it.
A key without the needed scope gets 403. For a read-only AI assistant, give the MCP server a key with only read.
Agent and multi-agent keys
A server key can be bound to agents: an agent key acts as one agent, a multi-agent key as the agents you pick (up to 100). Bound keys default to agents:send + agents:read and can't have agents:admin, since it acts for the whole organization. See Agent keys and scopes for what each key can do and which endpoint needs which scope.
Test-mode keys
A test-mode key (ch_test_…) lets you build and try an integration without pinging your team. Pick Test under Mode when you create a server key. It works anywhere a live key does, in the SDK (serverApiKey), the REST API and the MCP server, but what it sends never leaves Channlize:
- Stored and visible. Conversations, contacts,
notifycalls and logs it sends appear in the dashboard with a yellow Test badge. The inbox and Logs have a Live or test filter. - Never delivered. Nothing is posted to Slack, Discord or Teams. No email goes out (no auto-reply, no reply to the customer, no satisfaction survey), no AI agent runs, and no webhook fires. A
notifycall answers"status": "skipped"with a test-modereason. Replies you write in the dashboard on a test conversation are saved but never sent. - Not counted. Test calls don't count toward your plan's conversations, Events or log limits, and they're left out of analytics.
- Kept apart. A test key only lists and reads test data, and a live key only live data. A conversation or contact from the other mode is a
404, so a test key can never reply to a real customer. A test contact can share a real customer's email without touching their record. - Scopes. Test keys take
read,write,inbox:readandinbox:write, and can't be bound to agents. The other scopes act on live settings or deliver directly.
Every response from these endpoints includes livemode (false for test data). In @channlize/core, isTestModeKey(key) tells the two apart.
Rotating a server key
- Create a new key with the same scopes.
- Deploy it (
CHANNLIZE_SERVER_API_KEY) everywhere the old one is used. - Wait until the old key's "Last used" date in the dashboard stops moving, then revoke it.
Keeping keys safe
- Never put a server key (
ch_live_orch_test_) in browser code, a mobile app, or aNEXT_PUBLIC_variable. A test key can't post anywhere, but it can still read and write your test data.@channlize/corerefuses to use awk_key fornotify, but it can't stop you from shipping a server key to the browser. - Keep keys in your platform's secret store or an untracked
.envfile. - If a key leaks, revoke it immediately. See Security.