API reference

Current user

Read the signed-in person, update their user meta, manage alternate phones, sign out, and look up an identifier.

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#

GET/v1/auth/:app_id/current_userAccess token
cURLbash
curl https://api.scute.io/v1/auth/$SCUTE_APP_ID/current_user \  -H "X-Authorization: Bearer $ACCESS_TOKEN"
Response 200 (shortened)json
{  "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#

PATCH/v1/auth/:app_id/current_user/metaAccess token

Sets values of the app's user fields for the signed-in person.

user_metaobjectrequired
Field names and values.
cURLbash
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.

Statuserror_codeWhen
400user_meta_invaliduser_meta is missing.
400A value failed the field's validation. error lists the problems.

Sign out#

DELETE/v1/auth/:app_id/current_userAccess token

Ends the session behind the access token. Its access and refresh tokens stop working. Other sessions of the person stay.

cURLbash
curl -X DELETE https://api.scute.io/v1/auth/$SCUTE_APP_ID/current_user \  -H "X-Authorization: Bearer $ACCESS_TOKEN"
Response 200json
{ "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#

GET/v1/auth/:app_id/current_user/alternate_phonesAccess token
Response 200json
{  "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#

POST/v1/auth/:app_id/current_user/alternate_phonesAccess token

Sends an SMS code to the number.

phonestringrequired
Phone number in E.164 format.
labelstring
A label, such as "Work".
cURLbash
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"}'
Response 201json
{  "challenge_token": "ch_Lk8jH6gF4dS2aQ0wE9rT7yU5iO3pZ1xC",  "phone": "+14155559876",  "label": "Work"}
Statuserror_codeWhen
400invalid_phoneNot a valid phone number.
422phone_is_canonicalThe number is the person's main phone.
422phone_already_registeredThe number is already a confirmed alternate.
422alternate_phone_cap_exceededThe person already has 5 alternate phones.

Confirm an alternate phone#

POST/v1/auth/:app_id/current_user/alternate_phones/verifyAccess token
challenge_tokenstringrequired
The challenge_token from Add an alternate phone.
codestringrequired
The SMS code.
cURLbash
curl -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"}'
Response 200json
{ "ok": true, "challenge_token": "ch_Lk8jH6gF4dS2aQ0wE9rT7yU5iO3pZ1xC" }
Statuserror_codeWhen
400missing_challenge_tokenchallenge_token is missing.
400missing_codecode is missing.
404challenge_not_foundNo such challenge for this person.
422wrong_challenge_intentThe challenge is not an alternate phone confirmation.
422verification_failedWrong code. remaining_attempts says how many tries are left.

Remove an alternate phone#

DELETE/v1/auth/:app_id/current_user/alternate_phones/:phoneAccess token

URL-encode the phone number in the path (%2B14155559876). Returns { "alternate_phones": [...] } with the remaining list.

Statuserror_codeWhen
400invalid_phoneNot a valid phone number.
404alternate_phone_not_foundThe number is not one of the person's alternates.
422managed_by_organizationAn 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#

GET/v1/auth/:app_id/usersNone
identifierstringrequired
Email or phone.
cURLbash
curl "https://api.scute.io/v1/auth/$SCUTE_APP_ID/users?identifier=ada@example.com"
Response 200json
{  "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#

POST/v1/auth/:app_id/usersNone

Creates the person in the app, or returns the existing one. The sign-up checks apply.

identifierstringrequired
Email or phone.
user_metaobject
Values for the app's user fields.
cURLbash
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#

GET/v1/auth/:app_id/users/metafieldsNone
user_idstringrequired
The app user's ID.

Returns { "meta": true } when the person has any user meta, { "meta": false } when not. An unknown user_id returns 404 with { "meta": false }.