v2

latestOpenAPI 3.1.02026-07-312303692.4 MB
Stream Authentication

Stream Expire All

Expire all of the tokens associated with a specific stream.

post/api/v1/auth/stream/{stream_id}/expire-all

Path parameters

stream_idstring required

The Stream's ID or UID.

Example:unique-identifier

The Stream's ID or UID.

Headers

idempotency-keystring

The request's idempotency key

Request body

expiryinteger nullable

How many seconds until the old key is expired.

sessionIdsstring[]

An optional list of session ids.

If any session ids are specified, only Stream tokens created with that session id will be expired.

Example request

{
  "expiry": 60,
  "sessionIds": [
    "user_1FB8"
  ]
}

Response

no content