Reset password
POST
/api/v1/auth/password/reset
const url = 'https://example.com/api/v1/auth/password/reset';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"new_password":"example","token":"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/api/v1/auth/password/reset \ --header 'Content-Type: application/json' \ --data '{ "new_password": "example", "token": "example" }'Public: spends a reset link. Signs every session out and opens none: the person signs in again, second factor included.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
PasswordResetRequest
object
new_password
required
New Password
string
token
required
Token
string
Example generated
{ "new_password": "example", "token": "example"}Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
ctx
Context
object
input
Input
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Example generated
{ "detail": [ { "ctx": {}, "input": "example", "loc": [ "example" ], "msg": "example", "type": "example" } ]}