Email a password reset link; the same answer whether or not the address has an account
POST
/v1/auth/password-reset
const url = 'https://example.com/v1/auth/password-reset';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"email":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/auth/password-reset \ --header 'Content-Type: application/json' \ --data '{ "email": "example" }'Who: anyone.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string
Example generated
{ "email": "example"}Responses
Section titled “Responses”Done; no body
default
Section titled “default”An error, as go-commons apperr maps it
Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string
Example generated
{ "error": { "code": "example", "fields": { "additionalProperty": "example" }, "message": "example" }}