---
title: "Check whether a chatroom has a live call, and how many people are in it."
method: POST
path: "/v1/get_active_call_session"
tags: ["Live calls"]
---

# Check whether a chatroom has a live call, and how many people are in it.

`POST /v1/get_active_call_session`

## Request

- Base URL: `https://partner.mindupload.app`
- URL: `https://partner.mindupload.app/v1/get_active_call_session`
- Auth: API key in header `X-Partner-Key`

Reports the live call in a chatroom, or null when there is none, along with how many people are in it. Use it when opening a room so somebody arriving late can see a call in progress. A call whose participants have all disappeared without saying so is detected and closed here rather than being reported forever.

## Request body

- object
  - `preferred_language` string, nullable: BCP-47-ish language code (e.g. 'en', 'zh-cn') for localized messages.
  - `username` string, nullable: The end-user's username.
  - `password` string, nullable: The end-user's password on first sign-in. After login/register, send the returned session token (JWT) here instead — the field accepts either, and reusing the token keeps raw passwords out of your storage.
  - `chatroom_id` string, nullable: Chatroom id as returned by chatroom operations.

## Response `200`

Result envelope — check the success field.

- object
  - `success` boolean: Whether the call succeeded.
  - `error_message` string, nullable: Human-readable reason when success is false.
  - `error_code` string
  - `call_session` object, nullable: The call running in this chatroom, or null when there is none. Reported whether or not you are in it, so a client opening a room can offer the way in; joining is a separate request.

## Other responses

- `400`: Invalid request payload.
- `401`: Missing or invalid partner key.
- `403`: Partner is not authorized for this operation.
- `429`: Rate limit exceeded — retry later.
- `500`: Internal server error.

---

[API](https://skmtc.dev/mindupload/apis/mind-upload-partner-api.md) · [All operations](https://skmtc.dev/mindupload/apis/mind-upload-partner-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mindupload/apis/mind-upload-partner-api/revisions/0371bdf78533?raw)
