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

# Session endpoint

`POST /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: API key in header `Authorization`

An endpoint that allows or denies playback based on concurrency restrictions

## Path parameters

- `account_id` string, required

## Request body

- ModelHeartbeatRequest
  - `video` string: The video id

## Response `200`

Playback allowed

- ModelHeartbeatResponse
  - `current` integer: Number of current active sessions
  - `heartbeat_interval` integer: Interval for heartbeats in milliseconds
  - `max` integer: Maximum number of allowed concurrent sessions

## Other responses

- `204`: Feature not available for the account
- `401`: Unauthorized due to invalid token
- `403`: Forbidden playback due to concurrency limit

## 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/post.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)
