Get a user
Enterprise Only
This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.
Method: GET
URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/users/{userId}
Authorization: Bearer <token>
Response:
- 200
- 401
- 403
- 404
{
"id": 1,
"name": "John Doe",
"email": "john@example.com",
"is_admin": true,
"workspaces": [
{
"uuid": "3bbd0951-5b04-432b-b2a0-688588b0720e",
"name": "My Workspace",
"hex_color": "#6366f1",
"owner_id": 1,
"access_status": "unlimited",
"created_at": "Jan 15, 2025 10:30 AM",
"pivot": {
"role": "admin",
"can_approve": true,
"joined_at": "Jan 15, 2025 10:30 AM"
}
}
],
"settings": {},
"email_verified_at": "Jan 15, 2025 10:30 AM",
"created_at": "Jan 15, 2025 10:30 AM"
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "User not found."
}