Skip to content
Docs
On this page What exists 1/8
Internal — not published

Identity has two layers. A user is a login, valid across the whole installation. A workspace holds the data, and a user reaches it through a membership that carries a role. One user can belong to several workspaces, and each access token opens exactly one of them.

From sign-up to a second member Step 1 of 6

An identifier already in use is refused. The password is hashed with bcrypt. There is no email verification step.

What exists

FeatureState
Email or username plus passwordBuilt
Access and refresh tokensBuilt, stateless
Several workspaces per user, and switching between themBuilt
Invites by linkBuilt; the backend sends no email
Email verificationNot built
Password resetNot built. The sign-in page tells the user to email support.
Passkeys, sign-in with Google or similar, two-factorNot built
Rate limiting on sign-inNot built

The password length rule (at least 8 characters) is checked only by the sign-up form in the app; the API accepts a password of any length.

Tokens

Sign-in and sign-up return two signed tokens with the same contents: the user, the workspace the token opens, the user’s platform role, and their email or username.

TokenLifetime in the example configurationUsed for
Access15 minutesEvery API call
Refresh7 daysGetting a new pair

Both travel in the Authorization: Bearer header. There is no cookie and no session table. A refresh token stays valid until it expires, even after it has been exchanged, and there is no way to revoke one.

The app keeps both tokens in the browser’s local storage. On the first 401 it refreshes once and retries, and parallel requests wait for that one refresh.

Which workspace a token opens

On sign-in and on refresh, the backend picks the workspace in this order, taking each only while the user is still a member of it:

  1. The workspace in the current token, on refresh.
  2. The workspace the user last switched to.
  3. The user’s oldest membership.

A user with no membership left is refused. Switching workspace checks the membership, remembers the choice and returns a new pair.

Membership check on every request

After checking the signature, the backend asks whether the user is still a member of the token’s workspace. A removed member gets 401 on the next request, even with an access token that has not expired.

The answer is cached for 30 seconds in each backend process. Removing a member clears the cache entry and closes the user’s live Inbox streams in that process. A second backend instance keeps its cached answer, so a removed member keeps access there for up to 30 seconds.

When a refresh lands in a different workspace because the user was removed from the current one, the app reloads to Home so nothing from the old workspace stays on screen.

Members and roles

ActionWho
See the workspace and its member listAny member
Rename the workspace (1 to 64 characters)Owner
Change a member’s roleOwner; the last owner cannot be demoted
Remove a memberOwner; not yourself and not the last owner. Access ends at once.
List, create and revoke invitesOwner
Edit or delete another person’s noteOwner

Everything else is open to any member, including connecting or deleting channels and AI accounts, changing the agent’s behaviour and deleting people in bulk.

Invites

  • One pending invite per email per workspace. Inviting a current member or an email with a pending invite is refused.
  • The email is stored in lower case and must match the email of the user who accepts.
  • An expired invite answers 410. Accepting it or signing up with it also marks it expired; opening the link does not.
  • An accepted, revoked or expired invite stays on record with that state. A later invite to the same email that ends in the same state replaces it.

Workspace settings

Each workspace has one settings document:

SettingHolds
Chat model and embedding modelWhich AI account and model the agent and the Knowledge pipeline use
Auto-replyThe confidence threshold (0.3 to 1) and up to 10 team rules of 280 characters
Lead researchWhether new people are researched automatically (on by default)
BookingThe booking link and the Calendly and Cal.com signing secrets

The booking secrets are never returned; the API says only whether each one is set. Changing the embedding model re-embeds Knowledge documents and lead memories, see Content and knowledge.

Connected accounts

Channel accounts, AI provider keys and outside apps are all connected accounts owned by a workspace. How they are stored, masked and tested is on Channels.

Docs
EN VI