curl --request GET \
--url https://api.example.com/api/auth/me{
"401": {},
"404": {},
"500": {},
"success": true,
"user": {
"_id": "<string>",
"email": "<string>",
"role": "<string>",
"full_name": "<string>",
"phone": "<string>",
"is_email_verified": true,
"is_phone_verified": true,
"profile_picture_url": "<string>",
"seller_profile": {
"identity_document": "<string>",
"selfie_url": "<string>",
"verification_status": "<string>",
"verification_method": "<string>",
"verified_at": "<string>",
"verified_by": "<string>",
"rejection_reason": "<string>",
"is_verified_badge": true
},
"is_active": true,
"last_login": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}Retrieve the authenticated user profile
curl --request GET \
--url https://api.example.com/api/auth/me{
"401": {},
"404": {},
"500": {},
"success": true,
"user": {
"_id": "<string>",
"email": "<string>",
"role": "<string>",
"full_name": "<string>",
"phone": "<string>",
"is_email_verified": true,
"is_phone_verified": true,
"profile_picture_url": "<string>",
"seller_profile": {
"identity_document": "<string>",
"selfie_url": "<string>",
"verification_status": "<string>",
"verification_method": "<string>",
"verified_at": "<string>",
"verified_by": "<string>",
"rejection_reason": "<string>",
"is_verified_badge": true
},
"is_active": true,
"last_login": "<string>",
"created_at": "<string>",
"updated_at": "<string>"
}
}GET /api/auth/me
Authorization: Bearer <token>
curl -X GET https://api.horsetrust.com/api/auth/me \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"success": true,
"user": {
"_id": "507f1f77bcf86cd799439011",
"email": "[email protected]",
"role": "seller",
"full_name": "John Smith",
"phone": "+5491112345678",
"is_email_verified": false,
"is_phone_verified": false,
"profile_picture_url": null,
"seller_profile": {
"identity_document": "https://storage.example.com/docs/id-123.pdf",
"selfie_url": "https://storage.example.com/selfies/selfie-123.jpg",
"verification_status": "pending",
"is_verified_badge": false
},
"is_active": true,
"last_login": "2026-03-05T10:30:00.000Z",
"created_at": "2026-03-01T08:00:00.000Z",
"updated_at": "2026-03-05T10:30:00.000Z"
}
}
{
"success": false,
"message": "Authentication required"
}
{
"success": false,
"message": "User not found"
}
{
"success": false,
"message": "Server error"
}