Skip to content
merran
GitHubInstall

Merran documentation API & integrations

Set a new password with a reset token

POST
/api/auth/password-reset/complete
curl --request POST \
--url http://localhost:3000/api/auth/password-reset/complete \
--header 'Content-Type: application/json' \
--data '{ "token": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "password": "correct horse battery staple" }'

Public. Accepts a single-use token from the reset email and a 10–128 character password. Revokes every session and invalidates all older reset links for the account. Does not sign in or verify the account email. Ten attempts per client address per 15-minute window. Tokens go in the body, never the request URL.

Media typeapplication/json
object
token
required
string
/^[a-zA-Z0-9_-]{43}$/
password
required
string
>= 10 characters <= 128 characters

Example

{
"token": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"password": "correct horse battery staple"
}

Password changed. Sign in with the new password.

Media typeapplication/json
object
reset
required
boolean

Example

{
"reset": true
}

Invalid, expired, used or superseded token, or invalid password.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

Too many reset attempts from this client address.

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
fields
object
key
additional properties
string

Example

{
"error": {
"code": "not_found",
"message": "There's nothing here.",
"fields": {
"name": "Give it a name."
}
}
}

© 2026 Kyle Johnson. Documentation: CC BY 4.0. Merran: AGPL-3.0-or-later.