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#
Send the unique Id of the API Key to delete.
DELETE/api/api-key/{apiKeyId}
OpenAPI Spec
Path Parameters#
apiKeyIdThe unique Id of the API Key to delete.
Response#
This API does not return a JSON response body.
| Code | Description |
|---|---|
| 200 | The request succeeded. |
| 400 | The request was invalid or malformed. The response contains an Errors JSON object with the specific errors. FusionAuth also returns a 400 when the request needs a paid FusionAuth license and no license is present. |
| 401 | FusionAuth didn't authorize the request. The Authorization header is missing, the API key isn't valid, or the API key doesn't have permission for this endpoint and method. The response is empty. For more information, see Unauthorized Responses. |
| 404 | The object you requested doesn't exist. The response is empty. |
| 500 | FusionAuth had an internal error and logged a stack trace in the FusionAuth log files. The response is 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