Personal Access Tokens

Get Personal Access Token details

Changed on

Get Personal Access Token details.

get/v3/users/{userId}/access-tokens/{tokenId}

Request

  • Base URL
    https://global.api.konghq.com
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Path parameters

userId, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

ID of the user.

tokenId, string uuid required

Contains a unique identifier used for this resource.

Example:5f9fd312-a987-4628-b4c5-bb4f4fddd5f7

ID of the personal access token.

Response

Response containing details of a personal access token.

PersonalAccessToken required

Properties of a personal access token.

id, string uuid required

Contains a unique identifier used for this resource.

user_id, string uuid required

Contains a unique identifier used for a user.

name, string required
state, 'ACTIVE' | 'REVOKED' | 'EXPIRED' required

State of the personal access token.

revoked_by, string uuid nullable required

Contains a unique identifier used for the user that revoked this token.

created_at, string date-time required

An ISO-8601 timestamp representation of entity creation date.

updated_at, string date-time required

An ISO-8601 timestamp representation of entity update date.

last_used_at, string date-time nullable required

An ISO-8601 timestamp representation of entity last used date.

expires_at, string date-time nullable required

An ISO-8601 timestamp representation of entity expiration date.

revoked_at, string date-time nullable required

An ISO-8601 timestamp representation of entity revoked at date.

Example response

{
  "id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "user_id": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "revoked_by": "5f9fd312-a987-4628-b4c5-bb4f4fddd5f7",
  "created_at": "2022-11-04T20:10:06.927Z",
  "updated_at": "2022-11-04T20:10:06.927Z",
  "last_used_at": "2022-11-04T20:10:06.927Z",
  "expires_at": "2022-11-04T20:10:06.927Z",
  "revoked_at": "2022-11-04T20:10:06.927Z"
}

Changes

    • info

      the response property last_used_at became required for the status

    • info

      the response property revoked_at became required for the status

    • info

      the response property revoked_by became required for the status