Users

Get a user

GET/api/users/{userId}

Returns details for the specified user account when the caller has permission to view it.

Try it

GET/api/users/{userId}
Authorization

Credentials stay in this browser tab and are never sent anywhere except the API.

Path parameters
Response

Send a request to see the response.

Headers

NameTypeDescription
AuthorizationrequiredstringToken returned by POST /api/auth/login, or an API key (`umami_…`) created under Settings → API keys (self-hosted only). Bearer <token>.
x-umami-share-contextrequiredstringRequired context header when authenticating with a share token. <api-key>.
x-umami-share-tokenrequiredstringSigned token returned by a share endpoint. <api-key>.

Path parameters

NameTypeDescription
userIdrequiredstringID of the associated user.

Responses

200The operation completed successfully.
NameTypeDescription
_countrequiredobject
apiKeysrequiredobject[]API keys associated with the user.
boardsrequiredobject[]Boards associated with the user.
createdAtrequiredstringDate and time the record was created.
createdByrequiredobject[]ID of the user who created the resource.
idrequiredstringUnique identifier of the resource.
linksrequiredobject[]Tracked links associated with the user.
passwordrequiredstringPassword used to authenticate the account.
pixelsrequiredobject[]Tracking pixels associated with the user.
reportsrequiredobject[]Saved reports associated with the user.
rolerequiredstringPermission role assigned to the user.
teamsrequiredobject[]Teams associated with the user.
twoFactorAuthrequiredobject
twoFactorBackupCodesrequiredobject[]
twoFactorOtpUsedsrequiredobject[]
twoFactorRateLimitrequiredobject
twoFactorRequiredrequiredbooleanWhether two-factor authentication is required.
usernamerequiredstringUsername of the account.
websitesrequiredobject[]
200 example
401Unauthorized.
NameTypeDescription
errorrequiredobjectError details returned when the operation fails.
401 example

Code samples

cURL