The routes on this page act on the person behind the access token, except the identifier lookups at the end, which take no credential.
Get the current user#
/v1/auth/:app_id/current_userAccess tokencurl https://api.scute.io/v1/auth/$SCUTE_APP_ID/current_user \ -H "X-Authorization: Bearer $ACCESS_TOKEN"{ "user": { "id": "0193f900-aaaa-7bbb-8ccc-eeeeeeeeeeee", "app_id": "app_3mxZRrzWxhPZ08dXvqq6", "workspace_id": "0193f8aa-0000-7000-8000-000000000000", "user_id": "0193f8ff-1111-7222-8333-444444444444", "msp_id": null, "external_id": null, "status": "active", "name": "Ada Lovelace", "email": "ada@example.com", "phone": "+14155551234", "email_verified": true, "phone_verified": false, "onboarded_at": "2026-10-02T16:21:00.000Z", "webauthn_enabled": true, "entra_enabled": false, "ms_authenticator_registered": null, "required_fields": [], "meta": { "company": "Acme" }, "last_used_at": "2026-11-19T14:04:05Z", "last_signed_in_at": "2026-11-19T14:04:05Z", "sessions_count": 2, "signup_date": "2026-10-02T16:20:00Z", "webauthn_types": ["platform"], "sessions": [], "alternate_phones": [] }}user is the full user object with sessions, verifications, pending_verifications, fingerprints, known_ips, risk and phone_info as well. See User for every field. id is the app user's ID; user_id is the person's ID across the workspace's apps.
In a support session opened from the dashboard, the response also has impersonation, describing who is acting.
Update user meta#
/v1/auth/:app_id/current_user/metaAccess tokenSets values of the app's user fields for the signed-in person.
curl -X PATCH https://api.scute.io/v1/auth/$SCUTE_APP_ID/current_user/meta \ -H "X-Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"user_meta": {"company": "Acme"}}'Returns { "user": { ... } } with the updated user.
| Status | error_code | When |
|---|---|---|
| 400 | user_meta_invalid | user_meta is missing. |
| 400 | A value failed the field's validation. error lists the problems. |
Sign out#
/v1/auth/:app_id/current_userAccess tokenEnds the session behind the access token. Its access and refresh tokens stop working. Other sessions of the person stay.
curl -X DELETE https://api.scute.io/v1/auth/$SCUTE_APP_ID/current_user \ -H "X-Authorization: Bearer $ACCESS_TOKEN"{ "message": "ok" }Signing out of a support session ends the impersonation.
Alternate phones#
A person can add up to 5 phone numbers next to their main one. Each is confirmed with an SMS code. Adding and removing is refused in a support session (403 impersonating).
List alternate phones#
/v1/auth/:app_id/current_user/alternate_phonesAccess token{ "alternate_phones": [ { "phone": "+14155559876", "label": "Work", "verified_at": "2026-11-01T10:00:00Z", "verification_source": "otp", "usable_for_login": false } ]}verification_source is otp for a phone the person confirmed, or admin_trusted for one an administrator added.
Add an alternate phone#
/v1/auth/:app_id/current_user/alternate_phonesAccess tokenSends an SMS code to the number.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/current_user/alternate_phones \ -H "X-Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"phone": "+14155559876", "label": "Work"}'{ "challenge_token": "ch_Lk8jH6gF4dS2aQ0wE9rT7yU5iO3pZ1xC", "phone": "+14155559876", "label": "Work"}| Status | error_code | When |
|---|---|---|
| 400 | invalid_phone | Not a valid phone number. |
| 422 | phone_is_canonical | The number is the person's main phone. |
| 422 | phone_already_registered | The number is already a confirmed alternate. |
| 422 | alternate_phone_cap_exceeded | The person already has 5 alternate phones. |
Confirm an alternate phone#
/v1/auth/:app_id/current_user/alternate_phones/verifyAccess tokencurl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/current_user/alternate_phones/verify \ -H "X-Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{"challenge_token": "ch_Lk8jH6gF4dS2aQ0wE9rT7yU5iO3pZ1xC", "code": "482913"}'{ "ok": true, "challenge_token": "ch_Lk8jH6gF4dS2aQ0wE9rT7yU5iO3pZ1xC" }| Status | error_code | When |
|---|---|---|
| 400 | missing_challenge_token | challenge_token is missing. |
| 400 | missing_code | code is missing. |
| 404 | challenge_not_found | No such challenge for this person. |
| 422 | wrong_challenge_intent | The challenge is not an alternate phone confirmation. |
| 422 | verification_failed | Wrong code. remaining_attempts says how many tries are left. |
Remove an alternate phone#
/v1/auth/:app_id/current_user/alternate_phones/:phoneAccess tokenURL-encode the phone number in the path (%2B14155559876). Returns { "alternate_phones": [...] } with the remaining list.
| Status | error_code | When |
|---|---|---|
| 400 | invalid_phone | Not a valid phone number. |
| 404 | alternate_phone_not_found | The number is not one of the person's alternates. |
| 422 | managed_by_organization | An administrator added the number. Only an administrator can remove it. |
Identifier lookups#
These routes need no credential. Sign-in pages use them to decide which flow to show.
Look up an identifier#
/v1/auth/:app_id/usersNonecurl "https://api.scute.io/v1/auth/$SCUTE_APP_ID/users?identifier=ada@example.com"{ "user": { "id": "0193f900-aaaa-7bbb-8ccc-eeeeeeeeeeee", "status": "active", "webauthn_enabled": true, "email_verified": true, "phone_verified": false, "email": "ada@example.com" }}user is null when no account matches. When the app has public sign-up on and no account matches, the lookup creates the account (the sign-up checks apply) and returns it. The response names email or phone, whichever was looked up.
Missing or invalid identifier returns 400 invalid_identifier. The route allows 30 requests per minute per IP address and 10 per minute per identifier.
Create a user#
/v1/auth/:app_id/usersNoneCreates the person in the app, or returns the existing one. The sign-up checks apply.
curl -X POST https://api.scute.io/v1/auth/$SCUTE_APP_ID/users \ -H "Content-Type: application/json" \ -d '{"identifier": "ada@example.com", "user_meta": {"company": "Acme"}}'Returns { "user": { ... }, "user_meta_errors": null } with status 200. user has the basic user fields (from id to required_fields in Get the current user). To create people from your server with the app key, use the users API.
Check whether a user has meta#
/v1/auth/:app_id/users/metafieldsNoneReturns { "meta": true } when the person has any user meta, { "meta": false } when not. An unknown user_id returns 404 with { "meta": false }.