POST
/
v1
/
keys.deleteKey
curl --request POST \
  --url https://api.unkey.dev/v1/keys.deleteKey \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "keyId": "key_1234"
}'
{}

Changelog

DateChanges
Dec 06 2023Introduced endpoint

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
keyId
string
required

The id of the key to revoke

Response

200 - application/json

The response is of type object.