Delete an authentication token
DEL
https://api.vercel.com/v3/user/tokens/{tokenId}Invalidate an authentication token, such that it will no longer be valid for future HTTP requests.
Request
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({ bearerToken: "<YOUR_BEARER_TOKEN_HERE>",});
async function run() { const result = await vercel.authentication.deleteAuthToken({ tokenId: "5d9f2ebd38ddca62e5d51e9c1704c72530bdc8bfdd41e782a6687c48399e8391", });
console.log(result);}
run();Response
{ "tokenId": "5d9f2ebd38ddca62e5d51e9c1704c72530bdc8bfdd41e782a6687c48399e8391"}AuthorizationbearerToken
Default authentication mechanism
400One of the provided values in the request query is invalid.
401Error
403You do not have permission to access this resource.
404Token not found with the requested `tokenId`.
410Error