---
title: "Authorize channel subscription"
method: POST
path: "/s2s/stream/auth"
tags: ["S2S Stream"]
---

# Authorize channel subscription

`POST /s2s/stream/auth`

Channel authorization — point your Pusher client's channel auth here with
your server key as the Authorization header. A new consumerId takes over
from the previous consumer (its connection is terminated).

## Request body

- S2SStreamAuthBody
  - `socket_id` string, required
  - `channel_name` string, required
  - `consumerId` string, required — Identifies the connecting backend instance; a new consumerId takes over.
  - `typingEvents` boolean — Opt this stream into agent.typing.* events (high volume; default off).

## Response `200`

Ok

- unknown

---

[API](https://skmtc.net/gleap/apis/gleap-server.md) · [All operations](https://skmtc.net/gleap/apis/gleap-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gleap/gleap-server/revisions/6bb0c3577de2/schema)
