Skip to main content
Manage users within workspaces in multi-tenant deployments. Users can have ADMIN or USER roles, each with different permissions.
Admin APIs require root_api_key to be configured in the server. ROOT users can manage all accounts, while ADMIN users can only manage their own workspace.

Roles and Permissions

Register User

Register a new user in a workspace. Authentication: ROOT or ADMIN (own account only)

Path Parameters

string
required
Workspace ID where the user will be registered

Request Body

string
required
Unique user identifier within the workspace
string
default:"user"
User role: admin or user

Response

string
Response status (ok or error)
object
Registration result
number
Request processing time in seconds

Example

List Users

List all users in a workspace. Authentication: ROOT or ADMIN (own account only)

Path Parameters

string
required
Workspace ID to list users from

Response

string
Response status (ok or error)
array
Array of users in the workspace
number
Request processing time in seconds

Example

Remove User

Remove a user from a workspace. The user’s API key is immediately invalidated. Authentication: ROOT or ADMIN (own account only)

Path Parameters

string
required
Workspace ID
string
required
User ID to remove

Response

string
Response status (ok or error)
object
Deletion result
number
Request processing time in seconds

Example

Set User Role

Change a user’s role. ROOT only. Authentication: ROOT only

Path Parameters

string
required
Workspace ID
string
required
User ID

Request Body

string
required
New role: admin or user

Response

string
Response status (ok or error)
object
Role change result
number
Request processing time in seconds

Example

Regenerate API Key

Regenerate a user’s API key. The old key is immediately invalidated. Authentication: ROOT or ADMIN (own account only)
The old API key becomes invalid immediately. Ensure the new key is distributed to the user before they need to make API calls.

Path Parameters

string
required
Workspace ID
string
required
User ID

Response

string
Response status (ok or error)
object
New key
number
Request processing time in seconds

Example

Complete Workflow Example