---
title: "Get user upcoming live sessions"
method: POST
path: "/public/get-user-upcoming-live-sessions"
tags: ["User"]
---

# Get user upcoming live sessions

`POST /public/get-user-upcoming-live-sessions`

## Request

- Base URL: `https://backend.codedamn.com/api`
- URL: `https://backend.codedamn.com/api/public/get-user-upcoming-live-sessions`
- Auth: API key in header `FERMION-API-KEY`

Get the enrolled and scheduled live sessions for a user on the current day, exactly like the upcoming live sessions shown on the user dashboard. Identify the user using any one of: your internal user ID, the Fermion user ID, or the user email address.

Authentication with the "FERMION-API-KEY" header is required to use this endpoint.

Rate limit: Maximum 60 requests in a window of 1m.

## Request body

- object
  - `data` object[], required
    - `data` object, required
      - `userId` string: Internal userId you have been using for the user in your database
      - `fermionUserId` string: The Fermion user ID (uniqueId) of the user
      - `userEmail` string, email: Email address of the user
      - `userTimeZone` string: IANA timezone of the user (e.g. "Asia/Kolkata"). Used to determine the current day boundaries. Defaults to UTC if not provided or invalid.

## Response `200`

API Response Body

- object[]
  - `output` union, required
    - object
      - `status` 'ok', required
      - `data` object, required
        - `upcomingLiveSessionsForTheDay` union[], required
          - union
            - object
              - …
            - object
              - …
    - object
      - `status` 'error', required
      - `errorMessage` string, required

---

[API](https://skmtc.dev/fermion/apis/fermion-backend-api.md) - [All operations](https://skmtc.dev/fermion/apis/fermion-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/fermion/apis/fermion-backend-api/revisions/93dda69c8230?raw)
