InfluxDB · Capability

Complete InfluxDB Cloud API — Authorizations (API tokens)

Complete InfluxDB Cloud API — Authorizations (API tokens). 5 operations. Lead operation: List authorizations. Self-contained Naftiko capability covering one Influxdb business surface.

Run with Naftiko InfluxdbAuthorizations (API tokens)

What You Can Do

GET
Getauthorizations — List authorizations
/v1/api/v2/authorizations
POST
Postauthorizations — Create an authorization
/v1/api/v2/authorizations
DELETE
Deleteauthorizationsid — Delete an authorization
/v1/api/v2/authorizations/{authid}
GET
Getauthorizationsid — Retrieve an authorization
/v1/api/v2/authorizations/{authid}
PATCH
Patchauthorizationsid — Update an API token to be active or inactive
/v1/api/v2/authorizations/{authid}

MCP Tools

list-authorizations

List authorizations

read-only idempotent
create-authorization

Create an authorization

delete-authorization

Delete an authorization

idempotent
retrieve-authorization

Retrieve an authorization

read-only idempotent
update-api-token-be-active

Update an API token to be active or inactive

idempotent

Capability Spec

influxdb-authorizations-api-tokens.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Complete InfluxDB Cloud API — Authorizations (API tokens)
  description: 'Complete InfluxDB Cloud API — Authorizations (API tokens). 5 operations. Lead operation: List authorizations.
    Self-contained Naftiko capability covering one Influxdb business surface.'
  tags:
  - Influxdb
  - Authorizations (API tokens)
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    INFLUXDB_API_KEY: INFLUXDB_API_KEY
capability:
  consumes:
  - type: http
    namespace: influxdb-authorizations-api-tokens
    baseUri: ''
    description: Complete InfluxDB Cloud API — Authorizations (API tokens) business capability. Self-contained, no shared
      references.
    resources:
    - name: api-v2-authorizations
      path: /api/v2/authorizations
      operations:
      - name: getauthorizations
        method: GET
        description: List authorizations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: userID
          in: query
          type: string
          description: A user ID.
        - name: user
          in: query
          type: string
          description: A user name.
        - name: orgID
          in: query
          type: string
          description: An organization ID. Only returns authorizations that belong to the specified [organization](https://docs.influxdata.com/influxdb/cloud/reference/glossary/#organ
        - name: org
          in: query
          type: string
          description: An organization name.
        - name: token
          in: query
          type: string
          description: An API [token](https://docs.influxdata.com/influxdb/cloud/reference/glossary/#token) value.
      - name: postauthorizations
        method: POST
        description: Create an authorization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-authorizations-authID
      path: /api/v2/authorizations/{authID}
      operations:
      - name: deleteauthorizationsid
        method: DELETE
        description: Delete an authorization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: authID
          in: path
          type: string
          description: An authorization ID. Specifies the authorization to delete.
          required: true
      - name: getauthorizationsid
        method: GET
        description: Retrieve an authorization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: authID
          in: path
          type: string
          description: An authorization ID. Specifies the authorization to retrieve.
          required: true
      - name: patchauthorizationsid
        method: PATCH
        description: Update an API token to be active or inactive
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: authID
          in: path
          type: string
          description: An authorization ID. Specifies the authorization to update.
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.INFLUXDB_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: influxdb-authorizations-api-tokens-rest
    port: 8080
    description: REST adapter for Complete InfluxDB Cloud API — Authorizations (API tokens). One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/authorizations
      name: api-v2-authorizations
      description: REST surface for api-v2-authorizations.
      operations:
      - method: GET
        name: getauthorizations
        description: List authorizations
        call: influxdb-authorizations-api-tokens.getauthorizations
        with:
          userID: rest.userID
          user: rest.user
          orgID: rest.orgID
          org: rest.org
          token: rest.token
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: postauthorizations
        description: Create an authorization
        call: influxdb-authorizations-api-tokens.postauthorizations
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/authorizations/{authid}
      name: api-v2-authorizations-authid
      description: REST surface for api-v2-authorizations-authID.
      operations:
      - method: DELETE
        name: deleteauthorizationsid
        description: Delete an authorization
        call: influxdb-authorizations-api-tokens.deleteauthorizationsid
        with:
          authID: rest.authID
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: getauthorizationsid
        description: Retrieve an authorization
        call: influxdb-authorizations-api-tokens.getauthorizationsid
        with:
          authID: rest.authID
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: patchauthorizationsid
        description: Update an API token to be active or inactive
        call: influxdb-authorizations-api-tokens.patchauthorizationsid
        with:
          authID: rest.authID
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: influxdb-authorizations-api-tokens-mcp
    port: 9090
    transport: http
    description: MCP adapter for Complete InfluxDB Cloud API — Authorizations (API tokens). One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-authorizations
      description: List authorizations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: influxdb-authorizations-api-tokens.getauthorizations
      with:
        userID: tools.userID
        user: tools.user
        orgID: tools.orgID
        org: tools.org
        token: tools.token
      outputParameters:
      - type: object
        mapping: $.
    - name: create-authorization
      description: Create an authorization
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: influxdb-authorizations-api-tokens.postauthorizations
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-authorization
      description: Delete an authorization
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: influxdb-authorizations-api-tokens.deleteauthorizationsid
      with:
        authID: tools.authID
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-authorization
      description: Retrieve an authorization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: influxdb-authorizations-api-tokens.getauthorizationsid
      with:
        authID: tools.authID
      outputParameters:
      - type: object
        mapping: $.
    - name: update-api-token-be-active
      description: Update an API token to be active or inactive
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: influxdb-authorizations-api-tokens.patchauthorizationsid
      with:
        authID: tools.authID
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.