v14

latestOpenAPI 3.0.32026-08-04377889.4 MB
authentication

Get Auth Token Metadata

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

get/v5/user/tokens/{tokenId}

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

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.

Response

Successful response.

Example response

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