---
title: "Reset stream key"
method: POST
path: "/v1/tokens/{tokenName}/reset-key"
tags: ["stream-actions"]
---

# Reset stream key

`POST /v1/tokens/{tokenName}/reset-key`

## Request

- Base URL: `https://lpad-backend.stage.defi.ovh.gala.com`
- URL: `https://lpad-backend.stage.defi.ovh.gala.com/v1/tokens/{tokenName}/reset-key`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/gala/apis/launchpad-backend-api/docs/v1/tokens/:tokenName/reset-key/post.ts> (a function with typed inputs; its response is checked against the schema)

Reset the RTMPS stream key for a token

## Response `200`

Stream key reset successfully; new credentials are returned in the success envelope.

- object
  - `error` false, required: Successful response marker.
  - `message` string, required: Response message.
  - `status` number, required: HTTP status code.
  - `data` StreamCredentialsResponseDto, required
    - `playbackId` string, required
    - `rtmpsUrl` string, required
    - `srtPassphrase` string, required
    - `srtUrl` string, required
    - `status` string, required
    - `streamKey` string, required

## Other responses

- `401`: Unauthorized - missing or invalid JWT token in Authorization header
- `403`: Forbidden - user lacks RESET_STREAM_KEY permission or user is banned
- `404`: Token not found - tokenName does not match any existing pool
- `500`: Internal server error - Mux API failure or database error while resetting stream key
- `default`: Shared error envelope for stream key reset failures.

---

[API](https://skmtc.dev/gala/apis/launchpad-backend-api.md) - [All operations](https://skmtc.dev/gala/apis/launchpad-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gala/apis/launchpad-backend-api/revisions/74545971be2b?raw)
