Tanium · API Governance Rules

Tanium API Rules

Spectral linting rules defining API design standards and conventions for Tanium.

8 Rules warn 5 info 1
View Rules File View on GitHub

Rule Categories

tanium

Rules

warn
tanium-operation-ids-camel-case
All operationIds must use camelCase
$.paths[*][*].operationId
warn
tanium-summary-title-case
All operation summaries must use Title Case (no leading vendor prefix)
$.paths[*][*].summary
info
tanium-session-header-auth
API token authentication must use the session header
$.components.securitySchemes[*][?(@.type == 'apiKey')]
hint
tanium-paths-api-versioned
Tanium Platform API paths must be versioned under /api/v2/
$.paths[*]~
hint
tanium-responses-have-data-wrapper
Successful responses should use a data wrapper object
$.paths[*][*].responses['200'].content['application/json'].schema
warn
tanium-parameters-have-descriptions
All path and query parameters must have descriptions
$.paths[*][*].parameters[*]
warn
tanium-operations-have-tags
All operations must have at least one tag
$.paths[*][*]
warn
tanium-error-schema-consistent
4xx/5xx responses should reference the shared Error schema
$.paths[*][*].responses[?(@property >= 400)].content['application/json'].schema

Spectral Ruleset

Raw ↑
extends: spectral:oas
rules:
  tanium-operation-ids-camel-case:
    description: All operationIds must use camelCase
    severity: warn
    given: "$.paths[*][*].operationId"
    then:
      function: pattern
      functionOptions:
        match: "^[a-z][a-zA-Z0-9]*$"

  tanium-summary-title-case:
    description: All operation summaries must use Title Case (no leading vendor prefix)
    severity: warn
    given: "$.paths[*][*].summary"
    then:
      function: pattern
      functionOptions:
        notMatch: "^Tanium "

  tanium-session-header-auth:
    description: API token authentication must use the session header
    severity: info
    given: "$.components.securitySchemes[*][?(@.type == 'apiKey')]"
    then:
      field: name
      function: pattern
      functionOptions:
        match: "^session$"

  tanium-paths-api-versioned:
    description: Tanium Platform API paths must be versioned under /api/v2/
    severity: hint
    given: "$.paths[*]~"
    then:
      function: pattern
      functionOptions:
        match: "^(/api/v2/|/plugin/products/)"

  tanium-responses-have-data-wrapper:
    description: Successful responses should use a data wrapper object
    severity: hint
    given: "$.paths[*][*].responses['200'].content['application/json'].schema"
    then:
      function: schema
      functionOptions:
        schema:
          properties:
            data: {}

  tanium-parameters-have-descriptions:
    description: All path and query parameters must have descriptions
    severity: warn
    given: "$.paths[*][*].parameters[*]"
    then:
      field: description
      function: truthy

  tanium-operations-have-tags:
    description: All operations must have at least one tag
    severity: warn
    given: "$.paths[*][*]"
    then:
      field: tags
      function: truthy

  tanium-error-schema-consistent:
    description: 4xx/5xx responses should reference the shared Error schema
    severity: warn
    given: "$.paths[*][*].responses[?(@property >= 400)].content['application/json'].schema"
    then:
      function: schema
      functionOptions:
        schema:
          required: ["$ref"]

Work with this as data

Every ruleset here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for spectral rules

4 MCP tools reach this
  • find_rulesBrowse and filter every ruleset in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/tanium-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.