---
title: "Reset a livestream's stream key"
method: POST
path: "/livestreams/{livestream_id}/reset-stream-key"
tags: ["Live streams"]
---

# Reset a livestream's stream key

`POST /livestreams/{livestream_id}/reset-stream-key`

## Request

- Base URL: `https://api.dyte.io/v2`
- URL: `https://api.dyte.io/v2/livestreams/{livestream_id}/reset-stream-key`
- Auth: HTTP basic

Resets the stream key for the given livestream ID. Retreive the livestream ID using the `Start livestreaming a meeting` API.

## Path parameters

- `livestream_id` string, required

## Response `200`

OK

- object
  - `success` boolean
  - `data` object
    - `id` string: The ID of the livestream.
    - `name` string: Name of the livestream.
    - `ingest_server` string: The server URL to which the RTMP encoder sends the video and audio data.
    - `stream_key` string: Unique key for accessing each livestream.
    - `status` 'LIVE' | 'IDLE' | 'ERRORED' | 'INVOKED'
    - `meeting_id` string: The ID of the meeting.
    - `playback_url` string: The web address that viewers can use to watch the livestream.
    - `created_at` string, date-time: Timestamp the object was created at. The time is returned in ISO format.
    - `updated_at` string, date-time: Timestamp the object was updated at. The time is returned in ISO format.
    - `disabled` string: Specifies if the livestream was disabled.

## Changes

- **2025-04-04** (v2) `cb67ff854c71`: 2 breaking, 1 info
  - added the new path request parameter `livestream_id`
  - the `data/status` response's property type changed from no type to `string` for status `200` (media type: application/json)
  - the endpoint scheme security `Authorization` was added to the API
- **2025-04-03** (v2) `68b9e665bfcc`: 1 breaking, 1 warning, 1 info
  - the `data/status` response's property type changed from `string` to no type for status `200` (media type: application/json)
  - deleted the `path` request parameter `livestream_id`
  - the endpoint scheme security `Authorization` was removed from the API
- **2024-11-20** (v2) `d8c5d90e84ac`: 2 breaking, 1 info
  - added the new path request parameter `livestream_id`
  - the `data/status` response's property type changed from no type to `string` for status `200` (media type: application/json)
  - the endpoint scheme security `Authorization` was added to the API
- **2023-07-18** (v2) `a68b59b9362c`: 1 breaking, 1 warning
  - removed the media type `application/json` from the request body
  - removed the optional property `data/external_id` from the response with the `200` status (media type: application/xml)
- …earlier changes not shown

[Operation history](https://skmtc.dev/dyte-io/apis/dyte-rest-apis/changes/livestreams/:livestream_id/reset-stream-key/post.md)

---

[API](https://skmtc.dev/dyte-io/apis/dyte-rest-apis.md) - [All operations](https://skmtc.dev/dyte-io/apis/dyte-rest-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/dyte-io/apis/dyte-rest-apis/revisions/f62d3edd92ae?raw)
