TaskFuel Operations API

Public treasury address and funding health endpoints.

GitHub OpenAPI

Operations 2

GET /v1/treasury Read the public treasury address and supported networks #
GET /v1/treasury/balances Check treasury funding health #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/taskfuel-ai:taskfuel-ai-operations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

taskfuel-ai-operations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: taskfuel Gateway Operations API
  version: v1
  summary: Discover and call paid HTTP-402 APIs through one prepaid account.
  description: The CLI and canonical taskfuel agent skill are the recommended interface. Install the CLI with `curl -fsSL https://taskfuel.ai/install.sh | sh`, run `taskfuel sync-skill`, then use `taskfuel connect`. The user must complete browser sign-in/approval and card top-ups themselves. Use this OpenAPI document for direct HTTP integrations.
servers:
- url: https://app.taskfuel.ai
security:
- bearerAuth: []
tags:
- name: Operations
  description: Public treasury address and funding health endpoints.
paths:
  /v1/treasury:
    get:
      operationId: getTreasury
      tags:
      - Operations
      summary: Read the public treasury address and supported networks
      security: []
      responses:
        '200':
          description: Public treasury information.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Treasury'
        '503':
          description: The treasury is not configured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /v1/treasury/balances:
    get:
      operationId: getTreasuryBalances
      tags:
      - Operations
      summary: Check treasury funding health
      description: Returns 200 only when the configured treasury holds more than the reported minimum on both Base and Tempo, and in the Lightning treasury when one is configured.
      security: []
      responses:
        '200':
          description: Treasury balances are above the minimum.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TreasuryBalances'
        '502':
          description: On-chain balances could not be read.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: The treasury is missing or at least one balance is low.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/Error'
                - $ref: '#/components/schemas/TreasuryLow'
components:
  schemas:
    BalanceValues:
      type: object
      required:
      - base_usdc
      - tempo_usdce
      properties:
        base_usdc:
          type: number
          format: double
        tempo_usdce:
          type: number
          format: double
        lightning_sats:
          type: integer
        lightning_usd:
          type: number
          format: double
      additionalProperties: false
    Treasury:
      type: object
      required:
      - address
      - detail
      - networks
      properties:
        address:
          type: string
        detail:
          type: string
        networks:
          type: object
          required:
          - base
          - tempo
          properties:
            base:
              $ref: '#/components/schemas/Network'
            tempo:
              $ref: '#/components/schemas/Network'
          additionalProperties: false
      additionalProperties: false
    TreasuryLow:
      type: object
      required:
      - error
      - detail
      - address
      - min_usd
      - balances
      properties:
        error:
          const: treasury_low
        detail:
          type: string
        address:
          type: string
        min_usd:
          type: number
          format: double
        balances:
          $ref: '#/components/schemas/BalanceValues'
      additionalProperties: false
    Network:
      type: object
      required:
      - chainId
      - token
      - tokenAddress
      - protocols
      properties:
        chainId:
          type: integer
        token:
          type: string
        tokenAddress:
          type: string
        protocols:
          type: array
          items:
            type: string
            enum:
            - x402
            - mpp
      additionalProperties: false
    TreasuryBalances:
      type: object
      required:
      - ok
      - address
      - min_usd
      - balances
      properties:
        ok:
          const: true
        address:
          type: string
        min_usd:
          type: number
          format: double
        balances:
          $ref: '#/components/schemas/BalanceValues'
      additionalProperties: false
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        detail:
          type: string
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A taskfuel API key with the sk-402- prefix.
externalDocs:
  description: Agent setup, usage guide, and human handoffs
  url: https://app.taskfuel.ai/llms.txt