Skip to content
Docs

List Auth Tokens

GEThttps://api.vercel.com/v6/user/tokens
Retrieve a list of the current User's authentication tokens.
Request
import { Vercel } from "@vercel/sdk";
const vercel = new Vercel({
bearerToken: "<YOUR_BEARER_TOKEN_HERE>",
});
async function run() {
const result = await vercel.authentication.listAuthTokens();
console.log(result);
}
run();
Response
{
"pagination": {
"count": "123",
"next": "string",
"prev": "string"
},
"tokens": [
{
"activeAt": "1632816536002",
"createdAt": "1632816536002",
"expiresAt": "1632816536002",
"id": "5d9f2ebd38ddca62e5d51e9c1704c72530bdc8bfdd41e782a6687c48399e8391",
"leakedAt": "1632816536002",
"leakedUrl": "https://example.com",
"name": "Example Name",
"origin": "github",
"prefix": "vcp_",
"revokedAt": "1632816536002",
"scopes": [
{
"createdAt": "123",
"expiresAt": "123",
"origin": "app",
"sudo": {
"expiresAt": "123",
"origin": "email-otp",
"verifiedAt": "123"
},
"type": "user"
}
],
"suffix": "abc123",
"type": "oauth2-token"
}
]
}
AuthorizationbearerToken

Default authentication mechanism

200Success
tokensarrayRequired
400Error
401The request is not authorized.
403You do not have permission to access this resource.
410Error