Revoke Key
DELETE
/v1/keys/{key_id}Revoke one key. It stops working immediately.
The key is deactivated, not deleted. It stays in your key list and your usage history stays intact.
You can only revoke your own keys. Any other id answers 404.
Authorization
session AuthorizationBearer <token>
A dashboard session token. Account operations take this rather than an API key, because minting your first key cannot require already having one.
In: header
Path Parameters
key_id*Key Id
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/keys/497f6eca-6276-4993-bfeb-53cbbbba6f08"{ "created_at": "2019-08-24T14:15:22Z", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "is_active": true, "key_prefix": "string", "last_used_at": "2019-08-24T14:15:22Z", "name": "string", "rate_limit": 0, "revoked_at": "2019-08-24T14:15:22Z"}