Skip to main content
DELETE
/
api
/
api-keys
/
{id}
Revoke an API key
import requests

url = "https://app.langwatch.ai/api/api-keys/{id}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://langwatch.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Admin API key for organization-level operations (managing projects, API keys). Create one in Settings > API Keys or via POST /api/api-keys. Format: sk-lw-{id}_{secret}.

Path Parameters

id
string
required

API key ID

Response

API key revoked successfully

success
boolean