Skip to content
Docs

List Auth Tokens

GET/__remote/api.vercel.com/v6/user/tokens
Retrieve a list of the current User's authentication tokens.
/__remote/api.vercel.com/v6/user/tokens
const response = await fetch('/__remote/api.vercel.com/v6/user/tokens', {
method: 'GET',
headers: {
'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
'Content-Type': 'application/json',
},
});
const data = await response.json();
console.log(data);
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