TensorDock · Capability

TensorDock Marketplace API — Billing

TensorDock Marketplace API — Billing. 3 operations. Lead operation: Retrieve Balance. Self-contained Naftiko capability for balance, revenue, and monthly summary lookups.

TensorDock Marketplace API — Billing is a Naftiko capability published by TensorDock, one of 8 capabilities the APIs.io network indexes for this provider. It bundles 3 operations.

The capability includes 3 read-only operations. Lead operation: Retrieve current TensorDock account balance. Can be deployed as a REST endpoint, MCP tool, or Agent Skill via Naftiko.

Tagged areas include TensorDock, Billing, and FinOps.

Run with Naftiko TensorDockBillingFinOps

MCP Tools

tensordock-retrieve-balance

Retrieve current TensorDock account balance.

read-only idempotent
tensordock-retrieve-revenue

Retrieve TensorDock host revenue history.

read-only idempotent
tensordock-retrieve-monthly-summary

Retrieve TensorDock monthly billing summary.

read-only idempotent

Capability Spec

marketplace-billing.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TensorDock Marketplace API — Billing
  description: 'TensorDock Marketplace API — Billing. 3 operations. Lead operation: Retrieve Balance.
    Self-contained Naftiko capability for balance, revenue, and monthly summary lookups.'
  tags:
  - TensorDock
  - Billing
  - FinOps
  created: '2026-05-25'
  modified: '2026-05-25'
binds:
- namespace: env
  keys:
    TENSORDOCK_API_KEY: TENSORDOCK_API_KEY
    TENSORDOCK_API_TOKEN: TENSORDOCK_API_TOKEN
capability:
  consumes:
  - type: http
    namespace: marketplace-billing
    baseUri: https://marketplace.tensordock.com
    description: Retrieve customer balance and hosting-provider revenue from TensorDock.
    resources:
    - name: balance
      path: /api/v0/billing/balance
      operations:
      - name: retrievebalance
        method: POST
        description: Retrieve the current account balance.
        inputParameters:
        - name: api_key
          value: '{{env.TENSORDOCK_API_KEY}}'
          in: form
        - name: api_token
          value: '{{env.TENSORDOCK_API_TOKEN}}'
          in: form
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: revenue
      path: /api/v0/billing/revenue
      operations:
      - name: retrieverevenue
        method: POST
        description: Retrieve revenue history for a hosting provider.
        inputParameters:
        - name: api_key
          value: '{{env.TENSORDOCK_API_KEY}}'
          in: form
        - name: api_token
          value: '{{env.TENSORDOCK_API_TOKEN}}'
          in: form
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: summary
      path: /api/v0/billing/summary
      operations:
      - name: retrievemonthlysummary
        method: POST
        description: Retrieve the monthly billing summary.
        inputParameters:
        - name: api_key
          value: '{{env.TENSORDOCK_API_KEY}}'
          in: form
        - name: api_token
          value: '{{env.TENSORDOCK_API_TOKEN}}'
          in: form
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: mcp
    namespace: marketplace-billing-mcp
    port: 9090
    transport: http
    description: MCP adapter for TensorDock billing.
    tools:
    - name: tensordock-retrieve-balance
      description: Retrieve current TensorDock account balance.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketplace-billing.retrievebalance
      outputParameters:
      - type: object
        mapping: $.
    - name: tensordock-retrieve-revenue
      description: Retrieve TensorDock host revenue history.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketplace-billing.retrieverevenue
      outputParameters:
      - type: object
        mapping: $.
    - name: tensordock-retrieve-monthly-summary
      description: Retrieve TensorDock monthly billing summary.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: marketplace-billing.retrievemonthlysummary
      outputParameters:
      - type: object
        mapping: $.