All routes on this page take the app key (or a workspace key above the app) in Authorization. See Authentication.
Activate a user#
/v1/:app_id/users/:id/activateApp keySets the user's status to active.
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/activate \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "status": "active" } }Deactivate a user#
/v1/:app_id/users/:id/deactivateApp keySets the status to inactive and ends every session the user has. An inactive user cannot sign in.
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/deactivate \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "status": "inactive" } }Both routes return 404 when the user is not in the app.
Invite a user#
/v1/:app_id/users/inviteApp keyCreates the user with status pending and emails them an invitation link.
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" }'{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "email": "jane@acme.com", "status": "pending" }, "user_meta_errors": null}| Status | When |
|---|---|
| 400 | The identifier is not a valid email. |
| 422 | Someone in the app already has this email. |
Import users#
/v1/:app_id/users/importApp keyCreates 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.
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" } }] }'{ "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#
/v1/:app_id/users/:id/previous_accountsApp keyA deleted user who signs in again gets a new account. This lists the same person's deleted accounts in the app.
curl https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/previous_accounts \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "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#
/v1/:app_id/users/:id/mergeApp keyMoves a deleted account's roles, per-object roles, passkeys, MFA methods and backup codes into this live account. The old account keeps its history.
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" }'{ "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 }}| Status | Error | When |
|---|---|---|
| 404 | not_found | No previous account with that id. |
| 422 | not_same_person | The account belongs to someone else. |
| 422 | not_deleted | The account in from is not deleted. |
| 422 | not_live | The account in the path is deleted. |
| 422 | already_merged | The account was already merged. |
Change an email or phone#
/v1/:app_id/users/:id/identifier_changeApp keySends 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.
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" }'{ "challenge_token": "ch_zN4kP2qX9wT5aB3xY9QkLm7RsT2uVw8E", "identifier_type": "email", "identifier": "jane.doe@acme.com", "expires_at": "2026-11-19T10:10:00Z"}| Status | Error | When |
|---|---|---|
| 400 | invalid_identifier | The value is not a valid email or phone. |
| 404 | No user with that id. | |
| 409 | identifier_in_use | Another user in the workspace has it. |
| 422 | invalid_request | Neither or both of email and phone were sent. |
| 422 | identifier_unchanged | It is already the user's email or phone. |
| 422 | sms_not_configured | A phone change, and the app cannot send SMS. |
Add an alternate phone#
/v1/:app_id/users/:id/alternate_phonesApp keyA 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.
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 }'{ "phone": "+14155559876", "label": "work", "verification_source": "admin_trusted" }Without admin_trusted, the response is { "challenge_token", "phone", "label" }.
| Status | Error | When |
|---|---|---|
| 400 | invalid_phone | The phone is not valid. |
| 404 | No user with that id. | |
| 422 | phone_is_canonical | It is the user's main phone. |
| 422 | phone_already_registered | It is already an alternate phone. |
| 422 | alternate_phone_cap_exceeded | The user already has 5. |
Remove an alternate phone#
/v1/:app_id/users/:id/alternate_phones/:phoneApp keyURL-encode the phone (+ is %2B).
curl -X DELETE https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID/alternate_phones/%2B14155559876 \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "alternate_phones": [] } }| Status | Error | When |
|---|---|---|
| 400 | invalid_phone | The phone is not valid. |
| 404 | alternate_phone_not_found | The user has no such alternate phone. |