team-management

GET /team-management/member-insights

Request

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

Query parameters

team_idstring uuid required
Example:b9f1bce9-c130-4141-80d6-3bde32a66542

The UUID of the team the member belongs to

member_idstring uuid required
Example:550e8400-e29b-41d4-a716-446655440001

The UUID of the member to fetch insights for

Response

Member insights with devices

Example response

{
  "member": {
    "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
  },
  "devices": [
    {
      "id": "9b7c6f2d-1234-4e5f-89ab-0123456789cd",
      "operating_system": "MacOS",
      "app_version": "1.2.3",
      "is_leader": true,
      "created_at": "2024-01-10T09:00:00.000Z",
      "updated_at": "2024-04-10T09:00:00.000Z"
    }
  ]
}

Changes

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