/{app_slug}/v1/tenant-api-keys/{key_id}AuthRevoke an API key
Immediate and final. Idempotent: revoking a revoked key is a 204 that changes nothing.
Path parameters
app_slug*stringThe app slug.
key_id*stringKey id (UUID) or display id (`tak_…`).
Headers
X-Heimdall-App-KeystringThe app's Platform API Key (`pcft_live_…`, holding `auth.tenant.api_keys.introspect` on this app). Required, next to the end user's bearer, when the app has set `management_lane: app_proxy_only`: the app's backend then proxies these routes and the end user cannot call them directly.
Response · 204
Revoked (or already revoked).
Example
Request
DELETE https://api.auth.productcraft.co/{app_slug}/v1/tenant-api-keys/{key_id}
Authorization: Bearer YOUR_TOKENimport { Auth } from "@productcraft/auth";
// Admin routes read PRODUCTCRAFT_API_KEY; consumer routes need no key
const auth = new Auth();
await auth.consumer("my-app").tenantApiKeys.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f");auth.consumer(…).tenantApiKeys.delete(keyId, options?): void