Workspaces#
A workspace is your Scute account. It holds apps, team members, billing, settings and the RSA keypair that signs every token issued in it. A workspace ID is a UUID. Each workspace also has a unique slug, which the dashboard uses in its URLs (https://control.scute.io/:slug/...).
Team members have one workspace role: owner, admin, member or read_only. A workspace always keeps at least one owner. Only owners and admins create apps.
Workspace types#
workspace_type is one of:
| Value | What it is |
|---|---|
| standard | A workspace with no parent and no children. Most customers use this type. It can own several apps. |
| master | The top of a hierarchy, used by an integrator. It provisions MSP workspaces and holds the default verification app and plan for everything below it. |
| msp | A managed service provider under a master workspace. It holds client workspaces and its own branding. |
| msp_client | A tenant of an MSP. It has one app and its own users, sessions and credentials, isolated from sibling clients. |
The API also accepts the legacy values parent, child and client.
Master Workspace workspace_type: "master" └── MSP Workspace workspace_type: "msp" └── MSP Client workspace_type: "msp_client" └── AppA workspace below another one is a child workspace. Create one with POST /v1/workspaces/:workspace_id/children. The response includes the app key of the child's app (api_key_token), returned only once. The child's type comes from the parent: a master creates msp children, an MSP creates msp_client children.
Verification app, plan and branding color and logo resolve upward: a workspace uses its own value if set, otherwise its parent's, otherwise the master's. An owner or admin of a parent workspace manages its children. See Dashboard and API reference for the MSP endpoints.
Apps#
An app is one sign-in surface inside a workspace: a website, a mobile app or a backend. Each app has its own users, sign-in settings, MFA policy, roles and permissions, API keys and webhooks.
- App ID: public. app_ followed by 20 letters and digits, for example app_3mxZRrzWxhPZ08dXvqq6. It goes in API URLs (/v1/auth/:app_id/...) and in SDK constructors. Endpoints also accept the app's UUID.
- Origin: the site where people sign in, for example https://checkout.acme.com. Magic link, OAuth and SAML redirects return to paths on this origin. An app can list additional origins.
Users#
A user belongs to one app. Every person who signs in through an app becomes a user of that app with a user ID (UUID).
A user has an email, a phone (E.164), email_verified and phone_verified, an optional external_id (your own ID for the person) and a status: active, inactive, pending or imported. Banned, suspended and flagged are separate security flags, not statuses.
Metafields are typed custom profile fields you declare per app. Types: string, boolean, integer, date, phone, email, text, url. A metafield can be required, shown at registration and shown on the profile.
Sessions and tokens#
A signed-in user has a session made of two tokens:
| Token | Default lifetime | Sent as |
|---|---|---|
| Access token | 3600 seconds (1 hour), setting access_expiration | X-Authorization: Bearer <token>, or the sc-access-token cookie |
| Refresh token | 604800 seconds (7 days), setting refresh_expiration | X-Refresh-Token |
An idle session ends after session_timeout (default 604800 seconds). Exchange a refresh token for a new access token with POST /v1/auth/:app_id/tokens/refresh. The SDKs refresh on their own.
Both tokens are JWTs signed with the workspace's key, RS256 by default. The header carries the kid of the signing key. Access token claims:
| Claim | Value |
|---|---|
| uuid | The user's ID |
| aid | The app's public ID (app_...) |
| wid | The workspace ID |
| msp_id | The MSP's public ID (msp_...), only for apps under an MSP |
| exp | Expiry, Unix seconds |
Access tokens have no sub, iss or aud claim. Check aid against your app ID.
Verify a token offline with the app's public keys:
GET https://api.scute.io/v1/auth/:app_id/.well-known/jwks.jsonGET https://api.scute.io/v1/auth/:app_id/jwksBoth are public and return the same JWKS. After a key rotation, up to 3 earlier keys stay in the set until their tokens expire (at least 7 days), so tokens signed before the rotation keep verifying. The workspace JWKS (/v1/workspaces/:id/jwks) requires a signed-in team member.
A session in one app can be exchanged for a session in another app of the same workspace with POST /v1/workspaces/:id/sessions, sent with the workspace key and the user's access token.
Keys and credentials#
| Credential | Format | Header | Use |
|---|---|---|---|
| App ID | app_... | none (in the URL) | Public identifier of an app |
| App key (formerly app secret) | scapp_... | Authorization: Bearer scapp_... | Server credential for one app. The SDKs read it from SCUTE_SECRET |
| Workspace key | scworks_... | Authorization: Bearer scworks_... | Server credential for every app in the workspace and in the workspaces below it |
| M2M token | scm2m_... | X-Authorization: Bearer scm2m_... | Identifies a server caller. Sent together with a workspace key |
| Agent key | scak_... | See AI agents | Credential for one registered agent, valid only in its own app |
App key and app secret are the same credential. Older pages and parts of the dashboard still say app secret.
M2M tokens have scopes read and write (both when none are given) and an expiry of 30d, 90d or 1y. A call without the needed scope returns 403 with error_code insufficient_scope.
Keep app keys, workspace keys and M2M tokens on your server. When you rotate a key, the old key keeps working for the period you choose: now, 1h, 24h, 7d or 30d.
Production and sandbox#
A sandbox is a second workspace linked to your production workspace. It copies your apps and their settings with fresh app IDs and keys, and sends no email or SMS to users. See Environments.
Roles and permissions#
Authorization is configured per app:
- A resource is a kind of object, for example invoice.
- An action is something done to a resource. A permission's slug is resource:action, for example invoice:refund.
- A role is a named set of permissions, assigned to users, optionally with an expiry. Roles can also be held on one object (editor of document 42) or derived from relationships.
A check returns allow, deny, allow_with_step_up or allow_with_approval. See Authorization.
Agents#
An agent is a registered AI agent in an app, with a human owner and ceiling roles: the most it can ever do. Each job runs on a task token that records the person the agent acts for and the actions it may take. The default lifetime is 30 minutes, the maximum 24 hours. An action is allowed only if the agent's ceiling, the person and the task all allow it. See AI agents.
Challenges#
A challenge is one verification attempt: Scute sends a code, a link or a push and the person proves they received it. A challenge has a purpose (authenticate, mfa, step_up, verify_contact, verify_identity, change_identifier, custom), a method (for example email_otp, sms_otp, magic_link, totp, webauthn, entra_push, duo) and a status that starts as pending. Sign-in, MFA, step-up and on-demand verification all use challenges. See Verification.