My Profile

Get user profile details

get
/auth/get-profile

This endpoint retrieves the profile details of the authenticated user.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Responses
chevron-right
200

Successfully retrieved the user profile

get
/auth/get-profile

Edit user profile

post
/auth/edit-profile

This endpoint allows the authenticated user to edit their profile details.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
usernamestringRequiredExample: john_doe
phoneNumberstringRequiredExample: +1234567890
emailstringRequiredExample: [email protected]
addressstringOptionalExample: 123 Main St, Springfield
avatarstringOptionalExample: http://example.com/avatar.jpg
Responses
chevron-right
200

Successfully updated the user profile

post
/auth/edit-profile

Change user password

put
/auth/change-password

This endpoint allows the authenticated user to change their password.

Header parameters
AuthorizationstringRequired

Bearer token for authentication.

Body
oldPasswordstringRequiredExample: fsdfsfs43543
newPasswordstringRequiredExample: Picco123@
Responses
chevron-right
200

Password successfully changed

put
/auth/change-password

Last updated