Tanium · Capability

Tanium Platform REST API — Authentication

Tanium Platform REST API — Authentication. 2 operations. Lead operation: Create An API Token. Self-contained Naftiko capability covering one Tanium business surface.

Run with Naftiko TaniumAuthentication

What You Can Do

POST
Createapitoken — Create An API Token
/v1/api/v2/api-tokens
POST
Createsession — Create A New Session
/v1/api/v2/session/login

MCP Tools

create-api-token

Create An API Token

create-new-session

Create A New Session

Capability Spec

platform-rest-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Tanium Platform REST API — Authentication
  description: 'Tanium Platform REST API — Authentication. 2 operations. Lead operation: Create An API Token. Self-contained
    Naftiko capability covering one Tanium business surface.'
  tags:
  - Tanium
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TANIUM_API_KEY: TANIUM_API_KEY
capability:
  consumes:
  - type: http
    namespace: platform-rest-authentication
    baseUri: https://{tanium_server}
    description: Tanium Platform REST API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-api_tokens
      path: /api/v2/api_tokens
      operations:
      - name: createapitoken
        method: POST
        description: Create An API Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-session-login
      path: /api/v2/session/login
      operations:
      - name: createsession
        method: POST
        description: Create A New Session
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: session
      value: '{{env.TANIUM_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: platform-rest-authentication-rest
    port: 8080
    description: REST adapter for Tanium Platform REST API — Authentication. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/api-tokens
      name: api-v2-api-tokens
      description: REST surface for api-v2-api_tokens.
      operations:
      - method: POST
        name: createapitoken
        description: Create An API Token
        call: platform-rest-authentication.createapitoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/session/login
      name: api-v2-session-login
      description: REST surface for api-v2-session-login.
      operations:
      - method: POST
        name: createsession
        description: Create A New Session
        call: platform-rest-authentication.createsession
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: platform-rest-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Tanium Platform REST API — Authentication. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: create-api-token
      description: Create An API Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-rest-authentication.createapitoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-new-session
      description: Create A New Session
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: platform-rest-authentication.createsession
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.