Delete API Key
Permanently removes an API key and its record. Use `POST /api-keys/{id}/revoke` instead if you want to keep the audit trail. `data` is `null` on success.
Internal session cookie for local development.
In: cookie
Path Parameters
The ID of the API key to delete.
Response Body
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/v1/api-keys/string"{ "success": true, "message": "API key deleted successfully", "data": null}Revoke API KeyPOST
Immediately disables an API key without deleting its record — `isActive` becomes false and `revokedAt` is stamped. The cached authentication record is purged at the same time, so the secret stops working right away rather than after the cache expires. A revoked key cannot be reactivated; rotate or create a new one instead. `data` is `null` on success.
Users Module
Manage authenticated user profiles, preferences, and account metadata.