Initialize Account (Admin)
POST
/web/v1/workspaces/{workspaceId}/users/admin/accounts/initJWTInitializes a new user account within the workspace. This is a tenant-only admin operation for creating accounts with pre-configured settings.
Authentication
Auth Chain: WEB Chain — requires
Authorization: Bearer <jwt>These headers are injected by the system (frontend does nothing):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
Request Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
workspaceId | String | Yes | path | Workspace business ID |
request | Object | Yes | body | AccountInitRequest object (see request body schema) |
Success Response
Success200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"userBizId": "usr_abc123",
"email": "user@example.com",
"temporaryPassword": true
}
}Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- Only available in the tenant portal (10010102).
- Requires
workspace:user:writepermission. - Creates a new account with pre-configured settings within the workspace.