Auth API reference

Auth API · Tenant-Api-Keys

delete/v1/apps/{app_id}/tenant-api-keys/{key_id}Auth

Revoke a tenant's API key

Immediate and final; recorded as revoked by you (`revoked_by_type: platform_user`) in the key and in the audit log. Idempotent: revoking a revoked key is a 204 that changes nothing. Requires `auth.revoke` on the app.

Path parameters

app_id*string

App UUID (or slug).

key_id*string

Key id (UUID) or display id (`tak_…`).

Response · 204

Revoked (or already revoked).

Example

Request

DELETE https://api.auth.productcraft.co/v1/apps/{app_id}/tenant-api-keys/{key_id}
Authorization: Bearer YOUR_TOKEN