Skip to main content
POST
/
api
/
users
/
me
/
set-password
Set password
curl --request POST \
  --url https://api.example.com/api/users/me/set-password \
  --header 'Content-Type: application/json' \
  --cookie better-auth.session_token= \
  --data '
{
  "password": "<string>"
}
'
{
  "ok": true
}

Authorizations

better-auth.session_token
string
cookie
required

Body

application/json
password
string
required
Minimum string length: 8

Response

200 - application/json

Default Response

ok
boolean
required