API reference

User lifecycle

Activate, deactivate, invite, import, merge and change a user's email, phone and extra phones.

All routes on this page take the app key (or a workspace key above the app) in Authorization. See Authentication.

Activate a user#

POST/v1/:app_id/users/:id/activateApp key

Sets the user's status to active.

cURLbash
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/activate \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "status": "active" } }

Deactivate a user#

POST/v1/:app_id/users/:id/deactivateApp key

Sets the status to inactive and ends every session the user has. An inactive user cannot sign in.

cURLbash
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/deactivate \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "status": "inactive" } }

Both routes return 404 when the user is not in the app.

Invite a user#

POST/v1/:app_id/users/inviteApp key

Creates the user with status pending and emails them an invitation link.

identifierstringrequired
The user's email.
user_metaobject
Custom data, checked against the app's user fields.
cURLbash
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/invite \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{ "identifier": "jane@acme.com" }'
Response 200json
{  "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "email": "jane@acme.com", "status": "pending" },  "user_meta_errors": null}
StatusWhen
400The identifier is not a valid email.
422Someone in the app already has this email.

Import users#

POST/v1/:app_id/users/importApp key

Creates users from rows of a table. One column must have the key email. Every other value in a row is stored as custom data. Rows without a valid email are skipped. New users get status imported.

columnsobject[]required
The columns, each with a key. One must be email.
rowsobject[]required
The rows, each { values: { email, ... } }.
cURLbash
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/import \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{    "columns": [{ "key": "email" }, { "key": "plan" }],    "rows": [{ "values": { "email": "jane@acme.com", "plan": "pro" } }]  }'
Response 200json
{ "errors": [{ "email": "bob@acme.com", "error": "User already exists" }] }

errors lists the rows that were not created. The route returns 400 when no column is email. For updates as well as creates, and for more than email, use Bulk sync.

List previous accounts#

GET/v1/:app_id/users/:id/previous_accountsApp key

A deleted user who signs in again gets a new account. This lists the same person's deleted accounts in the app.

cURLbash
curl https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/previous_accounts \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{  "previous_accounts": [    {      "id": "0193e100-aaaa-bbbb-cccc-dddddddddddd",      "status": "active",      "created_at": "2026-03-02T10:00:00.000Z",      "deleted_at": "2026-09-14T08:30:00.000Z",      "roles": 2,      "passkeys": 1,      "mfa_methods": ["totp"]    }  ]}

merged_into appears on an account that was already merged, with the id of the account it went into.

Merge a previous account#

POST/v1/:app_id/users/:id/mergeApp key

Moves a deleted account's roles, per-object roles, passkeys, MFA methods and backup codes into this live account. The old account keeps its history.

fromstringrequired
Id of the deleted account, from List previous accounts.
cURLbash
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/merge \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{ "from": "0193e100-aaaa-bbbb-cccc-dddddddddddd" }'
Response 200json
{  "user_id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee",  "merged": "0193e100-aaaa-bbbb-cccc-dddddddddddd",  "moved": { "roles": 2, "resource_roles": 0, "passkeys": 1, "mfa_methods": 1, "backup_codes": 0 }}
StatusErrorWhen
404not_foundNo previous account with that id.
422not_same_personThe account belongs to someone else.
422not_deletedThe account in from is not deleted.
422not_liveThe account in the path is deleted.
422already_mergedThe account was already merged.

Change an email or phone#

POST/v1/:app_id/users/:id/identifier_changeApp key

Sends a code to the new email or phone. The record changes only after the code is entered. Read the code back with POST /v1/auth/:app_id/challenges/:token/verify using challenge_token; that call changes the record and does not sign anyone in.

To change it at once without a code, use Edit a user.

emailstring
The new email. Send email or phone, not both.
phonestring
The new phone, in E.164.
cURLbash
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/identifier_change \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{ "email": "jane.doe@acme.com" }'
Response 201json
{  "challenge_token": "ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E",  "identifier_type": "email",  "identifier": "jane.doe@acme.com",  "expires_at": "2026-11-19T10:10:00Z"}
StatusErrorWhen
400invalid_identifierThe value is not a valid email or phone.
404No user with that id.
409identifier_in_useAnother user in the workspace has it.
422invalid_requestNeither or both of email and phone were sent.
422identifier_unchangedIt is already the user's email or phone.
422sms_not_configuredA phone change, and the app cannot send SMS.

Add an alternate phone#

POST/v1/:app_id/users/:id/alternate_phonesApp key

A user can have up to 5 alternate phones besides their main one.

By default Scute texts a code to the number and returns a challenge_token. The phone is added once the code is verified with POST /v1/auth/:app_id/challenges/:token/verify. With admin_trusted: true the phone is added at once, with no SMS, and verification_source is admin_trusted.

phonestringrequired
The phone, in E.164.
labelstring
A label, such as work.
admin_trustedboolean
Add without a code. Default false.
cURLbash
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/alternate_phones \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{ "phone": "+14155559876", "label": "work", "admin_trusted": true }'
Response 201json
{ "phone": "+14155559876", "label": "work", "verification_source": "admin_trusted" }

Without admin_trusted, the response is { "challenge_token", "phone", "label" }.

StatusErrorWhen
400invalid_phoneThe phone is not valid.
404No user with that id.
422phone_is_canonicalIt is the user's main phone.
422phone_already_registeredIt is already an alternate phone.
422alternate_phone_cap_exceededThe user already has 5.

Remove an alternate phone#

DELETE/v1/:app_id/users/:id/alternate_phones/:phoneApp key

URL-encode the phone (+ is %2B).

cURLbash
curl -X DELETE https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/alternate_phones/%2B14155559876 \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "alternate_phones": [] } }
StatusErrorWhen
400invalid_phoneThe phone is not valid.
404alternate_phone_not_foundThe user has no such alternate phone.