team-management

GET /team-management/all-members

Request

  • Base URL
    https://api.focusbear.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Response

adminsstring[] required
teachersstring[] required

User ids with a school-level teacher role on this team

total_countnumber required
team_idstring required

Example response

{
  "members": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "email": "john.doe@example.com",
      "last_active_date": "2024-01-15T10:30:00.000Z",
      "first_name": "John",
      "last_name": "Doe",
      "member_expiry_date": "2024-12-31T23:59:59.999Z",
      "created_at": "2024-01-10T09:00:00.000Z",
      "morning_routines_streak": 5,
      "evening_routines_streak": 3,
      "focus_modes_streak": 12,
      "morning_percent_number_day_of_stats_completed": 85.5,
      "micro_percent_number_day_of_stats_completed": 92.3,
      "evening_percent_number_day_of_stats_completed": 78.9,
      "focus_modes_percent_number_day_of_stats_completed": 67.2,
      "total_hours_in_focus_sessions": 10.5,
      "morning_number_days_completed": 35,
      "morning_num_days_of_stats": 37,
      "evening_number_days_completed": 33,
      "evening_num_days_of_stats": 37,
      "micro_breaks_number_days_completed": 40,
      "micro_breaks_num_days_of_stats": 45,
      "focus_modes_number_days_completed": 55,
      "focus_modes_num_days_of_stats": 60,
      "num_days_of_stats": 90,
      "number_days_completed": 80,
      "invitation_status": "pending",
      "invitation_sent_at": "2024-01-15T10:30:00.000Z",
      "invitation_send_count": 2,
      "invitation_responded_at": "2024-01-16T14:45:00.000Z",
      "total_focused_hours": 5.5
    }
  ],
  "total_count": 25,
  "team_id": "550e8400-e29b-41d4-a716-446655440000"
}

Changes

No recorded changes to this operation across all 1 revision of this API.