An API key belongs to exactly one workspace: it can start conversations with that workspace’s AI employees, plus a short list of other runtime operations the docs name, and nothing in any other workspace. It is shown to you once, and Wetel keeps only a fingerprint of it (a SHA-256 hash), so it cannot be read back later by anyone.
Think of it as the key to one shop’s staff entrance. It lets your systems in to get work started. It does not open the manager’s office, and it does not open the shop next door.
What are the three credentials, and how long does each last?
Wetel uses three credentials, one for each kind of holder, and they are not interchangeable.
| Credential | Lifetime | Who holds it | What it is for |
|---|---|---|---|
| Dashboard login | About a day | A person on your team, signed in | Managing the workspace: AI employees, workflows, knowledge bases, connectors, and creating API keys |
| API key | Long-lived | Your backend, never a browser | Starting conversations and the other runtime operations listed below |
| Session token | Short-lived, one per conversation | The browser, handed over by your backend | Sending messages, ending that one conversation and receiving its replies |
A key is created by a signed-in person and belongs to that person’s workspace.
What can a key do?
A key is for runtime work, not for managing the workspace. Starting a conversation (sdkStart) is the main use. The docs also list running a published workflow as a task and reading its outcome, embeddings, direct text generation, and a few lookups; each operation’s reference page states which credential it takes.
Creating or changing an AI employee or a workflow needs a signed-in person, so someone on your team stays in charge of what the AI employees are and how they work.
What can a key not do?
- Reach another workspace. Every request is scoped to the key’s own workspace. A key cannot see or change another workspace’s data, whatever record numbers someone guesses.
- Talk inside a conversation. Sending messages and ending a conversation use that conversation’s session token, not the key.
Where must a key live?
On your server only. Keep it in your backend’s environment or a secrets manager, never in browser code or anything shipped to a user’s device. The browser gets only the session token, short-lived on purpose so a leaked one has little reach; a long conversation can renew it in place.
How do I revoke one key without breaking the others?
Give each consumer its own named key, then revoke the one you need by its id. Your production app and your staging environment should each have their own. Revocation takes effect on the next request and is permanent; keep the id returned when you create the key, because revocation takes it.
The older single workspace key is different: generating it again replaces it at once and breaks every integration sharing it. Creating and revoking keys appears in the change log of the person who did it. A dashboard login, by contrast, cannot be revoked before it expires.
Can a key be limited to certain AI models?
Yes, a Wetel administrator can restrict a named key to a list of models, on request. A key can only narrow what the workspace allows, never widen it. Conversations started with the key keep the restriction for every later turn, workflow step and sub-agent. You cannot read a key’s list yourself yet, so ask your Wetel contact. The older single key cannot be restricted. Usage is reported per workspace, not per key.
What should I ask any vendor about keys?
- Do you store the raw key, or only a fingerprint?
- Can I revoke one key without breaking every other integration, and how quickly does it take effect?
- Which operations does a key unlock, and which need a person signed in?
- Can a key reach another customer’s data by guessing ids?
Related reference docs
- Authentication: the three credentials, named keys, session-token renewal and revocation
- Tenant API:
generateApiKey: the older single workspace key and its one-time reveal - Multi-tenancy: how a key is bound to one workspace
- Restricting one API key: per-key model lists, set on request
- Is my company’s data kept separate?: the wider answer on workspace separation
To set up your first key the right way, start with the Authentication guide.