---
title: "Stream Expire All"
method: POST
path: "/api/v1/auth/stream/{stream_id}/expire-all"
tags: ["Stream Authentication"]
---

# Stream Expire All

`POST /api/v1/auth/stream/{stream_id}/expire-all`

Expire all of the tokens associated with a specific stream.

## Path parameters

- `stream_id` string, required — The Stream's ID or UID.

## Headers

- `idempotency-key` string

## Request body

- StreamTokenExpireIn
  - `expiry` integer, nullable — How many seconds until the old key is expired.
  - `sessionIds` string[] — An optional list of session ids. If any session ids are specified, only Stream tokens created with that session id will be expired.

## Response `204`

no content

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation Error
- `429` — Too Many Requests

---

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