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#
/v1/:app_id/usersApp keyReturns one page of the app's users. The list is page based: see Pagination.
curl "https://api.scute.io/v1/$SCUTE_APP_ID/users?q=jane&status=active" \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "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#
/v1/:app_id/users/:idApp keycurl https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "status": "active", "email": "jane@acme.com" }}| Status | When |
|---|---|
| 404 | No user with that id in the app. |
Create a user#
/v1/:app_id/usersApp keyAdds 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.
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" } }'{ "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:
| Key | Meaning |
|---|---|
| alternate_phones | One result per phone sent: added, skipped (with a reason) or error (with an error_code). |
| entra_linked | The Entra identity that was stored. |
| phone_ignored | true when the email matched someone who already has a different phone. Their phone is kept. |
| workspace_membership_error | Why the user was not added to the workspace team, when that was asked for. |
| Status | Error | When |
|---|---|---|
| 400 | invalid_identifier | No email or phone, or one that is not valid. |
| 422 | A field failed validation, or external_id is already used in the app. |
Update custom data#
/v1/:app_id/users/:idApp keyReplaces the user's custom data and authorization attributes. user_meta is checked against the app's user fields.
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" } }'{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "meta": { "plan": "team" } } }| Status | When |
|---|---|
| 400 | Neither user_meta nor authz_attributes was sent. |
| 404 | No user with that id. |
| 422 | The data does not match the user fields, or the attributes are invalid. The body has errors. |
Edit a user#
/v1/:app_id/users/:idApp keyChanges 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.
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" }'{ "user": { "id": "0193f900-aaaa-bbbb-cccc-eeeeeeeeeeee", "phone": "+14155550000" } }| Status | Error | When |
|---|---|---|
| 400 | invalid_identifier | The email or phone is not valid. |
| 404 | No user with that id. | |
| 422 | A 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#
/v1/:app_id/users/:idApp keyDeletes 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.
curl -X DELETE https://api.scute.io/v1/$SCUTE_APP_ID/users/$USER_ID \ -H "Authorization: Bearer $SCUTE_APP_SECRET"{ "message": "ok" }| Status | When |
|---|---|
| 404 | No user with that id. |