Get User Details
GET
/auth/admin/users/{user_id}
Get detailed information about a specific user including their sessions. Requires admin or superadmin role.
Authorizations
SessionAuth
Session ID for authenticated requests
Type
API Key (header: X-Session-ID)
Parameters
Path Parameters
user_id*
User ID
Type
Requiredstring
Example
"usr_123abc"Responses
User details retrieved successfully
application/json
JSON "success": true, "data": { "user": { "id": "usr_abc123", "email": "user@example.com", "name": "John", "last_name": "Doe", "user_name": "johndoe", "user_type": "customer", "picture": "https://storage.pubflow.com/users/usr_abc123/picture.jpg", "phone": "+1234567890", "is_verified": true, "two_factor": false, "created_at": "2025-12-07T10:00:00Z", "updated_at": "2025-12-07T10:00:00Z" }, "sessions": [ { "id": "string", "sessionPrefix": "string", "ipAddress": "string", "userAgent": "string", "userDevice": "string", "lastUsedAt": "string", "createdAt": "string", "expiresAt": "string", "status": "string" } ], "sessionCount": 3 }
{
}