Skip to main content
GET
/
team
/
members
[
  {
    "id": "usr_123abc",
    "name": "John Doe",
    "email": "john@example.com",
    "role": "employee",
    "isActive": true,
    "taskStats": {
      "total": 45,
      "pending": 5,
      "inProgress": 3,
      "completed": 37
    },
    "lastMood": {
      "score": 4,
      "timestamp": "2024-01-15T09:30:00Z"
    }
  },
  {
    "id": "usr_456def",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "role": "employee",
    "isActive": true,
    "taskStats": {
      "total": 32,
      "pending": 2,
      "inProgress": 1,
      "completed": 29
    },
    "lastMood": null
  }
]

Get Team Members

Returns a list of team members with their task statistics and latest mood data.
This endpoint is only accessible to users with manager or admin roles.

Request

Authorization
string
required
Bearer token from authentication

Response

Returns an array of team members:
[].id
string
User ID
[].name
string
User’s full name
[].email
string
User’s email address
[].role
string
User’s role: employee, manager, or admin
[].isActive
boolean
Whether the user account is active
[].taskStats
object
Task statistics object containing: - total: Total tasks assigned - pending: Pending tasks - inProgress: Tasks in progress - completed: Completed tasks
[].lastMood
object | null
Latest mood check-in or null if none: - score: Mood score (1-5) - timestamp: ISO timestamp of the check-in
[
  {
    "id": "usr_123abc",
    "name": "John Doe",
    "email": "john@example.com",
    "role": "employee",
    "isActive": true,
    "taskStats": {
      "total": 45,
      "pending": 5,
      "inProgress": 3,
      "completed": 37
    },
    "lastMood": {
      "score": 4,
      "timestamp": "2024-01-15T09:30:00Z"
    }
  },
  {
    "id": "usr_456def",
    "name": "Jane Smith",
    "email": "jane@example.com",
    "role": "employee",
    "isActive": true,
    "taskStats": {
      "total": 32,
      "pending": 2,
      "inProgress": 1,
      "completed": 29
    },
    "lastMood": null
  }
]