API reference

Users

List, read, create, edit and delete the users of an app from your server.

These routes manage the people who sign in to one app. They take the app key in Authorization, or a workspace key of the app's workspace or a workspace above it. No user access token is needed. See Authentication.

:app_id is the app's app_xxx public id or its UUID. :id is the user's id in the app (id on the user object).

List users#

GET/v1/:app_id/usersApp key

Returns one page of the app's users. The list is page based: see Pagination.

qstring
Search across email, phone and name. Partial and fuzzy matches count. When q is set, email and phone are ignored.
emailstring
Exact email match.
phonestring
Exact phone match.
statusstring
active, pending or inactive.
idstring
One user id.
created_beforedate
Users created before this date.
entra_oidstring
The user linked to this Microsoft Entra object id.
pageinteger
Page number. Default 1.
limitinteger
Users per page. Default 10.
cURLbash
curl "https://api.scute.io/v1/$SCUTE_APP_ID/users?q=jane&status=active" \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{  "total_pages": 1,  "current_page": 1,  "next_page": null,  "prev_page": null,  "per_page": 10,  "users": [    {      "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee",      "app_id": "app_3mxZRrzWxhPZ08dXvqq6",      "user_id": "0193f900-1111-2222-3333-444444444444",      "external_id": "crm_42",      "status": "active",      "name": "Jane Doe",      "email": "jane@acme.com",      "phone": "+14155551234",      "email_verified": true,      "phone_verified": false,      "meta": { "plan": "pro" },      "authz_attributes": {},      "last_signed_in_at": "2026-11-18T09:12:44Z"    }  ]}

The example shows a subset of the fields. Each entry is a full user object.

Get a user#

GET/v1/:app_id/users/:idApp key
cURLbash
curl https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{  "user": {    "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee",    "status": "active",    "email": "jane@acme.com"  }}
StatusWhen
404No user with that id in the app.

Create a user#

POST/v1/:app_id/usersApp key

Adds a person to the app. If someone in the app already has the email (or the phone, when no email is sent), that user is edited instead of a new one being added.

emailstring
Email. Send email, phone or both.
phonestring
Phone in E.164.
identifierstring
An email or a phone, read as one or the other by its shape. Used only when neither email nor phone is sent.
first_namestring
Joined with middle_name and last_name into the name.
middle_namestring
Part of the name.
last_namestring
Part of the name.
external_idstring
Your own id for the user. Unique in the app.
metaobject
Custom data. Written as sent, without checking it against the app's user fields. Also accepted as user_meta.
authz_attributesobject
Attributes that authorization conditions read as user.*. Keys are letters, digits and _, up to 64 characters; at most 16 KB in total.
statusstring
active (default) or inactive. deactivated is read as inactive.
alternate_phonesobject[]
Extra phones, each { phone, label }. Stored as trusted, without an SMS code. At most 5 per user.
send_inviteboolean
true sends an invitation link by email. Needs an email and a status other than inactive.
entraobject
Microsoft Entra identity: upn and oid (both required, or the block is ignored) and an optional tid.
cURLbash
curl -X POST https://api.scute.io/v1/$SCUTE_APP_ID/users \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{    "email": "jane@acme.com",    "first_name": "Jane",    "last_name": "Doe",    "external_id": "crm_42",    "meta": { "plan": "pro" }  }'
Response 200json
{  "user": {    "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee",    "email": "jane@acme.com",    "name": "Jane Doe",    "external_id": "crm_42",    "status": "active"  },  "invite_sent": false}

Other keys appear only when they apply:

KeyMeaning
alternate_phonesOne result per phone sent: added, skipped (with a reason) or error (with an error_code).
entra_linkedThe Entra identity that was stored.
phone_ignoredtrue when the email matched someone who already has a different phone. Their phone is kept.
workspace_membership_errorWhy the user was not added to the workspace team, when that was asked for.
StatusErrorWhen
400invalid_identifierNo email or phone, or one that is not valid.
422A field failed validation, or external_id is already used in the app.

Update custom data#

PATCH/v1/:app_id/users/:idApp key

Replaces the user's custom data and authorization attributes. user_meta is checked against the app's user fields.

user_metaobject
The new custom data.
authz_attributesobject
The new authorization attributes. Replaces the whole set; {} or null clears it.
cURLbash
curl -X PATCH https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{ "user_meta": { "plan": "team" } }'
Response 200json
{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "meta": { "plan": "team" } } }
StatusWhen
400Neither user_meta nor authz_attributes was sent.
404No user with that id.
422The data does not match the user fields, or the attributes are invalid. The body has errors.

Edit a user#

PUT/v1/:app_id/users/:idApp key

Changes the profile. Takes the same fields as Create a user except identifier, send_invite and entra. A key you leave out keeps its value. All changes apply together or not at all.

  • email or phone sent empty clears it.
  • Name parts sent all empty clear the name. name sets the full name when no parts are sent.
  • meta (or user_meta) is written as sent; an empty object clears it.
  • status inactive (or deactivated) deactivates the user; any other value activates them.
cURLbash
curl -X PUT https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "Content-Type: application/json" \  -d '{ "phone": "+14155550000", "external_id": "crm_42" }'
Response 200json
{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "phone": "+14155550000" } }
StatusErrorWhen
400invalid_identifierThe email or phone is not valid.
404No user with that id.
422A field failed validation, or external_id is already used in the app.

To change an email or phone only after the person confirms it, use Change an email or phone.

Delete a user#

DELETE/v1/:app_id/users/:idApp key

Deletes the user from the app. If the same person signs in again, they get a new account. Their earlier account can be merged in later: see Previous accounts.

cURLbash
curl -X DELETE https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
Response 200json
{ "message": "ok" }
StatusWhen
404No user with that id.