authentication

Get Auth Token Metadata

Changed on

Retrieve metadata about an authentication token belonging to the currently authenticated User.

get/v5/user/tokens/{tokenId}

Request

  • Base URL: https://api.vercel.com
  • URL: https://api.vercel.com/v5/user/tokens/{tokenId}
  • Auth: HTTP bearer

Path parameters

tokenIdstring required

The identifier of the token to retrieve. The special value "current" may be supplied, which returns the metadata for the token that the current HTTP request is authenticated with.

Example:5d9f2ebd38ddca62e5d51e9c1704c72530bdc8bfdd41e782a6687c48399e8391

Response

Successful response.

Example response

{
  "token": {
    "activeAt": 1632816536002,
    "createdAt": 1632816536002,
    "expiresAt": 1632816536002,
    "id": "5d9f2ebd38ddca62e5d51e9c1704c72530bdc8bfdd41e782a6687c48399e8391",
    "leakedAt": 1632816536002,
    "origin": "github",
    "prefix": "vcp_",
    "revokedAt": 1632816536002,
    "suffix": "abc123",
    "type": "oauth2-token"
  }
}

Changes