Auth and accounts
How people sign up and sign in, what the two tokens carry, how every request is tied to one workspace, and how members, roles, invites and workspace settings work.
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.
An identifier already in use is refused. The password is hashed with bcrypt. There is no email verification step.
What exists
| Feature | State |
|---|---|
| Email or username plus password | Built |
| Access and refresh tokens | Built, stateless |
| Several workspaces per user, and switching between them | Built |
| Invites by link | Built; the backend sends no email |
| Email verification | Not built |
| Password reset | Not built. The sign-in page tells the user to email support. |
| Passkeys, sign-in with Google or similar, two-factor | Not built |
| Rate limiting on sign-in | Not 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.
| Token | Lifetime in the example configuration | Used for |
|---|---|---|
| Access | 15 minutes | Every API call |
| Refresh | 7 days | Getting 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:
- The workspace in the current token, on refresh.
- The workspace the user last switched to.
- 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
| Action | Who |
|---|---|
| See the workspace and its member list | Any member |
| Rename the workspace (1 to 64 characters) | Owner |
| Change a member’s role | Owner; the last owner cannot be demoted |
| Remove a member | Owner; not yourself and not the last owner. Access ends at once. |
| List, create and revoke invites | Owner |
| Edit or delete another person’s note | Owner |
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:
| Setting | Holds |
|---|---|
| Chat model and embedding model | Which AI account and model the agent and the Knowledge pipeline use |
| Auto-reply | The confidence threshold (0.3 to 1) and up to 10 team rules of 280 characters |
| Lead research | Whether new people are researched automatically (on by default) |
| Booking | The 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.