Auth API reference

Auth API · Api-Keys

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

Revoke an API key. The key stops authenticating immediately; the row is kept (soft delete) so the list and the audit trail can still answer who revoked it and when.

Path parameters

app_id*string

Id of the app.

key_id*string

Id of the key.

Response · 204

API key revoked. Idempotent — revoking twice is still a 204 and does not overwrite the first revoker.

Example

Request

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