> ## Documentation Index
> Fetch the complete documentation index at: https://developer.mindlytics.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Obtain an Authorization Token

> Get authorization key for WebSocket connection.  Specify a session_id to scope events to a specific session.



## OpenAPI

````yaml GET /bc/v1/live-events/realtime
openapi: 3.0.0
info:
  title: Mindlytics API
  version: 1.0.0
servers:
  - url: https://app.mindlytics.ai
security:
  - APIKey: []
    APPId: []
paths:
  /bc/v1/live-events/realtime:
    get:
      tags:
        - Live Events
      summary: Get authorization key for WebSocket connection
      description: >-
        Get authorization key for WebSocket connection.  Specify a session_id to
        scope events to a specific session.
      parameters:
        - in: query
          name: session_id
          description: >-
            The session ID of the events to listen for.  If not specified, all
            events will be sent.
          schema:
            type: string
            title: Session ID
            description: >-
              The session ID of the events to listen for.  If not specified, all
              events will be sent.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  authorization_key:
                    type: string
                    title: Authorization Key
                    description: The authorization key for the WebSocket connection
                required:
                  - authorization_key
components:
  securitySchemes:
    APIKey:
      type: apiKey
      in: header
      name: Authorization
      description: API Key for your organization
    APPId:
      type: apiKey
      in: header
      name: X-App-ID
      description: Project ID

````