---
title: "Get stream config"
url: https://docs.gleap.ai/en/reference/rest-api/config
method: GET
path: "/s2s/stream/config"
api: "API Reference"
tag: "S2S Stream"
operationId: "Config"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Get stream config

`GET https://api.gleap.io/v3/s2s/stream/config`

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

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Example request

```bash
curl --request GET \
  --url https://api.gleap.io/v3/s2s/stream/config \
  --header 'Authorization: Bearer <token>'
```

## Responses

### 200 (`application/json`)

Ok

- `protocol` (enum<string>, required): One of: `pusher`.
- `host` (string, required)
- `port` (number<double>, required)
- `tls` (boolean, required)
- `appKey` (string, required)
- `channel` (string, required)
- `authEndpoint` (string, required)
- `userAuthEndpoint` (string, required)

```json
{
  "protocol": "pusher",
  "host": "string",
  "port": 0,
  "tls": true,
  "appKey": "string",
  "channel": "string",
  "authEndpoint": "string",
  "userAuthEndpoint": "string"
}
```
