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.
| Route | Purpose |
|---|---|
GET /user/list | List the accounts |
POST /user/create | Create an account |
POST /user/update | Change an account |
POST /user/delete | Delete 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
GET /user/listReturns every account of the project:
{
"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
POST /user/create{
"data": {
"email": "ana@example.com",
"password": "a-long-password",
"displayName": "Ana",
"role": "user"
}
}| Field | Required | Meaning |
|---|---|---|
email | yes | Email the user signs in with |
password | yes | At least 6 characters |
displayName | yes | Name shown in the application |
role | yes | Role of the user, for example user or admin |
{ "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
POST /user/update{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83", "displayName": "Ana P.", "role": "admin" } }| Field | Required | Meaning |
|---|---|---|
uid | yes | Id of the account |
email | no | New email. It is stored trimmed and in lower case |
displayName | no | New name |
password | no | New password, at least 6 characters |
role | no | New role |
Only the fields that are sent change.
{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83" } }400 without uid, or with the reason if the change is refused.
Delete a user
POST /user/delete{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83" } }Deletes the account and its user record. The user can no longer sign in.
{ "data": { "uid": "k2JdP0sVbQe7Wm1XzL4tYc9aRn83" } }400 without uid, or with the reason if the account cannot be deleted.