---
title: Fetch details of an active session
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[Realtime Kit](https://developers.cloudflare.com/api/go/resources/realtime_kit)

[Active Session](https://developers.cloudflare.com/api/go/resources/realtime_kit/subresources/active-session)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Fetch details of an active session

client.RealtimeKit.ActiveSession.GetActiveSession(ctx, appID, meetingID, query) (\*[ActiveSessionGetActiveSessionResponse](<https://developers.cloudflare.com/api/go/resources/realtime_kit#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/realtime/kit/{app\_id}/meetings/{meeting\_id}/active-session

Returns details of an ongoing active session for the given meeting ID.

##### Security

API Token

The preferred authorization scheme for interacting with the Cloudflare API. [Create a token](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).

**Example:**`Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY`

##### Accepted Permissions (at least one required)

`Realtime Admin``Realtime`

##### ParametersExpand Collapse

appID string

The app identifier tag.

[Link to this property](<#(resource)%20realtime_kit.active-session%20%3E%20(method)%20get_active_session%20%3E%20(params)%20default%20%3E%20(param)%20app_id%20%3E%20(schema)>)

meetingID string

[Link to this property](<#(resource)%20realtime_kit.active-session%20%3E%20(method)%20get_active_session%20%3E%20(params)%20default%20%3E%20(param)%20meeting_id%20%3E%20(schema)>)

<details>

<summary>

query ActiveSessionGetActiveSessionParams

</summary>

AccountID param.Field\[string]

The account identifier tag.

maxLength32

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(method)%20get_active_session%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20realtime_kit.active-session%20%3E%20(method)%20get_active_session%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type ActiveSessionGetActiveSessionResponse struct{…}

</summary>

<details>

<summary>

Data ActiveSessionGetActiveSessionResponseDataOptional

</summary>

ID string

ID of the session

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20id">Link to this property</a>

AssociatedID string

ID of the meeting this session is associated with. In the case of V2 meetings, it is always a UUID. In V1 meetings, it is a room name of the form <code>abcdef-ghijkl</code>

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20associated_id">Link to this property</a>

CreatedAt string

timestamp when session created

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20created_at">Link to this property</a>

LiveParticipants float64

number of participants currently in the session

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20live_participants">Link to this property</a>

MaxConcurrentParticipants float64

number of maximum participants that were in the session

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20max_concurrent_participants">Link to this property</a>

MeetingDisplayName string

Title of the meeting this session belongs to

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20meeting_display_name">Link to this property</a>

MinutesConsumed float64

number of minutes consumed since the session started

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20minutes_consumed">Link to this property</a>

OrganizationID string

App id that hosted this session

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20organization_id">Link to this property</a>

StartedAt string

timestamp when session started

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20started_at">Link to this property</a>

<details>

<summary>

Status ActiveSessionGetActiveSessionResponseDataStatus

current status of session

</summary>

One of the following:

const ActiveSessionGetActiveSessionResponseDataStatusLive ActiveSessionGetActiveSessionResponseDataStatus = "LIVE"

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20status%20%3E%20(member)%200">Link to this property</a>

const ActiveSessionGetActiveSessionResponseDataStatusEnded ActiveSessionGetActiveSessionResponseDataStatus = "ENDED"

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20status%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20status">Link to this property</a>

<details>

<summary>

Type ActiveSessionGetActiveSessionResponseDataType

type of session

</summary>

One of the following:

const ActiveSessionGetActiveSessionResponseDataTypeMeeting ActiveSessionGetActiveSessionResponseDataType = "meeting"

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const ActiveSessionGetActiveSessionResponseDataTypeLivestream ActiveSessionGetActiveSessionResponseDataType = "livestream"

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

const ActiveSessionGetActiveSessionResponseDataTypeParticipant ActiveSessionGetActiveSessionResponseDataType = "participant"

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20type%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20type">Link to this property</a>

UpdatedAt string

timestamp when session was last updated

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20updated_at">Link to this property</a>

BreakoutRooms \[]unknownOptional

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20breakout_rooms">Link to this property</a>

EndedAt stringOptional

timestamp when session ended

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data%20%3E%20(property)%20ended_at">Link to this property</a>

</details>

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20data">Link to this property</a>

Success boolOptional

<a href="#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)%20%3E%20(property)%20success">Link to this property</a>

</details>

[Link to this property](<#(resource)%20realtime_kit.active-session%20%3E%20(model)%20ActiveSessionGetActiveSessionResponse%20%3E%20(schema)>)

### Fetch details of an active session

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/realtime_kit"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.RealtimeKit.ActiveSession.GetActiveSession(
    context.TODO(),
    "14a396e7-ca44-4937-bf1f-050a69118543",
    "meeting_id",
    realtime_kit.ActiveSessionGetActiveSessionParams{
      AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
    },
  )
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Data)
}
```

200 example

404 example

```
{
  "data": {
    "id": "id",
    "associated_id": "associated_id",
    "created_at": "created_at",
    "live_participants": 0,
    "max_concurrent_participants": 0,
    "meeting_display_name": "meeting_display_name",
    "minutes_consumed": 0,
    "organization_id": "organization_id",
    "started_at": "started_at",
    "status": "LIVE",
    "type": "meeting",
    "updated_at": "updated_at",
    "breakout_rooms": [
      {}
    ],
    "ended_at": "ended_at"
  },
  "success": true
}
```

```
{
  "error": {
    "code": 404,
    "message": "No active session found for meeting_id 6bf2b8be-04dd-4191-b602-1128921a306b"
  },
  "success": false
}
```

##### Returns Examples

200 example

404 example

```
{
  "data": {
    "id": "id",
    "associated_id": "associated_id",
    "created_at": "created_at",
    "live_participants": 0,
    "max_concurrent_participants": 0,
    "meeting_display_name": "meeting_display_name",
    "minutes_consumed": 0,
    "organization_id": "organization_id",
    "started_at": "started_at",
    "status": "LIVE",
    "type": "meeting",
    "updated_at": "updated_at",
    "breakout_rooms": [
      {}
    ],
    "ended_at": "ended_at"
  },
  "success": true
}
```

```
{
  "error": {
    "code": 404,
    "message": "No active session found for meeting_id 6bf2b8be-04dd-4191-b602-1128921a306b"
  },
  "success": false
}
```