Skip to content
Last updated

🔨 In Development — This section is still being developed and may change.
**PUT** `/v1/auth/password/update` - Update the authenticated user's password after verifying the current password. This endpoint requires the current password and enforces password strength requirements.
PUThttps://api.freddy.aitronos.com/v1/auth/password/update

Updates the password for the authenticated user. Requires verification of the current password and confirmation of the new password. Password changes are logged for security auditing.

Request Body

current_password string required

Current password for verification. Must match the user's existing password.

new_password string required

New password. Must meet complexity requirements: minimum 8 characters, uppercase and lowercase letters, at least one number, and at least one special character.

confirm_password string required

Confirmation of the new password. Must match new_password exactly.

Headers

Authorization string required

Bearer token for authentication. Format: Bearer <token>


Returns

A Password Update Response object containing confirmation of successful password update.

success boolean

Indicates if the password was updated successfully. Always true for successful updates.

message string

Success message confirming the password update.

Bash
curl -X PUT https://api.freddy.aitronos.com/v1/auth/password/update \
-H "Authorization: Bearer $FREDDY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
  "current_password": "CurrentPassword123!",
  "new_password": "NewSecurePassword456!",
  "confirm_password": "NewSecurePassword456!"
}'