Password Reset¶
Request Reset Link¶
Sends a password reset link to the user's registered email address.
Public endpoint. No authentication required.
Request Body¶
Response¶
The response is identical whether or not the email address exists, to prevent account enumeration.
Token expiry: 48 hours.
Reset Password¶
Completes a password reset using the token received via email.
Public endpoint. Requires the session token from the reset link.
Request Body¶
| Field | Type | Required | Description |
|---|---|---|---|
session_token |
string | Yes | Token extracted from the reset link |
new_password |
string | Yes | New password - minimum 8 characters |
Response¶
Admin: Force Password Reset¶
Allows an administrator to force a password reset for any user. The target user will be required to set a new password on next login.
Required role: Administrator
Request Body¶
Response¶
Code Examples¶
Request Reset Link¶
curl -X POST https://acme.knosc.com/api/forgot-password \
-H "Content-Type: application/json" \
-d '{"email": "jane.doe@acme.com"}'
Reset Password¶
curl -X POST https://acme.knosc.com/api/reset-password \
-H "Content-Type: application/json" \
-d '{"session_token": "<token>", "new_password": "new-secure-password"}'