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

# Get stream config

> Connection parameters. Read these at startup instead of hardcoding —
if the realtime infrastructure moves, your client follows automatically.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json get /s2s/stream/config
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /s2s/stream/config:
    get:
      tags:
        - S2S Stream
      summary: Get stream config
      description: |-
        Connection parameters. Read these at startup instead of hardcoding —
        if the realtime infrastructure moves, your client follows automatically.
      operationId: Config
      parameters: []
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/S2SStreamConfig'
      security:
        - s2s: []
components:
  schemas:
    S2SStreamConfig:
      properties:
        protocol:
          type: string
          enum:
            - pusher
          nullable: false
        host:
          type: string
        port:
          type: number
          format: double
        tls:
          type: boolean
        appKey:
          type: string
        channel:
          type: string
        authEndpoint:
          type: string
        userAuthEndpoint:
          type: string
      required:
        - protocol
        - host
        - port
        - tls
        - appKey
        - channel
        - authEndpoint
        - userAuthEndpoint
      type: object
      additionalProperties: false
  securitySchemes:
    s2s:
      type: http
      scheme: bearer
      bearerFormat: Service account token (JWT)

````