---
title: "Get stream config"
url: https://docs.gleap.ai/en/reference/conversations-api/config
method: GET
path: "/s2s/stream/config"
api: "Conversations API"
tag: "S2S Stream"
operationId: "Config"
updatedAt: "2026-11-01T18:40:16.191Z"
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>`

## Headers

- `Gleap-Version` (string): Pin a specific API version; defaults to the current version.

## 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"
}
```

### 401 (`application/problem+json`)

Missing, invalid or revoked service account token.

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```

### 404 (`application/problem+json`)

The addressed resource does not exist in this project.

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```

### 422 (`application/problem+json`)

Idempotency-Key reuse with a different request body.

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```

### 429 (`application/problem+json`)

Rate limit exceeded — honor the Retry-After header.

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```

### default (`application/problem+json`)

Any other error, including validation\_failed (400) and internal\_error (500).

- `type` (string, required)
- `title` (string, required)
- `status` (number, required)
- `code` (string, required)
- `detail` (string)
- `request_id` (string)

```json
{
  "type": "https://docs.gleap.io/s2s/problems/conversation_closed",
  "title": "string",
  "status": 0,
  "code": "conversation_closed",
  "detail": "string",
  "request_id": "req_66c0ffee0000000000000001"
}
```
