DELETE/api_keys/{apiKeyID}

Delete an API key

Deletes an API key identified by its ID. Supply the identifier using the ak_ or api_key_ prefix followed by 32 hexadecimal characters. The response confirms that the key was deleted.

1 parameter
apiKeyIDstringrequired
The API key identifier, using the `ak_` or `api_key_` prefix followed by 32 hexadecimal characters.

3 status codes
200Returns the API key identifier, its object type, and `deleted: true` to confirm deletion.
idstringrequired
objectstringrequired
Allowed:api_key
deletedbooleanrequired
Allowed:true
400Returned when the request is invalid.
errorsarray<object>required
404Returned when the API key is not found.
errorsarray<object>required

Error handling

A 400 indicates an invalid request; a 404 indicates the API key was not found. The apiKeyID path parameter must match either the ak_ or api_key_ prefix followed by 32 hexadecimal characters.