Delete key
Permanently revokes the key. Subsequent requests authenticated with this key
return 401 Unauthorized immediately — there is no grace period.
Path parameters
| Name | Type | Default | Description |
|---|---|---|---|
| idrequired | string | — | The 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
}