Skip to main content

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 Authorization header
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

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")

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.