Prowl Usage API

The Usage API from Prowl — 2 operation(s) for usage.

GitHub OpenAPI

Operations 2

GET /api/v1/usage/tools List recent metered calls (alias) #
GET /api/v1/usage/summary Summarise spend over a window #

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/prowl-chat:prowl-chat-usage-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

prowl-chat-usage-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Prowl REST API v1 Usage API
  summary: Wallet, usage, tool catalog and API keys for agents using Prowl.
  description: 'The REST surface an agent uses to watch what it is spending.


    Prowl''s product surface is the MCP endpoint at `https://prowl.chat/mcp`, where an agent

    gains 444 market data tools and every call is metered against a prepaid USD

    wallet. This API is the other half of that arrangement: read the balance, read what each

    call cost, and manage the keys that authorise them.


    Authentication is a bearer token: the JWT from signing in to prowl.chat. A `prowl_...` API

    key does not open these routes; an agent that holds one reads the same wallet through the

    MCP tool `prowl_get_wallet`. Two operations need no credential at all, because a price list

    that demands a key cannot be compared before you buy: `GET /api/v1/tools/pricing` and

    `GET /api/v1/tools/catalog`.'
  version: 1.0.0
  contact:
    name: Prowl
    url: https://prowl.chat/contact/
    email: support@prowl.chat
  license:
    name: Proprietary
    url: https://prowl.chat/terms/
servers:
- url: https://prowl.chat
  description: Production
tags:
- name: Usage
paths:
  /api/v1/usage/tools:
    get:
      summary: List recent metered calls (alias)
      description: Identical to `GET /api/v1/wallet/invocations`; kept because usage and wallet are two words for the same question and clients reach for both.
      operationId: getUsageTools
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 10
          title: Limit
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: prowl_session
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Prowl Session
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvocationsResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '401':
          description: Missing, malformed or expired credential.
      security:
      - bearerAuth: []
      tags:
      - Usage
  /api/v1/usage/summary:
    get:
      summary: Summarise spend over a window
      description: 'Spend rolled up over the last `days` days: totals, the twenty tools that cost the most, and the current balances alongside them so a budget decision needs one request rather than two.'
      operationId: getUsageSummary
      parameters:
      - name: days
        in: query
        required: false
        schema:
          type: integer
          default: 30
          title: Days
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      - name: prowl_session
        in: cookie
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Prowl Session
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UsageSummaryResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '401':
          description: Missing, malformed or expired credential.
      security:
      - bearerAuth: []
      tags:
      - Usage
components:
  schemas:
    InvocationsResponse:
      properties:
        invocations:
          items:
            $ref: '#/components/schemas/ToolInvocation'
          type: array
          title: Invocations
        count:
          type: integer
          title: Count
          description: Number of rows in this response, not the lifetime total.
      type: object
      required:
      - invocations
      - count
      title: InvocationsResponse
      description: Recent metered calls, newest first.
    UsageSummaryResponse:
      properties:
        subscription_balance_usd:
          type: number
          title: Subscription Balance Usd
          description: Plan credit for the current period. Burns at period end, spent first.
        extra_balance_usd:
          type: number
          title: Extra Balance Usd
          description: Top-up credit. Never expires, spent after the subscription pool.
        total_available_usd:
          type: number
          title: Total Available Usd
          description: 'What the next call can draw on: the two pools added together.'
        updated_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Updated At
          description: ISO-8601 timestamp of the last balance change, or null if never moved.
        days:
          type: integer
          title: Days
          description: Length of the window this summary covers, in days.
        invocation_count:
          type: integer
          title: Invocation Count
          description: Metered calls inside the window.
        total_billed_usd:
          type: number
          title: Total Billed Usd
          description: Total debited from the wallet inside the window.
        total_provider_usd:
          type: number
          title: Total Provider Usd
          description: Total upstream provider cost inside the window.
        by_tool:
          items:
            $ref: '#/components/schemas/UsageByTool'
          type: array
          title: By Tool
          description: Top 20 tools by spend, highest first.
      type: object
      required:
      - subscription_balance_usd
      - extra_balance_usd
      - total_available_usd
      - days
      - invocation_count
      - total_billed_usd
      - total_provider_usd
      - by_tool
      title: UsageSummaryResponse
      description: 'Spend over a window, with the current balances alongside it.


        Inherits `WalletBalances` because the handler spreads the wallet into its reply

        (`persistence/wallet.py:2405`) — modelling it any other way would make the

        enforced filter drop the four balance fields the dashboard reads.'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ToolInvocation:
      properties:
        tool_name:
          type: string
          title: Tool Name
          description: Registry name of the tool that was called.
        provider_cost_usd:
          type: number
          title: Provider Cost Usd
          description: What the upstream provider charged for this call.
        billed_usd:
          type: number
          title: Billed Usd
          description: What this call actually debited from the wallet.
        markup_usd:
          type: number
          title: Markup Usd
          description: The difference between the two figures above.
        success:
          type: boolean
          title: Success
          description: Whether the provider returned a usable result.
        latency_ms:
          anyOf:
          - type: integer
          - type: 'null'
          title: Latency Ms
          description: Round-trip time in milliseconds.
        api_key_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Api Key Id
          description: Which API key made the call.
        created_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Created At
          description: ISO-8601 timestamp of the call.
      type: object
      required:
      - tool_name
      - provider_cost_usd
      - billed_usd
      - markup_usd
      - success
      title: ToolInvocation
      description: 'One metered tool call belonging to the authenticated caller.


        `provider_cost_usd` and `markup_usd` are named here on purpose: this is the

        caller''s own transaction, and a wallet they cannot reconcile is a wallet they

        cannot trust. DOC-12 governs the *unauthenticated* surfaces, where neither the

        figures nor a formula for them appear.'
    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
    UsageByTool:
      properties:
        tool_name:
          type: string
          title: Tool Name
        calls:
          type: integer
          title: Calls
        billed_usd:
          type: number
          title: Billed Usd
      type: object
      required:
      - tool_name
      - calls
      - billed_usd
      title: UsageByTool
      description: Spend rolled up per tool over the requested window.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'The JWT from signing in to prowl.chat, sent as `Authorization: Bearer <token>`. A `prowl_...` API key is refused here; it reads the same wallet through the MCP tool `prowl_get_wallet`.'
externalDocs:
  description: Prowl documentation
  url: https://prowl.chat/docs/