API keys
Your website, apps and servers identify themselves to NuacemOne with an API key, sent in the X-VoiceCX-Key header.
Organisation admins create keys in Settings → Developers → API Keys.
Two kinds of key
Section titled “Two kinds of key”| Publishable key | Secret key | |
|---|---|---|
| Looks like | vcx_pk_… |
vcx_sk_… |
| Use it in | Web pages and mobile apps (the website widget, the browser SDK) | Your servers only |
| Works from | Only the websites you list for the key | Your servers |
| Can | Start chats and web calls with published agents and use cases | Everything a publishable key can, plus the Workflows API |
A key can be limited to some agents. Keys only reach published agents and use cases, never drafts.
Create a key
Section titled “Create a key”- Open Settings → Developers → API Keys and choose New Key.
- Pick Publishable or Secret and give it a name you’ll recognise, such as
website-prod. - For a publishable key, list the websites that may use it, for example
https://www.example.com. - Optionally, limit the key to some agents.
- Copy the key. It is shown only once. Keep a secret key in your secret manager or environment, not in code.
Rotate a key
Section titled “Rotate a key”Create the new key, deploy it, check traffic is working, then revoke the old one. Revoking takes effect straight away.
Signed-in users
Section titled “Signed-in users”If your users are signed in on your site, the widget and the API can tell the agent who they are. Your server signs the user’s id with your workspace’s identity secret. See Authentication.