Truztcube Docs

Revoke API key

Revokes an API key, preventing it from being used

DELETE/v1/api-keys/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

curl -X DELETE "https://example.com/v1/api-keys/string"
{  "success": true,  "statusCode": 200,  "message": "Request processed successfully",  "timestamp": "2025-10-20T16:30:00.000Z",  "path": "/v1/auth/register",  "data": {    "id": "key_123",    "name": "Production API Key",    "status": "REVOKED",    "revokedAt": "2025-10-20T12:00:00.000Z"  }}