API keys
Create and revoke the keys that let the website widget and the API connect to your workspace.
Before you start
- Only Owners and Admins can manage API keys. Others see "Only admins can manage API keys".
- API keys need the Professional or Enterprise plan. On other plans you see "API keys are not included in your plan".
- Setting up the website widget and calling the API are not covered in these docs yet. To get started with either, book a call with us.
Create a key
In the sidebar, click Settings, then the API keys tab.
Click Create API key.
Enter a Name that says where the key is used, such as "Main website".
Pick the Permissions. Pick at least one.
| Permission | What it allows |
|---|---|
| Start conversations | Used by the website widget to start conversations with the agent. |
| Read conversations | Read past conversations and transcripts through the API. |
Optional: add Allowed origins: the websites that can use this key from a browser, such as https://www.example.com. Press Enter after each one. Leave it empty to allow any origin.
Click Create API key.
Under Copy this key now, copy the key. It is shown only once. Click Done.
Keep keys out of shared documents and public code. If you lose a key, revoke it and create a new one.
The keys list
| Column | What it shows |
|---|---|
| Name | The name, and the first characters of the key. |
| Permissions | What the key may do. |
| Allowed origins | The websites that may use it, or Any origin. |
| Last used | When it was last used, or the date it was revoked. |
Filter the list by Active, Revoked or All.
Revoke a key
- Click the revoke button on the key's row.
- Confirm with Revoke key.
Anything using the key, including the website widget, stops working right away. This cannot be undone.
Limits
| Item | Limit |
|---|---|
| Allowed origins per key | 20 |
| Requests per minute | 30 from one address |
| Keys expire | Never, until revoked |
Troubleshooting
| You see | Fix |
|---|---|
| "Select at least one permission" | Tick Start conversations, Read conversations or both. |
"Use origins like https://www.example.com, without a path" | Remove everything after the domain. |
| "Add up to 20 origins" | Remove some origins, or create a second key. |
| "API keys are not included in your plan" | API keys are part of the Professional and Enterprise plans. |
Tips
- Create one key per website or app, so you can revoke one without breaking the others.
- Set Allowed origins for any key used in a web page.
- Every key created or revoked shows in the audit log.