Ask for a password reset link
POST
/api/auth/password-reset
const url = 'https://forge.example.com/api/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://forge.example.com/api/auth/password-reset \ --header 'Content-Type: application/json' \ --data '{ "email": "example" }'Where the instance sends e-mail (passwordReset of GET /api/auth/accounts). Sends a link that works once, for 60 minutes, to an active person who may sign in with a password. The answer is the same whatever the address is. An address is written to three times an hour at most, and one caller may ask ten times an hour.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
email
required
string
Example generated
{ "email": "example"}Responses
Section titled “Responses”Done. The answer has no body.
default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}