v1

latestOpenAPI 3.0.12026-07-175557102.5 KB

List personal access tokens

Returns a list of tokens for the authenticated user

get/user/tokens

Response

OK

idstring uuid required

The ID of the token.

descriptionstring nullable

The description of the token.

userIdstring uuid required

The ID of a user.

type'web' | 'device' | 'personal' required

The type of token.

expiresAtstring date-time nullable

The date and time when the token expires.

updatedAtstring date-time required

The date and time when the token was last updated.

createdAtstring date-time required

The date and time when the token was created.

Example response

[
  {
    "permissions": [
      {
        "scope": "denoland"
      }
    ]
  }
]