Skip to main content
POST
/
api
/
v1
/
customer
/
auth
/
reset-password
Reset Password
curl --request POST \
  --url https://api.example.com/api/v1/customer/auth/reset-password \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "482910",
  "otpId": "01961f5a-7b3c-7a6e-b9d0-4a2e8c1f3d5b",
  "newPassword": "N3wP@ssw0rd!"
}
'
{
  "title": "204-Password reset successfully."
}

Query Parameters

fields
string

Comma-separated list of fields to include in the response. Supports dot notation for nested projection (e.g. id,name,user.email,trips.route.id). Unknown fields are silently dropped.

Body

application/json

Reset password payload

code
string
required

OTP code

Example:

"482910"

otpId
string<uuid>
required

OTP identifier

Example:

"01961f5a-7b3c-7a6e-b9d0-4a2e8c1f3d5b"

newPassword
string
required

New password

Minimum string length: 8
Example:

"N3wP@ssw0rd!"

Response

Password reset successfully.