Skip to content

Change user password

POST
/v1/auth/change-password
curl --request POST \
--url https://api.neuramancer.dev/v1/auth/change-password \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "currentPassword": "example", "newPassword": "example" }'

Changes the authenticated user’s password. Requires a valid Bearer token in the Authorization header. The current password is verified before updating.

Media typeapplication/json
object
currentPassword
required

The user’s current password

string
newPassword
required

The new password to set

string
Examplegenerated
{
"currentPassword": "example",
"newPassword": "example"
}

Password changed successfully

Media typeapplication/json
object
success
boolean
Example
{
"success": true
}

Missing fields or password change failed

Media typeapplication/json

Standardized error response following the APIResponse schema.

object
success
required
boolean
message
required
string
Example
{
"success": false,
"message": "Bad request"
}

Invalid or expired token

Media typeapplication/json

Standardized error response following the APIResponse schema.

object
success
required
boolean
message
required
string
Example
{
"success": false,
"message": "Bad request"
}

Server error during password change

Media typeapplication/json

Standardized error response following the APIResponse schema.

object
success
required
boolean
message
required
string
Example
{
"success": false,
"message": "Bad request"
}