Skip to content

User routes ​

These routes manage the accounts that can sign in to the project. Base URLs and the response envelope are in Requests and responses.

Only a user who can manage users may call them: one whose profile includes the Settings view or, when the user has no stored profile, one with the role admin or superadmin. Anyone else gets 403. The three POST routes read their fields inside data.

RoutePurpose
GET /user/listList the accounts
POST /user/createCreate an account
POST /user/updateChange an account
POST /user/deleteDelete an account

Permission profiles are not managed through these routes: role is stored on the user, and the profile that decides what the user sees is assigned in the application or with the MCP tools (Project tools).

List users ​

http
GET /user/list

Returns every account of the project:

json
{
  "data": [
    {
      "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83",
      "email": "ana@example.com",
      "displayName": "Ana",
      "disabled": false,
      "metadata": {
        "creationTime": "Mon, 12 Jan 2026 08:41:07 GMT",
        "lastSignInTime": "Fri, 20 Nov 2026 07:02:55 GMT"
      }
    }
  ]
}

lastSignInTime is null for an account that has never signed in.

Create a user ​

http
POST /user/create
json
{
  "data": {
    "email": "ana@example.com",
    "password": "a-long-password",
    "displayName": "Ana",
    "role": "user"
  }
}
FieldRequiredMeaning
emailyesEmail the user signs in with
passwordyesAt least 6 characters
displayNameyesName shown in the application
roleyesRole of the user, for example user or admin
json
{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83" } }

400 with the reason if the account cannot be created, for example when the email is already in use.

Update a user ​

http
POST /user/update
json
{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83", "displayName": "Ana P.", "role": "admin" } }
FieldRequiredMeaning
uidyesId of the account
emailnoNew email. It is stored trimmed and in lower case
displayNamenoNew name
passwordnoNew password, at least 6 characters
rolenoNew role

Only the fields that are sent change.

json
{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83" } }

400 without uid, or with the reason if the change is refused.

Delete a user ​

http
POST /user/delete
json
{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83" } }

Deletes the account and its user record. The user can no longer sign in.

json
{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83" } }

400 without uid, or with the reason if the account cannot be deleted.