DELETE /v1/keys/{hash}Revoke an API key
Platform platform (cross-worker)
Revokes an API key by marking it inactive in KV. The revoked key is rejected on next use. A caller may revoke their own key, a key that shares their owner_email, or any key if the requester is admin. Requires authentication.
Response Schema
result (object): Response payload
cURL Example
curl 'https://lf-format-utils.laminarforge.dev/v1/keys/{hash}' -H 'Authorization: Bearer lf_YourApiKey'Python Example
import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/keys/{hash}'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
response = requests.get(url, headers=headers)
print(response.json())