Hive Civilization Billing Meter API

The billing-meter API from Hive Civilization — 6 operation(s) for billing-meter.

Operations 6

GET /v1/billing/meter/health Meter Health #
POST /v1/billing/activate Meter Activate #
GET /v1/billing/usage/{account_id} Meter Usage #
POST /v1/billing/topup/intent Meter Topup Intent #
GET /v1/billing/topup/{intent_id} Meter Topup Status #
GET /v1/billing/whoami Whoami #

Documentation

Specifications

Other Resources

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/thehiveryiq-com-billing-meter-api"
All apis
curl "https://apis.io/api/v1/apis?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.

OpenAPI Specification

thehiveryiq-com-billing-meter-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Billing Meter API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: billing-meter
paths:
  /v1/billing/meter/health:
    get:
      tags:
      - billing-meter
      summary: Meter Health
      description: Public — describes the meter schema, prices, and supported chains.
      operationId: meter_health_v1_billing_meter_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Meter Health V1 Billing Meter Health Get
  /v1/billing/activate:
    post:
      tags:
      - billing-meter
      summary: Meter Activate
      description: 'Bind an activation key (and optionally a wallet) to a metered account.

        Idempotent — activating the same key twice returns the same account.'
      operationId: meter_activate_v1_billing_activate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ActivateRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Meter Activate V1 Billing Activate Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/usage/{account_id}:
    get:
      tags:
      - billing-meter
      summary: Meter Usage
      description: Signed usage snapshot for an account. Verify via /v1/receipt/verify.
      operationId: meter_usage_v1_billing_usage__account_id__get
      parameters:
      - name: account_id
        in: path
        required: true
        schema:
          type: string
          title: Account Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Meter Usage V1 Billing Usage  Account Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/topup/intent:
    post:
      tags:
      - billing-meter
      summary: Meter Topup Intent
      description: Create a USDC top-up intent. Returns treasury address + amount + memo.
      operationId: meter_topup_intent_v1_billing_topup_intent_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TopupIntentRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Meter Topup Intent V1 Billing Topup Intent Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/topup/{intent_id}:
    get:
      tags:
      - billing-meter
      summary: Meter Topup Status
      description: Check settlement status of a topup intent.
      operationId: meter_topup_status_v1_billing_topup__intent_id__get
      parameters:
      - name: intent_id
        in: path
        required: true
        schema:
          type: string
          title: Intent Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Meter Topup Status V1 Billing Topup  Intent Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/billing/whoami:
    get:
      tags:
      - billing-meter
      summary: Whoami
      description: Resolve activation key → account_id. Useful for the /billing/ dashboard.
      operationId: whoami_v1_billing_whoami_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Whoami V1 Billing Whoami Get
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    TopupIntentRequest:
      properties:
        account_id:
          type: string
          title: Account Id
        chain:
          type: string
          title: Chain
          description: 'One of: base, ethereum'
        amount_cents:
          type: integer
          minimum: 1000.0
          title: Amount Cents
          description: Amount to top up in USD cents. Minimum 1000 ($10.00).
      type: object
      required:
      - account_id
      - chain
      - amount_cents
      title: TopupIntentRequest
    ActivateRequest:
      properties:
        activation_key_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Activation Key Id
          description: Existing X-Hive-Activation-Key value
        wallet_addr:
          anyOf:
          - type: string
          - type: 'null'
          title: Wallet Addr
          description: Optional wallet address to bind (informational)
        label:
          anyOf:
          - type: string
          - type: 'null'
          title: Label
          description: Optional human label — e.g. 'circle-prod'
      type: object
      title: ActivateRequest