API reference

User fields

Define the custom fields an app collects on its users, their types and their order.

User fields are the schema for a user's custom data (meta on the user object). The sign-in and profile components show them, and PATCH /v1/:app_id/users/:id checks custom data against them.

These routes take the app key in Authorization and an M2M token of the app in X-Authorization. See Authentication. An M2M token needs the write scope to create, change, reorder or delete a field.

The field object#

User fieldjson
{  "id": "0193fa00-aaaa-7bbb-8ccc-000000000001",  "name": "Company",  "field_name": "company",  "field_type": "string",  "required": false,  "visible_profile": true,  "visible_registration": true,  "as_verification_identifier": false,  "position": 0,  "created_at": "2026-11-01T12:00:00.000Z",  "updated_at": "2026-11-01T12:00:00.000Z"}
FieldMeaning
nameLabel shown to the user. Required. Cannot be phone_number, phone, email or mobile_phone.
field_nameThe key in the user's meta, made from the name.
field_typestring (default), boolean, integer, date, phone, email, text or url.
requiredThe user must fill it in.
visible_profileShown on the profile component.
visible_registrationShown on the sign-in and registration component.
as_verification_identifierThe value can be used as a verification identifier.
positionOrder, from 0.

List fields#

GET/v1/apps/:app_id/user_meta_fieldsApp key + M2M
cURLbash
curl https://api.scute.io/v1/apps/$SCUTE_APP_ID/user_meta_fields \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{  "id": "0193f8aa-5555-7666-8777-888888888888",  "user_meta_data_schema": [    { "id": "0193fa00-aaaa-7bbb-8ccc-000000000001", "name": "Company", "field_name": "company", "field_type": "string", "position": 0 }  ]}

id is the app's UUID. Fields are in position order.

Create a field#

POST/v1/apps/:app_id/user_meta_fieldsApp key + M2M

Send the field inside user_meta_field.

user_meta_field.namestringrequired
Label.
user_meta_field.field_typestring
Type. Default string.
user_meta_field.requiredboolean
Required.
user_meta_field.visible_profileboolean
Shown on the profile component.
user_meta_field.visible_registrationboolean
Shown at registration.
user_meta_field.as_verification_identifierboolean
Usable as a verification identifier.
user_meta_field.positioninteger
Order.
cURLbash
curl -X POST https://api.scute.io/v1/apps/$SCUTE_APP_ID/user_meta_fields \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{ "user_meta_field": { "name": "Company", "field_type": "string", "visible_registration": true } }'

Returns 200 with the field object.

StatusErrorWhen
422invalidA value is not valid. details.fields maps each field to its error codes, such as blank, exclusion or taken.

Update a field#

PUT/v1/apps/:app_id/user_meta_fields/:idApp key + M2M

Takes the same user_meta_field body as create. Returns 200 with the field object, or 422 invalid as above.

cURLbash
curl -X PUT https://api.scute.io/v1/apps/$SCUTE_APP_ID/user_meta_fields/$FIELD_ID \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{ "user_meta_field": { "required": true } }'

Reorder fields#

PATCH/v1/apps/:app_id/user_meta_fields/update_positionsApp key + M2M

Sets position from the order of the ids.

user_meta_fieldsstring[]required
Field ids, in the new order.
cURLbash
curl -X PATCH https://api.scute.io/v1/apps/$SCUTE_APP_ID/user_meta_fields/update_positions \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN" \  -H "Content-Type: application/json" \  -d '{ "user_meta_fields": ["0193fa00-aaaa-7bbb-8ccc-000000000002", "0193fa00-aaaa-7bbb-8ccc-000000000001"] }'
Response 200json
{ "message": "Meta fields positions updated" }
StatusErrorWhen
404not_foundAn id is not a field of this app.
422invaliduser_meta_fields is not a list of ids.

Delete a field#

DELETE/v1/apps/:app_id/user_meta_fields/:idApp key + M2M
cURLbash
curl -X DELETE https://api.scute.io/v1/apps/$SCUTE_APP_ID/user_meta_fields/$FIELD_ID \  -H "Authorization: Bearer $SCUTE_APP_SECRET" \  -H "X-Authorization: Bearer $SCUTE_M2M_TOKEN"
Response 200json
{ "message": "Meta field deleted" }