Toggle Sidebar
Get User Profile
Retrieve the profile information for a specific user. This endpoint allows you to fetch details about a user's account, including their personal information, skills, badges, reviews, and seller information.
Requirements
- Authentication may be required depending on your API settings.
Usage
Request
- Method:
GET - Path:
/auth/profile
Example
curl -X GET "https://api.example.com/auth/profile" \
-H "Authorization: Bearer <token>"
Response
200 OK
Returns a standard API envelope with the user profile details in data.
Example:
{
"status": true,
"path": "string",
"statusCode": 0,
"message": "string",
"data": {
"id": "string",
"first_name": "string",
"last_name": "string",
"user_name": "string",
"email": "string",
"date_of_birth": "string",
"about_me": "string",
"gender": "string",
"profile_image": "string",
"join_as": "string",
"user_status": "string",
"created_at": "string",
"updated_at": "string",
"inactive_till": "string",
"is_forever_inactive": true,
"is_push_active": true,
"is_seller": true,
"skills": [
{
"id": 0,
"skill_name": "string",
"skill_id": 0,
"skill_level": 0,
"user_id": "string",
"created_at": "string",
"updated_at": "string"
}
],
"badges": [
{
"badge_icon": "string",
"badge_name": "string",
"badge_description": "string"
}
],
"reviews": [
{
"id": "string",
"user_id": "string",
"reviewer_id": "string",
"review_rating": 0,
"review_content": "string",
"ref_id": "string",
"ref_model": "string",
"ref_meta": {},
"reply": "string",
"created_at": "string",
"updated_at": "string"
}
],
"languages": [
{
"language_id": 0,
"language_level": "string",
"language_name": "string"
}
],
"city": "string",
"country": "string",
"zone": "string",
"zip_code": "string",
"location": "string",
"avg_rating": 0,
"total_reviews": 0,
"member_since": "string",
"last_active": "string",
"profile_completion": 0,
"seller_info": {
"seller_level": "string",
"success_rate": "string",
"response_time": "string"
}
}
}
Notes
- The response uses a standard envelope:
status,path,statusCode,message, anddata. skills,badges,reviews, andlanguagesare arrays that may be empty depending on the user.seller_infois included for seller accounts and contains seller performance metrics.