Skip to main content
POST
/
auth
/
reset-password
Reset password
curl --request POST \
  --url https://psn-api.paystub.dev/auth/reset-password \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "1234567890abcdef",
  "email": "[email protected]",
  "password": "newpassword123",
  "password_confirmation": "newpassword123"
}
'
{
  "success": true,
  "data": {},
  "message": "Password has been reset successfully"
}

Body

application/json
token
string
required
Example:

"1234567890abcdef"

email
string<email>
required
password
string<password>
required
Minimum length: 8
Example:

"newpassword123"

password_confirmation
string
required
Example:

"newpassword123"

Response

Password reset successfully

success
boolean
Example:

true

data
object
message
string
Example:

"Password has been reset successfully"