My Profile
This endpoint retrieves the profile details of the authenticated user.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Responses
200
Successfully retrieved the user profile
400
Bad Request, user not authenticated or other errors
get
/auth/get-profileThis endpoint allows the authenticated user to edit their profile details.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Body
usernamestringRequiredExample:
john_doephoneNumberstringRequiredExample:
+1234567890emailstringRequiredExample:
[email protected]addressstringOptionalExample:
123 Main St, SpringfieldavatarstringOptionalExample:
http://example.com/avatar.jpgResponses
200
Successfully updated the user profile
400
Bad Request, invalid input or missing fields
post
/auth/edit-profileThis endpoint allows the authenticated user to change their password.
Header parameters
AuthorizationstringRequired
Bearer token for authentication.
Body
oldPasswordstringRequiredExample:
fsdfsfs43543newPasswordstringRequiredExample:
Picco123@Responses
200
Password successfully changed
400
Bad Request, invalid old password or other issues
put
/auth/change-passwordLast updated