Skip to content

Ask for a password reset link

POST
/api/auth/password-reset
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.

Media typeapplication/json
object
email
required
string

Example generated

{
"email": "example"
}

Done. The answer has no body.

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"
}