{
  "opencollection": "1.0.0",
  "info": {
    "name": "Unleash Admin Addons Personal access tokens API",
    "version": "7.4.1"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "Authorization",
      "value": "{{Authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Personal access tokens",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get All Personal Access Tokens (pats) for the Current User.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://app.unleash-instance.example.com/api/admin/user/tokens"
          },
          "docs": "Returns all of the [personal access tokens](https://docs.getunleash.io/concepts/api-tokens-and-client-keys#personal-access-tokens) (PATs) belonging to the current user."
        },
        {
          "info": {
            "name": "Create a New Personal Access Token (pat) for the Current User.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://app.unleash-instance.example.com/api/admin/user/tokens",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new [personal access token](https://docs.getunleash.io/concepts/api-tokens-and-client-keys#personal-access-tokens (PAT) belonging to the current user."
        },
        {
          "info": {
            "name": "Delete a Personal Access Token (pat) for the Current User.",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://app.unleash-instance.example.com/api/admin/user/tokens/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "a personal access token id"
              }
            ]
          },
          "docs": "Deletes a [personal access token](https://docs.getunleash.io/concepts/api-tokens-and-client-keys#personal-access-tokens) (PAT) belonging to the current user."
        }
      ]
    }
  ],
  "bundled": true
}