---
title: "GetActiveSessions endpoint"
method: GET
path: "/api/v1/accounts/{{account_id}}/sessions"
tags: ["Session"]
---

# GetActiveSessions endpoint

`GET /api/v1/accounts/{{account_id}}/sessions`

## Request

- Base URL: `https://edge-gsc.api.brightcove.com`
- URL: `https://edge-gsc.api.brightcove.com/api/v1/accounts/{{account_id}}/sessions`
- Auth: none declared

An endpoint that returns active sessions by viewerID

## Path parameters

- `account_id` string, required

## Response `200`

Active Sessions

- ModelSession[]
  - `end_viewer_id` string: Unique id for the viewer
  - `last_seen` string: Date-time of last session by the viewer
  - `session_id` string: Unique session id
  - `stopped` boolean: whether the session has stopped

## Other responses

- `401`: Unauthorized due to invalid token

## Changes

- **2023-03-26** `982ad01a99c4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brightcovelearning/apis/concurrency-service-api/changes/api/v1/accounts/:{account_id}/sessions/get.md)

---

[API](https://skmtc.dev/brightcovelearning/apis/concurrency-service-api.md) - [All operations](https://skmtc.dev/brightcovelearning/apis/concurrency-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brightcovelearning/apis/concurrency-service-api/revisions/d8a64dc7830d?raw)
