rootKeys

Deletes a root key in the authenticated workspace. Requires unkey:v1:<workspace_id>:rootKeys/<key_id>#delete. Use rootKeys/*#delete to delete any root key in the workspace. Deleted keys cannot authenticate.

post/v2/rootKeys.deleteKey

Request

  • Base URL
    https://api.unkey.com
  • URL
    https://api.unkey.com/v2/rootKeys.deleteKey
  • Auth
    HTTP bearer

Request body

keyIdstring required

Root key identifier returned by rootKeys.createKey or rootKeys.listKeys.

Response

Root key deleted.

dataEmptyResponse required

Empty response object by design. A successful response indicates this operation was successfully executed.

Example response

{
  "meta": {
    "requestId": "req_123"
  }
}

Changes