Wetel
Go back

How are API keys scoped, and what can a key do?

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.

CredentialLifetimeWho holds itWhat it is for
Dashboard loginAbout a dayA person on your team, signed inManaging the workspace: AI employees, workflows, knowledge bases, connectors, and creating API keys
API keyLong-livedYour backend, never a browserStarting conversations and the other runtime operations listed below
Session tokenShort-lived, one per conversationThe browser, handed over by your backendSending 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?

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?

  1. Do you store the raw key, or only a fingerprint?
  2. Can I revoke one key without breaking every other integration, and how quickly does it take effect?
  3. Which operations does a key unlock, and which need a person signed in?
  4. Can a key reach another customer’s data by guessing ids?

To set up your first key the right way, start with the Authentication guide.


Share this post:

Next Post
Serving many customers' AI employees from one backend
Previous Post
Run a workflow from your own system, then collect the result