Get started

Environments

Production and sandbox workspaces, test identities that never send a message, and the base URLs.

Base URLs#

WhatURL
APIhttps://api.scute.io
Auth API for an app (browsers and SDKs)https://api.scute.io/v1/auth/:app_id
Management APIhttps://api.scute.io/v1/... (for example /v1/workspaces/:id)
App JWKShttps://api.scute.io/v1/auth/:app_id/.well-known/jwks.json
Dashboardhttps://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:

HeaderValue
X-Scute-Environmentproduction or sandbox
X-Scute-Sandboxtrue, 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.

EndpointUse
POST /v1/workspaces/:id/sandboxCreate the sandbox
POST /v1/workspaces/:id/sandbox/syncCopy production settings again
POST /v1/workspaces/:id/sandbox/resetReset the sandbox
GET /v1/workspaces/:id/sandbox/messagesMessages the sandbox would have sent
DELETE /v1/workspaces/:id/sandboxDelete 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.

KindPatternExample
EmailLocal part ends in +scute_testada+scute_test@example.com
PhoneUS 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.