# Get active sessions Get currently active Meeting Buddy sessions for the organization. Returns a list of all Meeting Buddy sessions that are currently in an active state (`initializing`, `joining`, `active`, or `recording`). Useful for monitoring dashboards and real-time session management. ## Returns Returns an array of active session summary objects. Each object contains: | Field | Type | Description | | --- | --- | --- | | `session_id` | string | Unique session identifier (`mbsess_` prefix) | | `meeting_link` | string | Meeting URL | | `platform` | string | Meeting platform (`teams`, `zoom`, `meet`, `webex`) | | `status` | string | Current status (`initializing`, `joining`, `active`, `recording`) | | `bot_name` | string | Display name of the bot | | `join_timestamp` | string or null | When the bot joined the meeting (ISO 8601) | | `current_participants` | array | List of current participant names | | `duration_so_far_seconds` | number or null | Elapsed duration in seconds | Request ```bash cURL curl -s -X GET https://api.aitronos.com/v1/meeting-buddy/analytics/active \ -H "Authorization: Bearer $ACCESS_TOKEN" | python3 -m json.tool ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") active = client.meeting_buddy.get_active_sessions() for session in active: print(f"{session.session_id}: {session.status} on {session.platform}") if session.duration_so_far_seconds: print(f" Duration: {session.duration_so_far_seconds / 60:.1f} min") ``` ```python Python import os import requests access_token = os.environ["ACCESS_TOKEN"] url = "https://api.aitronos.com/v1/meeting-buddy/analytics/active" headers = {"Authorization": f"Bearer {access_token}"} response = requests.get(url, headers=headers) active_sessions = response.json() for session in active_sessions: print(f"{session['session_id']}: {session['status']}") ``` ```javascript JavaScript const accessToken = process.env.ACCESS_TOKEN; const response = await fetch( 'https://api.aitronos.com/v1/meeting-buddy/analytics/active', { headers: { 'Authorization': `Bearer ${accessToken}`, }, } ); const activeSessions = await response.json(); activeSessions.forEach(session => { console.log(`${session.session_id}: ${session.status} on ${session.platform}`); }); ``` Response ```json 200 OK [ { "session_id": "mbsess_abc123def456", "meeting_link": "https://teams.microsoft.com/l/meetup-join/abc123", "platform": "teams", "status": "active", "bot_name": "Meeting Buddy", "join_timestamp": "2025-12-11T10:01:00Z", "current_participants": ["John Doe", "Jane Smith"], "duration_so_far_seconds": 1245.5 }, { "session_id": "mbsess_def789ghi012", "meeting_link": "https://zoom.us/j/123456789", "platform": "zoom", "status": "joining", "bot_name": "Meeting Buddy", "join_timestamp": null, "current_participants": [], "duration_so_far_seconds": null } ] ``` ```json 200 OK - No active sessions [] ``` ```json 401 Unauthorized { "success": false, "error": { "code": "AUTHENTICATION_REQUIRED", "message": "Authentication is required to access this resource.", "type": "client_error", "status": 401, "details": {}, "trace_id": "abc-123-def", "timestamp": "2025-12-11T10:00:00Z" } } ``` ## Related Resources - [Analytics Summary](/docs/api-reference/meeting-buddy/analytics-summary) - [Session Trends](/docs/api-reference/meeting-buddy/analytics-trends) - [Get Session Details](/docs/api-reference/meeting-buddy/get-session) - [List Sessions](/docs/api-reference/meeting-buddy/list-sessions)