Overview
A user is a LiveKit Cloud account. The email field is the email address on the account.
These endpoints don't change other users. To change someone's role, or to remove them, use Project members.
To list users, set projectId. You need the Read role on that project.
Getting a user returns 404 for any user who doesn't share a project with you, even when the ID exists.
To sign out, revoke your session token. This endpoint accepts only a session token. An access token gets 401.
To call these endpoints from the CLI, use the lk user commands, for example lk user list --user-auth. The lk cloud whoami --user-auth command gets the current user.
The user object
A LiveKit Cloud user.
idstringThe user ID, also the userId on project and workspace members.
emailstringThe email address on the account.
createdAttimestampWhen the account was created.
List users
/v0/usersReturns a list of User objects, with a pageInfo cursor.
Query parameters
page.cursorstringThe cursor of the page to return: the nextCursor of the previous page. When empty, the list starts at the first item.
page.pageSizeint32The maximum number of items to return. When 0, the list uses its default page size.
projectIdstringThe ID of a project (p_...). Returns only the members of this project. Set projectId, workspaceId, or both. When you set both, the project must be in the workspace, and the list has the members of the project.
workspaceIdstringThe ID of a workspace (wo_...). Returns only the members of this workspace.
Get user
/v0/users/{userId}Returns the User object.
Path parameters
userIdstringThe userId path parameter.
Get current user
/v0/users/meReturns the User object.
Revoke session token
/v0/users/me/session-tokenRevokes the session token that you call with, and signs you out. After this call, the token gets Unauthenticated on every call, a retry of this call included. Your other session tokens stay valid. Access tokens that CreateToken returned stay valid until they expire.