Send a password-reset link to a user
Mails the user a one-time password-reset link `FRONTEND_HOST/set-password?uuid=…` (#5); the user sets the new password through it with `POST /api/v2/auth/reset-password {"uuid","newPassword","newPasswordRepeat"}` — no e-mail carries a password. The ONLY admin password action (owner 16.10.2026): an account NOT confirmed yet gets the invitation («You're invited to the X workspace on B2Translate») with the same link, and setting the password through it also confirms the account; a confirmed account gets «An administrator sent you a B2Translate password reset». Any holder of `UserRecoveryPassword`, on a member of their own workspace whose rank there is STRICTLY lower; never on themselves. Global roles may act in any workspace (`X-Workspace-Id`). A soft-deleted account answers 404 like an unknown id. No request body. Replaces `POST /api/v1/user/recovery-password`.
Authorization
BearerAuthObject Machine tokens only: a personal API token or a product robot token (POST /api/v2/products/{uid}/robot-tokens). A session JWT here is 401 — the web app uses the b2t_access cookie.
In: header
Path Parameters
Response Body
application/json
curl -X POST "https://example.com/api/v2/users/0/recovery-password"{ "message": { "error": "You are not allowed to perform this action." }}