Account · Guide
Set up sign-in and teams
Use this page to set up how people sign in to the console, add a second factor, give each member a role and invite your team. Code calls the API with keys instead (Authentication and API keys).
Before you begin: you need a console account. Owners and admins manage members, roles and the two-factor requirement.
1. Sign in to the console
People sign in to the console with an email and password, an emailed link, Google or GitHub. Each method ends at the same verified email, so every method opens the same account, and a member keeps their role whichever one they use. With two-factor sign-in on, each of them is followed by a second factor. A session is an HttpOnly cookie and never exposes an API key.
| Method | How it works |
|---|---|
| Email and password | Sign up, open the verification link, then sign in with the password. |
| Emailed link | Email me a link on Sign up or Log in sends a link that signs you in once, valid for 15 minutes. Opening it verifies the email. |
| OpenID Connect with state, nonce and PKCE; the ID token is checked against Google's published keys. | |
| GitHub | OAuth, then your GitHub profile and emails; only a primary, verified email counts. |
Email links also arrive for an invite to an organization, verifying a new email, and resetting a password. POST /v1/auth/magic_link sends the sign-in link; scripts and tests can call it too.
Google and GitHub appear only on a server that has an OAuth client for them; otherwise their buttons are hidden and their endpoints return 503 oauth_provider_not_configured. The settings are in server configuration. In the sandbox, emailed links are returned in the response, so you can sign in without an inbox.
Account endpoints, such as /v1/mandate/policies and /v1/account/*, take either an account API key or a console session, so anything you do in the console you can also script. Requests made with a session cookie also need the CSRF header the console sends; API-key requests don't. The Provenance app holds the same kind of session as a bearer token, Authorization: Bearer cst_…, with the same roles and no CSRF header (signed in from the app).
Anyone can sign up. An operator can limit sign-in to a list of emails, which pauses sign-up for everyone else; every method checks the list, including sign-up and password reset, and anyone not on it gets 403 beta_access_required, which says sign-ups are paused and gives the contact address.
Sign up in the console
Every Sign up link on the site, including the plan buttons on pricing, opens the console's one Sign up page. It first asks who it is for. For my company or product creates an account with the methods above; For myself opens the personal sign-up at /me/start. Add ?for=company or ?for=myself to a link to skip the question.
- Choose a method. A password sends a verification link; an emailed link, Google and GitHub verify the email themselves. The account, its Free trial and its first key are created when the email is verified.
- Answer About you. Your name and company, what you are (Company, Store or Agent maker), the products you're interested in, your team size, your expected monthly volume and, if you like, what you're building. The console opens no other page until your name and company are saved; Finish later opens it for this session, and About you comes back at your next sign-in until every required answer is in.
- Choose a plan. The console suggests Free, Pro or Growth from your answers and keeps the plan you picked on the pricing page selected. Free is one click. Pro and Growth open Stripe Checkout and come back to Get started; if you leave Checkout, you stay on Free and Get started and Settings → Billing offer Finish upgrading.
Get started then lists the setup guides of the products you picked first. A Sign up link can carry the plan, interval, source and kind (below); the page sends them with whichever method you choose.
Use a password
- Sign up with
POST /v1/auth/signup. It answers202and emails a verification link, valid for 24 hours. - Open the link.
POST /v1/auth/verify_emailverifies the email and signs you in. - Sign in later with
POST /v1/auth/password/login.
Passwords are 10 to 256 characters. Provenance stores a scrypt hash with a per-password salt and re-hashes it at sign-in when the parameters change. A server can also check new passwords against known breaches; only the first five characters of the password's SHA-1 leave the server.
| Error | When |
|---|---|
401 invalid_ | The email and password don't match. Unknown emails get the same answer. |
403 email_ | The password is right, but the verification link hasn't been opened. |
429 password_ | Five wrong passwords in a row. The lock starts at 30 seconds and doubles with each further failure, up to an hour; Retry-After says how long. |
400 password_ | Too short, too long, or found in a breach. |
Keep where a sign-up came from
POST /v1/auth/signup and POST /v1/auth/magic_link take an optional context object, and the Google and GitHub start takes the same values in its query:
| Field | Values |
|---|---|
plan | free, pro or growth, the plan picked on the pricing page. |
interval | monthly or yearly, with a paid plan. |
source | Where the Sign up link was, such as pricing or docs. |
kind | company, store or agent_. |
The context stays with the email on the server, so it reaches the new account even when the verification link opens in another browser, and the plan suggestion keeps the plan picked on pricing selected. An unknown value is dropped and never fails the sign-up.
Each network can start 10 sign-ups an hour by default (429 rate_limit_exceeded past that); an emailed link counts only when it carries a context. A server can also refuse throwaway email addresses (server configuration).
Reset a password
POST /v1/auth/password/forgot always answers 202, whether or not the email has an account. A known email gets a reset link that works once, for 30 minutes. POST /v1/auth/password/reset sets the new password, signs out every other session for that person and signs this browser in. On an account that never had a password, the reset adds one.
If a verification or reset email doesn't arrive, Send again on the "Check your email" page sends another after a short wait. Each email can ask for 5 verification links and 3 reset links an hour; past that the page says how long until the next one, from the 429 rate_limit_exceeded answer's retry_after.
Link sign-in methods
Methods link by verified email only. Signing in with Google as ada@example.com opens the account ada@example.com already uses. A password signup that was never verified is discarded as soon as the email is proven another way.
Settings → Sign-in & security in the console lists your methods. Add or change a password, connect Google or GitHub, or remove a method:
- A connected provider's verified email must be the one you sign in with, else
409oauth_account_mismatch. - The last method can't be removed:
409last_sign_in_method. - The email-link method isn't listed, since the Login page doesn't offer it. Password reset still works for every email.
These endpoints need a console session. API keys and support sessions can't change how a person signs in.
| Task | Endpoint |
|---|---|
| List your methods and the providers you can add | GET / |
Add a password, or change it with current_ | POST / |
| Remove a method that isn't your last | DELETE / |
Active sessions
Settings → Sign-in & security → Active sessions lists where you're signed in, this browser first: each browser on the console, the Provenance app signed in to this workspace, and your own Personal sessions (the app or the Personal home). Each row shows the device read from the browser's user agent, how it signed in and when it was last used. Provenance stores no IP address or location for a session, so neither is shown.
Sign out ends one session and leaves the rest signed in, so a lost laptop doesn't sign out your phone. Log out everywhere on Settings → Data & privacy still ends every session on the account.
Owners and admins open a member's sessions from Settings → Team & roles → Sessions and sign one out after a second-factor check from the last 10 minutes. They see the member's console and app sessions, never the member's Personal ones, and the owner's sessions only the owner manages. Every sign-out is in the audit log as session_revoked or member_session_revoked.
These endpoints need a console session, and no response carries a session token:
| Task | Endpoint |
|---|---|
| List your sessions | GET / |
| Sign out one of them | DELETE / |
| List a member's sessions (owner or admin) | GET / |
| Sign out one of a member's sessions (owner or admin) | DELETE / |
Signed in from the Provenance app
The Provenance app opens a company's console with a fresh passkey check
(POST /v1/personal/workspaces/{account_id}/session) and gets a console session as a bearer token,
Authorization: Bearer cst_…. It is the same session the console's cookie holds: the same roles,
the same sections, signed out by POST /v1/auth/logout, and ended when the member is removed.
The bearer needs no CSRF header, because a web page can't send that header to another site. The
passkey counts as a fresh second-factor check for 10 minutes; after that, a change that needs one
asks for face or fingerprint again. A cst_ token is never an API key.
2. Turn on two-factor sign-in
Two-factor sign-in adds a second step after the password, Google, GitHub or email link: a 6-digit code from an authenticator app, or a passkey. It's free on every plan. Turn it on in Settings → Sign-in & security, where you can add several of each and name them.
- Add an authenticator app.
POST /v1/account/two_factor/totpreturns anotpauth://URI for the QR code and the secret as text, shown once. Confirm it with the app's current code:POST /v1/account/two_factor/totp/{id}/confirm. Codes follow RFC 6238: 6 digits, a 30-second step, and one step either side; each code works once. - Or add a passkey.
POST /v1/account/two_factor/passkey/challenge, then the browser'snavigator.credentials.create, thenPOST /v1/account/two_factor/passkey. The passkey must verify you with a fingerprint, face or device PIN. - Save your recovery codes. Your first factor returns 10 single-use recovery codes, shown once. Download them as a
.txtfile. Each one works once in place of the app or passkey.POST /v1/account/two_factor/recovery_codesissues a new set and voids the old one.
Sign in with a second factor
When a person with two-factor on gets their first factor right, the answer has status: "two_factor_required" and the answers they can give, and no session is set yet. The step lasts 5 minutes and lives in its own cookie. Send one answer to POST /v1/auth/two_factor/verify: an authenticator code, a recovery code or a passkey assertion. It starts the session. A password reset or an invite link stops at this step too, so a reset never skips the second factor.
| Error | When |
|---|---|
400 two_ | The code, passkey or recovery code didn't verify, or was already used. |
401 two_ | The step expired, was used, or ended after 5 wrong answers. Sign in again. |
429 two_ | Five wrong answers in a row. The lock starts at 30 seconds and doubles, up to an hour; Retry-After says how long. |
Each factor added or removed, each recovery code used and each new set of codes sends the person an email.
Confirm sensitive changes
Some changes need a second-factor check from the last 10 minutes when the person has two-factor on: adding or removing sign-in methods or factors, new recovery codes, turning the organization requirement off, creating or rotating secret API keys, plan changes, inviting or promoting an owner or admin, and deleting the account. Without one, they return 403 recent_two_factor_required and the console asks inline. Scripts confirm with POST /v1/auth/two_factor/step_up. API keys are machine identities and aren't asked.
Require two-factor for your organization
Owners and admins can require two-factor for every member with PUT /v1/org/two_factor or the Require two-factor switch on Settings → Two-factor policy. It's off by default. Turning it on needs a factor of your own; turning it off needs a recent check.
While it's on, a member without a factor is sent straight to setup after signing in, and every other request returns 403 two_factor_setup_required. Their last factor can't be removed: 409 two_factor_required_by_org.
Single sign-on is exempt: people who sign in through your identity provider use its MFA, not ours.
An owner or admin can reset a member who lost their factors with DELETE /v1/org/users/{id}/two_factor. It clears their factors and recovery codes, ends their sessions, emails them, and is recorded in GET /v1/org/security_events. An owner's factors can't be reset this way: an owner uses a recovery code, or contacts support.
3. Set roles
An account is an organization and its members each have one role. The API enforces the matrix
below on every member request; the console hides what a role can't use. A page your role (or your
account's products) can't open says You don't have access to this page, with a way back to
Overview. A blocked request returns insufficient_role.
| Section | owner | admin | developer | analyst | approver |
|---|---|---|---|---|---|
| Overview and the Inbox | full | full | full | read | own approvals |
| Trace, Attest and Authorize data | read and write | read and write | read and write | read | Approvals only |
| Policies, approver groups, approval expiry default | write | write with Manage policies, which the owner grants | read; a change in live is held for approval | read | none |
| Counterparty lists, policy webhooks | write | write | write in sandbox, write with approval in live | read | none |
| Developers (keys, webhooks, embeds) | write | write | write; revoking a key is owner and admin | none | none |
| Team and roles | write | write, except the owner | read the roster | read the roster | none |
| Plan and usage | write | write | read | read | none |
| Account export and deletion | owner only | none | none | none | none |
Policies cover every product's rules, including the Attest risk policy. A policy change from the console also needs a passkey or authenticator check from the last 10 minutes (who can change policies).
API keys act as owner for the scopes they carry. The account's own sign-in acts as owner
too. Change a member's role on Settings → Team & roles or with
PATCH /v1/org/users/:id { "role": "analyst" }; it applies on their next request. Members sign
in with a magic link to their own email address.
The Team table and the app's Team screen show each member's Provenance app: whether it's
installed, whether requests reach it as a notification, and the kind of key their phone holds
(app on GET /v1/org/users). It's found through the member's verified email, and it's all you
see: never their phone's name, model or anything else about it.
Approvers see their inbox
An approver's console is Approvals, the Inbox and their personal settings: My availability, where they set their own Away and backup, and Sign-in & security. There is no New menu, and search finds only their approvals and settings. The approvals list holds only requests routed to them, to the approver role, or to the whole account.
Developer changes in live mode
In live mode, a developer's write to an enforcement rule is held for approval. This covers
policies, the Attest risk policy, counterparty lists and policy webhooks. The write returns 202 with a pending_change:
{
"id": "pchg_01J9Z3…",
"object": "pending_change",
"status": "pending",
"kind": "intent_policy",
"summary": "Publish a new policy version",
"approval_id": "appr_01J9Z3…",
"before": { "object": "policy", "is_default": true },
"after": { "document": { "rules": [] } }
}
The change lands in Approvals with the current and proposed state side by side. An owner or
admin approves it (a policy change needs an admin with Manage policies) with POST /v1/mandate/approvals/:id/respond { "decision": "approve" }, which replays
the developer's request as the approver. If the replay fails now, for example because the policy changed meanwhile, the response is
pending_change_failed and the approval stays pending.
Every hold and every decision is written to the decision ledger as kind policy_change. List held changes with
GET /v1/pending_changes. Owner edits, an admin's edits within their permissions and a developer's sandbox edits
apply immediately. In sandbox a developer can't change a policy at all and gets 403
manage_policies_required.
4. Invite members and set up SSO
An account is an organization, and each member has one role, from owner through approver. The API checks the role on every member request and returns 403 insufficient_role when it doesn't allow the action. API keys act as owner, within their scopes. The full matrix is in Set roles.
| Task | Endpoint |
|---|---|
| Invite a member, as owner or admin | POST / with email and role |
| Accept an invite | POST / |
| Remove a member, which ends their sessions | DELETE / |
| Set up OpenID Connect single sign-on, such as Okta or Entra | PUT / with issuer, client_, client_ and domain |
Single sign-on uses the authorization-code flow with state, nonce and PKCE. A person who signs in for the first time joins with the analyst role.
Errors you might see
| Code | Status | What it means |
|---|---|---|
invalid_ | 401 | The email and password don't match |
two_ | 409 | Your organization requires a second factor, so your last one can't be removed |
recent_ | 403 | Confirm with your passkey or authenticator, then retry |
insufficient_ | 403 | Your role doesn't allow the action |
beta_ | 403 | The operator has paused sign-ups and this email isn't on the list |