Choose a new password with a reset link
POST
/api/auth/password-reset/complete
const url = 'https://forge.example.com/api/auth/password-reset/complete';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example","password":"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/complete \ --header 'Content-Type: application/json' \ --data '{ "token": "example", "password": "example" }'Takes the token and a password of at least 12 characters. Every session the person had open ends, and a lock from wrong passwords is cleared. It signs nobody in: the person signs in with the new password, and with their second step when they have one. They are told by e-mail that the password changed.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
string
password
required
string
Example generated
{ "token": "example", "password": "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"}