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.
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.
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_type | channel |
|---|---|
| verification.otp.email | |
| verification.otp.sms | sms |
| verification.magic_link.email | |
| verification.magic_link.sms | sms |
Variables for saved templates:
| Variable | Available 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.
| Status | error_code | When |
|---|---|---|
| 401 | A credential is missing or invalid. | |
| 401 | authentication_required | No M2M token or user JWT resolved. |
| 403 | workspace_access_denied | The M2M token belongs to another workspace. |
| 403 | insufficient_scope | The M2M token lacks read (for GET) or write. |
| 404 | App 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.
/v1/apps/:app_id/notification-templatesAPI key + M2M tokencurl https://api.scute.io/v1/apps/$SCUTE_APP_ID/notification-templates \ -H "Authorization: Bearer $SCUTE_WORKSPACE_KEY" \ -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"{ "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#
/v1/apps/:app_id/notification-templates/:idAPI key + M2M tokencurl 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.
/v1/apps/:app_id/notification-templates/upsertAPI key + M2M tokencurl -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 }})" } }'{ "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.
/v1/apps/:app_id/notification-templatesAPI key + M2M tokenUpdate a template#
Changes the fields you send. Same fields as upsert, inside template.
/v1/apps/:app_id/notification-templates/:idAPI key + M2M tokencurl -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#
/v1/apps/:app_id/notification-templates/:idAPI key + M2M tokenReturns 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.
/v1/apps/:app_id/notification-templates/:id/resetAPI key + M2M tokencurl -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"{ "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.
/v1/apps/:app_id/notification-templates/event-typesAPI key + M2M tokencurl 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"{ "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.