Endpoints
Users
Operations around User management.
These endpoints are only available for self-hosted instances for admin users and not Umami Cloud.
Endpoints
POST /api/users#
Creates a user.
Parameters
| Parameter | Type | Description |
|---|---|---|
username | string | The user's username. |
password | string | The user's password. |
role | string | Choose from (admin | user | view-only). |
id | string | (optional) Force a UUID assignment to the user. |
Request body
Sample response
GET /api/users/:userId#
Gets a user by ID.
Sample response
POST /api/users/:userId#
Updates a user.
Parameters
| Parameter | Type | Description |
|---|---|---|
username | string | (optional) The user's username. |
password | string | (optional) The user's password. |
role | string | (optional) Select from admin, user, view-only. |
Request body
Sample response
DELETE /api/users/:userId#
Deletes a user.
Sample response
GET /api/users/:userId/websites#
Gets all websites that belong to a user.
Parameters
| Parameter | Type | Description |
|---|---|---|
includeTeams | boolean | Set to true to include websites where you are the team owner. |
search | string | (optional) Search text. |
page | number | (optional, default 1) Determines page. |
pageSize | number | (optional) Determines how many results to return. |
Sample response
GET /api/users/:userId/teams#
Gets all teams that belong to a user.
Parameters
| Parameter | Type | Description |
|---|---|---|
page | number | (optional, default 1) Determines page. |
pageSize | number | (optional) Determines how many results to return. |
Sample response