---
updatedAt: 2025-06-12T20:06:13.000Z
agentTools:
  projectIndex: https://developer.accelevents.com/llms.txt
---

# Main Stage Session

Here are the steps and API endpoints to join **main stage session** in the **Accelevents** platform.

## Main Stage Session

Calling these following API in sequences will help you to join the main stage session in the **Accelevents** platform

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Steps
      </th>

      <th>
        Description
      </th>

      <th>
        API Reference
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        [Get all main stage sessions](https://developer.accelevents.com/docs/main-stage-sessionchanges#1-get-all-main-sessions)
      </td>

      <td>
        Get all the main stage session list.
      </td>

      <td>
        [Click here](https://developer.accelevents.com/reference/get-all-sessions-for-display-and-portal-page)
      </td>
    </tr>

    <tr>
      <td>
        [Join session](https://developer.accelevents.com/docs/main-stage-sessionchanges#2-join-session)
      </td>

      <td>
        Check if all the requirements are full-filled like if an attendee has  required ticket for that session/session is live / session capacity has exceeded or not. 

        If all requirements are full filled then the user is registered for that session.
      </td>

      <td>
        [Click here](https://developer.accelevents.com/reference/user-register-event-ticket-id)
      </td>
    </tr>
  </tbody>
</Table>

## 1. Get all main stage sessions

First, you need to get all main stage sessions that are currently live as if session time is in the future or already ended you won't be able to join that session.

To get the live main stage sessions you can use below API endpoint. To only get live main stage sessions you need to pass `sessionFormat` as `MAIN_STAGE`.

<Embed url="https://developer.accelevents.com/reference/get-all-sessions-for-display-and-portal-page" title="Get all sessions for display and portal page" favicon="https://files.readme.io/ef6b773-small-dark_fill_icon.png" provider="developer.accelevents.com" href="https://developer.accelevents.com/reference/get-all-sessions-for-display-and-portal-page" />

You can also pass other query parameters such as `page` , `size`, `past`, `sessionFormat`, `expand`, `currentUserRegisteredEventTicketId`, `status`  for further filter sessions and get response data accordingly.

Here is a sample response, which will be returned by API.

```json
{
  "recordsTotal": 1,
  "recordsFiltered": 1,
  "data": [
    {
      "sessionId": 11507,
      "title": "First Main Session",
      "startTime": "2021/12/20 19:00",
      "endTime": "2021/12/20 23:00",
      "location": null,
      "description": null,
      "format": "MAIN_STAGE",
      "speakerList": [
        {
          "speakerId": 5758,
          "title": null,
          "pronouns": null,
          "firstName": "Jay",
          "lastName": "Dobariya",
          "email": "milan.d+1@brilworks.com",
          "sessionDTO": null,
          "userId": 8528,
          "imageUrl": null,
          "company": null,
          "bio": null,
          "linkedIn": null,
          "twitter": null,
          "instagram": null,
          "position": 2000.0,
          "moderator": true,
          "ticketTypesForSpeaker": null,
          "showModerator": true,
          "deviceChecked": false,
          "loggedInAtVEH": false,
          "allowAttendeeAccess": false,
          "allowOverrideDetails": false
        }
      ],
      "currentUserRegisteredEventTicketId": [
        57940
      ],
      "tracks": [
        {
          "id": 732,
          "name": "First track",
          "color": "#0094ff",
          "description": null,
          "position": 1000.0
        },
        {
          "id": 733,
          "name": "Second track",
          "color": "#0094ff",
          "description": null,
          "position": 2000.0
        }
      ],
      "streamProvider": "ACCELEVENTS",
      "streamUrl": "00Or9NLwMCWOVMg5rExaaLwTqRW00eO01fXqyo9DisAWcc",
      "rtmpUrl": "rtmp://live.mux.com/app",
      "meetingPassword": null,
      "sessionVisibilityType": "PUBLIC",
      "sponsorList": [
        
      ],
      "recordSession": true,
      "hideVideoControls": false,
      "exihiborList": [
        
      ],
      "postSessionCallToActionJson": null,
      "playBackRestrictionToken": "eyJraWQiOiJNSEJvMXhaR09PUGlHUTJ4Y3AwMjFOOXNVVnkzcTVURFBnNUN3Sk1McTAyQlUiLCJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIwME9yOU5Md01DV09WTWc1ckV4YWFMd1RxUlcwMGVPMDFmWHF5bzlEaXNBV2NjIiwiYXVkIjoidCIsInBsYXliYWNrX3Jlc3RyaWN0aW9uX2lkIjoiNmtPdFNjWXFPMDJhTG5jZktySXo1Ylp1VTAxd3N4Qlg5RDNmdmU2enBYSUdjIiwiZXhwIjoxODYwNDA4MDE1fQ.ZGP21bNPioV-YzxBaF0fL9iosC20oChssINBTNzZfgs-H0FGT7iv-596nhb4lqzHxnKATZOnv5VcwpsgQi1SqV7Rm8Gsp1Kwt1XEl0RjYdXjKc5dRVQwWLWPJHal6qs3MdqFaigYTKameBl2fmldbnFDyQZDDrci2wtly1M-o8MLP2BG0KANZ-QiKGdywJLEIFwLIbx0ALvqbQeQSEI1-pO0gthOllCZUQ-0NBRAnhtUn2ZXWbMgagJDiMGLkQ8r6HNrg88d_xuM5AZR5F9_ZhSul6TCVF8yFHBKaqE1590usvp50CIvSVT_9eoLAbJi0UX_185kZ3H9wiiQxmDPJw",
      "thumbnailRestrictionToken": null
    }
  ],
  "error": null,
  "pastSession": false,
  "upComingSession": true
}
```

## 2. Join session

> 🚧 Note
>
> If you have not purchased a ticket for the session then, you can't join sessions.

In this step, you will register the attendee for a particular main stage session. From [step 1](https://developer.accelevents.com/docs/main-stage-sessionchanges#1-get-all-main-sessions), you need to identify `sessionId` for which you need to register an attendee.

<Embed url="https://developer.accelevents.com/reference/user-register-event-ticket-id" title="Register/Bookmark session" favicon="https://files.readme.io/ef6b773-small-dark_fill_icon.png" provider="developer.accelevents.com" href="https://developer.accelevents.com/reference/user-register-event-ticket-id" />

Above API will check all requirements to join a session and get a response  200 status code then attendee has registered for the session. If any criteria are not full-filled then it will return an error with the proper error message.

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th>
        Criteria
      </th>

      <th>
        Error code
      </th>

      <th>
        Error message
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        Session not exist
      </td>

      <td>
        404
      </td>

      <td>
        Session not found!
      </td>
    </tr>

    <tr>
      <td>
        Session reach its max capacity
      </td>

      <td>
        406
      </td>

      <td>
        Max user registration capacity reached
      </td>
    </tr>

    <tr>
      <td>
        Ticket type not match
      </td>

      <td>
        406
      </td>

      <td>
        Your ticket does not permit access to this session
      </td>
    </tr>

    <tr>
      <td>
        If the purchased ticket type restricts the number of sessions you can join and you have reached that limit
      </td>

      <td>
        406
      </td>

      <td>
        Your registration type only permits registering for \{number\_of\_sessions\_permitted} sessions. If you would like to register for this session please un-register from a different session first
      </td>
    </tr>

    <tr>
      <td>
        The session should be live
      </td>

      <td>
        407
      </td>

      <td>
        The time limit for accessing this session is expired
      </td>
    </tr>
  </tbody>
</Table>

If the attendee has successfully registered for the session then you can below API to get session detail where you will get `streamKey`/`rtmpUrl`/`streamUrl` that you can use for streaming the session.

<Embed url="https://developer.accelevents.com/reference/get-session-for-display-and-portal-page" title="Get session for display and portal page" favicon="https://files.readme.io/ef6b773-small-dark_fill_icon.png" provider="developer.accelevents.com" href="https://developer.accelevents.com/reference/get-session-for-display-and-portal-page" />