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 userResponse
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 onlyPath Parameters
string
required
Workspace ID
string
required
User ID
Request Body
string
required
New role:
admin or userResponse
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)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
Related Endpoints
- API Key Management - Workspace management
- System Status - Check current user
