- Docs
- Api%2Freference%2Fwallets%2FResetPassword
Start a password reset
Email the user a link to set a new password. The link carries a one-time token, which the page behind it sends to `POST /auth/set-password`. The answer is always the same, whether or not an account exists at that address, so this cannot be used to find out who has one. No sign-in needed — this is for a user who cannot sign in.
Request Body
application/json
Where to send the reset link.
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://api.dual.network/auth/password" \ -H "Content-Type: application/json" \ -d '{ "email": "alex@example.com" }'{}{
"code": 3,
"message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}{
"code": 13,
"message": "internal error"
}