---
title: "Disable Api Key"
method: POST
path: "/v1/workspaces/api-keys/disable"
tags: ["workspace", "api-key"]
---

# Disable Api Key

`POST /v1/workspaces/api-keys/disable`

Disable the API key used to authenticate this request. Requires the query parameter `api_key_name=self` as an explicit confirmation.

## Query parameters

- `api_key_name` string, required — Must be set to `self` to disable the API key used to authenticate this request. Required as an explicit confirmation to avoid accidentally disabling the wrong key.

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

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