Update phone number and avatar
Access: Bearer token required.
Sets the user's phone and/or avatar. Only these two fields are read; anything else in the body is ignored, and a field that is omitted is left unchanged. There is no request validation on this route, and it does not accept a file upload: avatar is stored exactly as sent, so upload the image elsewhere first and send its URL. Use PUT /user/personal-info for names, email, bio, business name and gender.
bearerAuthAuthorizationBearer <JWT>Access token returned by sign-in. Send it as Authorization: Bearer <token>.
application/json- body
phone?stringPhone number. Stored trimmed; the format is not validated here.
avatar?stringURL of the profile picture. Stored as sent.
Profile updated
application/json- response
status*integersuccess*booleanmessage*stringdata*curl -X PUT 'http://localhost:4000/api/v1/user/profile' \ -H 'Content-Type: application/json' \ -d '{ "phone": "+2348031234567", "avatar": "https://cdn.example.com/avatars/adaeze-okonkwo.jpg"}'{ "status": 200, "success": true, "message": "Profile updated successfully.", "data": { "id": "665f1c2e9b1d4a0012ab34cd", "firstName": "Adaeze", "lastName": "Okonkwo", "phone": "+2348031234567", "avatar": "https://cdn.example.com/avatars/adaeze-okonkwo.jpg" }}Get the signed-in user's profile GET
Returns the authenticated user's own profile, including preferences and their payout bank details with the full account number (this is the only place, with PUT /user/bank-detai...
Update personal information PUT
Partially updates the user's name, email, phone, bio, business name and gender; only the fields sent are changed.