Recovery Confirm
Finalizes password recovery by verifying a security code and token, then setting a new password. Returns new authentication tokens upon success.
Endpoint
POST/v2/auth/recovery/confirm
Link
Request
Headers
Authorization
Bearer <JWT>
Yes
Content-Type
application/json
Yes
Accept
application/json
Yes
Request Body (JSON)
code
string
Recovery code (from email/SMS).
Yes
"A1B2C3"
token
string
One-time recovery token.
Yes
"xyz789abc"
password
string
New password.
Yes
"NewSecurePass123!"
repeatPassword
string
Must match password exactly.
Yes
"NewSecurePass123!"
Example Request Body:
json
Response (200 OK)
Returns new authentication tokens for immediate login.
Response Fields
accessToken
string
JWT for API access.
"eyJhbGci...xyz"
refreshToken
string
Long-lived token for renewing access.
"eyJhbGci...abc"
guid
string
User identifier.
"usr_5f3d8e2a"
Example Response:
json
Error Responses
Invalid Code/Token:
json
Password Mismatch:
json
Weak Password:
json
Notes
Token Validity:
Recovery tokens typically expire after 15 minutes.
Password Rules:
Minimum 8 characters.
Requires uppercase, lowercase, and numbers/symbols.
Security:
Old passwords are invalidated immediately.
Active sessions using the old password are terminated.
Examples
Real request
Real response
Last updated

