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

ParameterTypeDescription
usernamestringThe user's username.
passwordstringThe user's password.
rolestringChoose from (admin | user | view-only).
idstring(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

ParameterTypeDescription
usernamestring(optional) The user's username.
passwordstring(optional) The user's password.
rolestring(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

ParameterTypeDescription
includeTeamsbooleanSet to true to include websites where you are the team owner.
searchstring(optional) Search text.
pagenumber(optional, default 1) Determines page.
pageSizenumber(optional) Determines how many results to return.

Sample response


GET /api/users/:userId/teams#

Gets all teams that belong to a user.

Parameters

ParameterTypeDescription
pagenumber(optional, default 1) Determines page.
pageSizenumber(optional) Determines how many results to return.

Sample response