Skip to main content
POST
/
user
/
password
Change user password
curl --request POST \
  --url https://{subdomain}.auth.{region}.nhost.run/v1/user/password \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "newPassword": "Str0ngPassw#ord-94|%",
  "ticket": "<string>"
}'
"OK"

Authorizations

Authorization
string
header
required

Bearer authentication that requires elevated permissions. Used for sensitive operations that may require additional security measures such as recent authentication. For details see https://docs.nhost.io/guides/auth/elevated-permissions

Body

application/json

New password and optional password reset ticket for authentication

newPassword
string
required

A password of minimum 3 characters

Required string length: 3 - 50
Example:

"Str0ngPassw#ord-94|%"

ticket
string

Ticket to reset the password, required if the user is not authenticated

Response

Password changed successfully

The response is of type enum<string>.

Available options:
OK
I