DELETE /v1/account/keys/{key_id}
Delete an API key. This action is irreversible.
- Method: DELETE
- Path: /v1/account/keys/{key_id}
- Auth: Bearer token (provisioning key) in Authorizationheader
Irreversible Action
Deleting an API key is permanent and cannot be undone. Any applications using this key will immediately lose access.
Path Parameters
- key_id(integer, required): The ID of the API key to delete
Example Request
- Python
- Node.js
- cURL
import requests
key_id = 1
response = requests.delete(
    f"https://api.naga.ac/v1/account/keys/{key_id}",
    headers={"Authorization": "Bearer YOUR_PROVISIONING_KEY"}
)
if response.status_code == 204:
    print("API key deleted successfully")
const keyId = 1;
const response = await fetch(`https://api.naga.ac/v1/account/keys/${keyId}`, {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer YOUR_PROVISIONING_KEY"
  }
});
if (response.status === 204) {
  console.log("API key deleted successfully");
}
curl -X DELETE https://api.naga.ac/v1/account/keys/1 \
  -H "Authorization: Bearer YOUR_PROVISIONING_KEY"
Authentication
Provide your provisioning key as a Bearer token:
Authorization: Bearer YOUR_PROVISIONING_KEY
Response
Returns HTTP 204 No Content on success.
Response Fields
This endpoint returns no content on successful deletion (HTTP 204 status code). Any response body should be considered an error.