Skip to main content
POST
/
api
/
canary
/
authentication
/
api-key
/
delete
Delete API Key
curl --request POST \
  --url http://localhost:3000/api/canary/authentication/api-key/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "keyId": "key_12345"
}
'
{
  "statusCode": 400,
  "message": [
    "Invalid input data"
  ],
  "error": "Bad Request"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
keyId
string
required

The ID of the API key to delete

Example:

"key_12345"

Response

API key deleted successfully