{
  "opencollection": "1.0.0",
  "info": {
    "name": "JFrog Access REST Access Tokens API",
    "version": "2.x"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Tokens",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "JFrog List Access Tokens",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{server}.jfrog.io/access/api/v2/tokens",
            "params": [
              {
                "name": "subject",
                "value": "",
                "type": "query",
                "description": "Filter tokens by subject"
              },
              {
                "name": "token_id",
                "value": "",
                "type": "query",
                "description": "Filter by specific token ID"
              }
            ]
          },
          "docs": "Returns a list of all access tokens. Admin users see all tokens while non-admin users see only their own tokens."
        },
        {
          "info": {
            "name": "JFrog Create Access Token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{server}.jfrog.io/access/api/v2/tokens",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new scoped access token. Tokens can be scoped to specific resources, groups, and permissions. Supports creating user tokens, admin tokens, and project-scoped tokens."
        },
        {
          "info": {
            "name": "JFrog Get Token Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{server}.jfrog.io/access/api/v2/tokens/:tokenId",
            "params": [
              {
                "name": "tokenId",
                "value": "",
                "type": "path",
                "description": "Token ID"
              }
            ]
          },
          "docs": "Returns metadata for a specific access token, not including the token value itself."
        },
        {
          "info": {
            "name": "JFrog Revoke Access Token",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{server}.jfrog.io/access/api/v2/tokens/:tokenId",
            "params": [
              {
                "name": "tokenId",
                "value": "",
                "type": "path",
                "description": "Token ID"
              }
            ]
          },
          "docs": "Revokes an existing access token, immediately invalidating it across all services."
        }
      ]
    }
  ],
  "bundled": true
}