Initialize Password
POST
/web/v1/users/self/auth/password/initNoneInitializes a password for a newly registered user who completed registration without setting a password. Returns a 201 Created response on success.
Authentication
Auth Chain: WEB Chain — no JWT required (pre-authentication endpoint) 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 |
|---|---|---|---|---|
request | Object | Yes | body | PasswordInitRequest object (see request body schema) |
Success Response
Success201
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"email": "user@example.com",
"passwordSet": true
}
}Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- Returns HTTP 201 Created on success.
- Rate limited to 5 requests per 300-second window.
- The
sessionIdmust come from a prior registration or login flow.