Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Pinata SDK keys.revoke immediately invalidates an existing Pinata API key so it can no longer authenticate requests. Requires the org:write permission.
import { PinataSDK } from "pinata"; const pinata = new PinataSDK({ pinataJwt: process.env.PINATA_JWT!, pinataGateway: "example-gateway.mypinata.cloud", }); const revoke = await pinata.keys.revoke([ "94566af5e63833e260be" ]);
type RevokeKeyResponse[] = { key: string; status: string; };
string[]
key
keys.list
const revoke = await pinata.keys.revoke([ "94566af5e63833e260be" ]);