Skip to main content

resetPassword

Public: no authentication required.

Sets a new password using the token from the emailed reset link. The token works once, and the request fails if it is invalid or expired. All of the user's sessions end. Rate-limited per IP address. No sign-in needed.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation ResetPassword($resetPasswordInput: ResetPasswordInput!) {
resetPassword(resetPasswordInput: $resetPasswordInput)
}

Variables:

{
"resetPasswordInput": {
"password": "string",
"token": "string"
}
}

Response:

{
"data": {
"resetPassword": true
}
}
resetPassword(
resetPasswordInput: ResetPasswordInput!
): Boolean!

Arguments​

resetPassword.resetPasswordInput ● ResetPasswordInput! non-null input​

The token from the reset link and the new password.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.