API reference

Verification templates

Change the SMS and email text of a verification, for one request or saved on the app.

Scute renders verification messages with Liquid. You can override the text for one challenge, or save a template on the app that sends it. For workspace challenges that app is the workspace's verification app.

Override for one request#

Send a template object when you create a challenge, on POST /v1/auth/:app_id/challenges or POST /v1/workspaces/:workspace_id/challenges. It applies to that challenge only and is stored as metadata._template_override.

template.smsstring
Body of an SMS. Falls back to body.
template.bodystring
Body of an email. Also used for SMS when sms is not set.
template.subjectstring
Email subject. Ignored for SMS. Default Verification.

Variables: {{ app.name }}, {{ link }}, {{ recipient }}, {{ code }}, {{ purpose }}, {{ intent }}, {{ expires_in_minutes }}, {{ contact_name }}, {{ contact_email }}, {{ redirect_url }}. {{ code }} is set for OTP methods only, {{ link }} for magic_link only. The last three come from the challenge metadata and are empty when it does not have them.

Requestbash
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/challenges \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{    "purpose": "verify_identity",    "method": "sms_otp",    "identifier": "+15551234567",    "template": {      "sms": "{{ app.name }}: your code is {{ code }} (expires in {{ expires_in_minutes }} min)"    }  }'

Saved templates#

A saved template belongs to an app and is keyed by event_type, channel and locale. When an app has none for a combination, its workspace's template is used, then Scute's default.

Verification messages use these event types:

event_typechannel
verification.otp.emailemail
verification.otp.smssms
verification.magic_link.emailemail
verification.magic_link.smssms

Variables for saved templates:

VariableAvailable in
{{ app.name }}, {{ app.origin }}, {{ user.name }}, {{ user.email }}, {{ user.phone }}, {{ workspace.name }}All four
{{ code }}, {{ code_expires_in }}verification.otp.*
{{ link }}, {{ link_expires_in }}verification.magic_link.*
{{ link }} (the verify page short URL)verification.otp.sms
{{ msp.name }}, {{ msp.logo_url }}, {{ msp.primary_color }}, {{ client_app.name }}SMS templates and verification.magic_link.email, for workspace challenges

{{ code_expires_in }} and {{ link_expires_in }} are durations in words, such as 10 minutes. For workspace challenges, {{ app.name }} is the MSP's name in SMS templates and in verification.magic_link.email. List event types returns every event type with its variables.

Authentication#

Two credentials

Send an app key or workspace key in Authorization and an M2M token in X-Authorization. The M2M token's app must be in the app's workspace, in a workspace directly below it, or in a workspace above it. A member JWT is accepted in place of the M2M token.

Statuserror_codeWhen
401A credential is missing or invalid.
401authentication_requiredNo M2M token or user JWT resolved.
403workspace_access_deniedThe M2M token belongs to another workspace.
403insufficient_scopeThe M2M token lacks read (for GET) or write.
404App or template not found.

List templates#

Returns the template that applies for each event type, channel and locale Scute has a default for, plus templates saved for this app or its workspace where Scute has no default.

GET/v1/apps/:app_id/notification-templatesAPI key + M2M token
app_idstringrequired
Path. app_... ID or UUID.
Requestbash
curl https://api.scute.io/v1/apps/$SCUTE_APP_ID/notification-templates \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "templates": [    {      "id": "0193faaa-1111-2222-3333-444444444444",      "event_type": "verification.otp.sms",      "channel": "sms",      "locale": "en",      "subject": null,      "body_template": "{{ app.name }}: Code {{ code }}. Enter at {{ link }}",      "action_text_template": null,      "action_url_template": null,      "active": true,      "app_id": "app_51c30388vR9p2Lk7QwM4",      "workspace_id": null,      "created_at": "2026-11-19T12:00:00Z",      "updated_at": "2026-11-19T12:00:00Z",      "unknown_variables": [],      "is_customized": true,      "is_system_default": false    }  ]}

is_customized is true for a template saved on this app. is_system_default is true for Scute's own. unknown_variables lists variables the template uses that its event type does not provide; they render as empty text.

Get a template#

GET/v1/apps/:app_id/notification-templates/:idAPI key + M2M token
idstringrequired
Path. ID of a template saved on this app.
Requestbash
curl https://api.scute.io/v1/apps/$SCUTE_APP_ID/notification-templates/0193faaa-1111-2222-3333-444444444444 \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"

Returns { "template": ... } with the fields shown under List templates, without is_customized and is_system_default.

Upsert a template#

Creates a template, or updates the one this app already has for the same event_type, channel and locale. Wrap the fields in template.

POST/v1/apps/:app_id/notification-templates/upsertAPI key + M2M token
template.event_typestringrequired
For example verification.magic_link.sms.
template.channelstringrequired
sms or email.
template.body_templatestringrequired
Liquid body.
template.subjectstring
Email subject.
template.action_text_templatestring
Email button label.
template.action_url_templatestring
Email button URL.
template.localestring
Default en.
template.activeboolean
false disables it, and the default applies again.
Requestbash
curl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/notification-templates/upsert \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{    "template": {      "event_type": "verification.magic_link.sms",      "channel": "sms",      "body_template": "{{ app.name }}: tap to verify {{ link }} (expires in {{ link_expires_in }})"    }  }'
Response 201json
{  "template": {    "id": "0193faaa-1111-2222-3333-444444444444",    "event_type": "verification.magic_link.sms",    "channel": "sms",    "locale": "en",    "subject": null,    "body_template": "{{ app.name }}: tap to verify {{ link }} (expires in {{ link_expires_in }})",    "action_text_template": null,    "action_url_template": null,    "active": true,    "app_id": "app_51c30388vR9p2Lk7QwM4",    "workspace_id": null,    "created_at": "2026-11-19T12:00:00Z",    "updated_at": "2026-11-19T12:00:00Z",    "unknown_variables": []  }}

201 when created, 200 when updated. 422 with the validation messages in error when a required field is missing, the channel is invalid or the Liquid does not parse.

Create a template#

Same body as upsert. Fails with 422 when the app already has a template for that combination.

POST/v1/apps/:app_id/notification-templatesAPI key + M2M token

Update a template#

Changes the fields you send. Same fields as upsert, inside template.

PATCH/v1/apps/:app_id/notification-templates/:idAPI key + M2M token
Requestbash
curl -X PATCH https://api.scute.io/v1/apps/$SCUTE_APP_ID/notification-templates/0193faaa-1111-2222-3333-444444444444 \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{ "template": { "active": false } }'

Returns { "template": ... }.

Delete a template#

DELETE/v1/apps/:app_id/notification-templates/:idAPI key + M2M token

Returns 204. Later sends use the workspace's template or Scute's default.

Reset a template#

Deletes the app's template and returns the Scute default that now applies, or null when there is none.

POST/v1/apps/:app_id/notification-templates/:id/resetAPI key + M2M token
Requestbash
curl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/notification-templates/0193faaa-1111-2222-3333-444444444444/reset \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "template": {    "id": "0193f000-aaaa-bbbb-cccc-000000000001",    "event_type": "verification.magic_link.sms",    "channel": "sms",    "locale": "en",    "app_id": null,    "workspace_id": null  }}

List event types#

Every event type Scute sends a notification for, with its channels and the variables its templates can use. Each variable has key, description and sample.

GET/v1/apps/:app_id/notification-templates/event-typesAPI key + M2M token
Requestbash
curl https://api.scute.io/v1/apps/$SCUTE_APP_ID/notification-templates/event-types \  -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "event_types": [    {      "event_type": "verification.otp.sms",      "channels": ["sms"],      "category": "verification",      "description": "OTP code sent via SMS",      "variables": [        { "key": "app.name", "description": "Application name", "sample": "Acme" }      ]    }  ]}

The test-send endpoint (POST .../notification-templates/:id/test) emails the signed-in member and is not available with an M2M token.