List personal access tokens

Changed on

Returns a list of tokens for the authenticated user

get/user/tokens

Request

  • Base URL
    https://api.jsr.io
  • Auth
    HTTP bearer

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"
      }
    ]
  }
]

Changes