Base URLs#
| What | URL |
|---|---|
| API | https://api.scute.io |
| Auth API for an app (browsers and SDKs) | https://api.scute.io/v1/auth/:app_id |
| Management API | https://api.scute.io/v1/... (for example /v1/workspaces/:id) |
| App JWKS | https://api.scute.io/v1/auth/:app_id/.well-known/jwks.json |
| Dashboard | https://control.scute.io |
The Python and Ruby SDKs read SCUTE_BASE_URL to point at another host. The JavaScript SDKs default to https://api.scute.io.
Production and sandbox#
A sandbox is a second workspace linked to your production workspace (sandbox_workspace_id on production, sandbox_of_workspace_id and is_sandbox: true on the sandbox). The dashboard's Production/Sandbox toggle switches between the two. Sandboxes need a plan with the sandbox feature.
Sandbox and production use the same base URL. They differ by credentials: sandbox apps have their own app IDs and keys. Every API response says which environment answered:
| Header | Value |
|---|---|
| X-Scute-Environment | production or sandbox |
| X-Scute-Sandbox | true, on sandbox responses only |
@scute/js-core exposes these as isSandbox and environment.
What a sandbox copies#
Creating or syncing a sandbox copies, from production: apps, sign-in settings, MFA settings, attack protection, IP rules, auto-flags, branding and team members. App credentials are new.
It does not copy users, sessions and history, API keys, signing keys, webhooks, OAuth and SSO connections, SMS and email senders, email templates, the authorization policy, custom domains or integrations.
Sync goes one way, production to sandbox.
| Endpoint | Use |
|---|---|
| POST /v1/workspaces/:id/sandbox | Create the sandbox |
| POST /v1/workspaces/:id/sandbox/sync | Copy production settings again |
| POST /v1/workspaces/:id/sandbox/reset | Reset the sandbox |
| GET /v1/workspaces/:id/sandbox/messages | Messages the sandbox would have sent |
| DELETE /v1/workspaces/:id/sandbox | Delete the sandbox |
Messages in a sandbox#
A sandbox sends no email or SMS to app users. Each message is stored instead, kept for 7 days and shown in the dashboard and at GET /v1/workspaces/:id/sandbox/messages. Email to your own team members still goes out.
Test identities#
Test identities sign in with the code 424242, and Scute sends nothing to them.
| Kind | Pattern | Example |
|---|---|---|
| Local part ends in +scute_test | ada+scute_test@example.com | |
| Phone | US number +1 NXX 555 0100 to 0199 | +1 415 555 0142 |
They work only when the app turns on test_identities and the workspace is a sandbox. Production apps do not accept them.
Rate limits#
Every /v1 endpoint is rate limited (600 requests per minute per IP in general, lower on endpoints that send a code or link). A limited request returns 429 with a Retry-After header and a body with error, retry_after and rule.