Auth

Confirm e-mail

Confirms the account behind the e-mailed code AND sets the password the person typed (`PasswordPolicy`: 8–72 bytes, a letter, a digit, a special character) and burns the code. Sends NO mail — the person has just chosen this first password (owner 12.10.2026 «Не слать при приглашении»). A 400 never burns the code. No e-mail carries a password. The code lives `CONFIRMATION_LINK_LIFETIME` (default 7 days) from when it was issued; an expired one answers `Expired Token`, and a newer link cancels the older.

POST
/api/v2/auth/confirm-email

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

curl -X POST "https://example.com/api/v2/auth/confirm-email" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "newPassword": "pa$$word",    "newPasswordRepeat": "pa$$word"  }'
Empty
Empty
Empty