Skip to content

Choose a new password with a reset link

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

Media typeapplication/json
object
token
required
string
password
required
string

Example generated

{
"token": "example",
"password": "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"
}