{
  "opencollection": "1.0.0",
  "info": {
    "name": "Tanium Connect Actions Authentication API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "session",
      "value": "{{session}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Authentication",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create A New Session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tanium_server}/api/v2/session/login",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Authenticates with the Tanium server using username and password credentials and returns a session token for subsequent API calls. This is the legacy authentication method; API tokens are preferred."
        },
        {
          "info": {
            "name": "Create An API Token",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{tanium_server}/api/v2/api_tokens",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new API token with optional expiration and trusted IP configuration. API tokens are the preferred authentication method for integrations and automated scripts."
        }
      ]
    }
  ],
  "bundled": true
}