BucktDocs

Delete key

DELETE/v1/keys/{id}keys:writeSDK: keys.delete

Permanently revokes the key. Subsequent requests authenticated with this key return 401 Unauthorized immediately — there is no grace period.

Path parameters

NameTypeDefaultDescription
idrequiredstringThe API key's ID.

Example request

import { Buckt } from "@buckt/sdk";

const client = new Buckt({ apiKey: process.env.BUCKT_API_KEY });

await client.keys.delete("key_01J5UPLOADERXXXXXXXXXXXXXX");
// Returns: { object: "api_key", id: "key_01J5UPLOADERXXXXXXXXXXXXXX" }

Responses

{
  "data": {
    "object": "api_key",
    "id": "key_01J5UPLOADERXXXXXXXXXXXXXX"
  },
  "error": null,
  "meta": null
}