Delete an API Key API
On this page
This API is used to delete a Key. Deletion is possible only with another API key with equal or greater permissions. A tenant-scoped API key can delete another API key for the same tenant.
Request#
DELETE/api/api-key/{keyId}
OpenAPI Spec
Request Parameters#
apiKeyId UUID required The unique Id of the API Key to delete.
Response#
This API does not return a JSON response body.
Response Codes| Code | Description |
|---|---|
| 200 | The request was successful. |
| 400 | The request was invalid and/or malformed. The response will contain an Errors JSON Object with the specific errors. This status will also be returned if a paid FusionAuth license is required and is not present. |
| 401 | You did not supply a valid Authorization header. The header was omitted or your API key was not valid. The response will be empty. See Authentication. |
| 404 | The object you requested doesn't exist. The response will be empty. |
| 500 | There was an internal error. A stack trace is provided and logged in the FusionAuth log files. The response will be empty. |
Related
APIs
API documentation for the FusionAuth Create an API Key API.
api key managementfusionauth apirest api
APIs
Learn about the APIs for creating, retrieving, updating and deleting API Keys.
api key managementkey managerfusionauth api
APIs
API documentation for the FusionAuth Retrieve an API Key API.
api key managementfusionauth apirest api
APIs
API documentation for the FusionAuth Update an API Key API.
api key managementfusionauth apirest api