Create User
Users
Create User
Create a new user in the authenticated workspace
POST
Create User
POST /users
Create a new user record and automatically generate an API key for them. The new user is added to the currently authenticated workspace with theviewer role.
Notes
- Requires admin role in the current workspace.
- The response includes a plaintext
api_keyfield. This is the only time the key is visible — store it securely. - The API key is stored as an HMAC-SHA256+PBKDF2 hash and cannot be retrieved later.
- Request body requires
email,first_name, andlast_name. - The newly created user is assigned the
viewerrole in the workspace. Promote them via workspace user management if a higher role is needed. - See
GET /users/workspacesto list workspaces the current user belongs to.
