Reten Docs
Authentication

Reset My Password

Reset the current user's own password.

POST /api/auth/reset-my-password

Reset the authenticated user's password by providing the current password and a new one.

Auth: Required -- any authenticated user

Request Body

FieldTypeRequiredDescription
currentPasswordstringYesCurrent password for verification
newPasswordstringYesNew password (minimum 8 characters)

Example

curl -X POST https://api.reten.ai/api/auth/reset-my-password \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "currentPassword": "OldPass123!",
    "newPassword": "NewSecurePass456!"
  }'
import axios from 'axios';

const response = await axios.post(
  'https://api.reten.ai/api/auth/reset-my-password',
  {
    currentPassword: 'OldPass123!',
    newPassword: 'NewSecurePass456!',
  },
  {
    headers: {
      Authorization: 'Bearer <token>',
    },
  }
);

Response 200 OK

{
  "message": "Password reset successfully"
}

Error Responses

StatusDescription
400Current password is incorrect or new password doesn't meet requirements
401Missing or invalid authentication token