v1

latestOpenAPI 3.0.12026-07-175557102.5 KB

Create personal access token

Creates a new personal access token for the authenticated user

post/user/tokens

Request body

descriptionstring required

The description of the token.

expiresAtstring date-time nullable

The date and time when the token expires.

Example request

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

Response

OK

secretstring required

The secret value of the token. This is only returned once when the token is created.

Example response

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