---
title: "Reset API Key"
method: POST
path: "/videolibrary/{id}/resetApiKey"
tags: ["Stream Video Library"]
---

# Reset API Key

`POST /videolibrary/{id}/resetApiKey`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/videolibrary/{id}/resetApiKey`
- Auth: one of:
  - API key in header `AccessKey`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/videolibrary/:id/resetApiKey/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` integer, required

## Response `204`

The API key has been successfully changed

## Other responses

- `401`: The request authorization failed
- `404`: The Video Library with the requested ID does not exist
- `500`: Internal Server Error

## Changes

- **2026-08-07** `205129a7ebd5`: 2 info
  - the security scope `ScopedApiKey` was added to the endpoint's security scheme `AccessKey`
  - the security scope `ScopedApiKey` was added to the endpoint's security scheme `bearer`
- **2026-04-12** `9123bf5c2354`: 3 info
  - api operation id `VideoLibraryPublic_ResetPassword2` removed and replaced with `ResetVideoLibraryApiKeyEndpoint_ResetVideoLibraryApiKey`
  - the endpoint scheme security `AccessKey` was added to the API
  - the endpoint scheme security `bearer` was added to the API

[Operation history](https://skmtc.dev/bunny/apis/bunny-net-api/changes/videolibrary/:id/resetApiKey/post.md)

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
