Drippay Billable Metrics API

Evaluate and preview billable metrics.

Business capability
Usage Metering BC-4250.10

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /v1/billable-metrics List billable metrics · List billable metrics #
Ask an LLM
“Which billable metrics have I defined?”
“Can I see every metric I bill usage on?”
Tell an agent
List my billable metrics.
Show all the metrics defined for my business.
POST /v1/billable-metrics Create a billable metric · Create a billable metric #
Ask an LLM
“How do I define a metric that bills on several event types at once?”
“Does a billable metric's name have to be unique?”
Tell an agent
Create a billable metric that unions my usage event types.
Define a new billable metric for my business.
GET /v1/billable-metrics/{id} Get a billable metric · Get a billable metric by id #
Ask an LLM
“What event types and aggregation does one metric use?”
“Can I fetch a single billable metric by ID?”
Tell an agent
Show billable metric {id}.
Get the definition of metric {id}.
PATCH /v1/billable-metrics/{id} Update a billable metric · Update a billable metric #
Ask an LLM
“Can I change the definition of an existing billable metric?”
“How do I edit a metric I've already saved?”
Tell an agent
Update billable metric {id}.
Edit the saved definition of metric {id}.
DELETE /v1/billable-metrics/{id} Deactivate a billable metric · Delete (soft-delete) a billable metric #
Ask an LLM
“What happens to historical charges if I delete a billable metric?”
“How do I retire a metric I no longer bill on?”
Tell an agent destructive · confirm first
Delete billable metric {id}.
Soft-delete metric {id}.
POST /v1/billable-metrics/{id}/evaluate Evaluate a saved metric over a period · Evaluate a billable metric over a period (no side effects) #
Ask an LLM
“What value would a saved metric produce over a given billing period?”
“Can I dry-run a billable metric against real usage without creating charges?”
Tell an agent
Evaluate billable metric {id} over a period.
Run metric {id} against my usage events without billing anything.
POST /v1/billable-metrics/preview Preview an unsaved metric SQL expression · Preview an unsaved sqlExpression #
Ask an LLM
“Can I test a SQL expression for a metric before I save it?”
“What would a draft metric query return on my events?”
Tell an agent
Preview this unsaved metric SQL expression.
Test a draft sqlExpression before creating the metric.

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/drippay:drippay-billable-metrics-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

drippay-billable-metrics-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Drip Billable Metrics API
  description: '# Drip API


    **Usage-based billing + execution ledger.**


    ---


    ## 60-Second Quickstart (Core SDK)


    ### 1.'
  version: 1.0.0
  contact:
    name: Drip Support
    email: support@drippay.dev
  x-logo:
    url: https://drippay.dev/logo.svg
    altText: Drip
servers:
- url: https://api.drippay.dev
  description: Production
- url: http://localhost:3001
  description: Development
security:
- bearerAuth: []
tags:
- name: Billable Metrics
  description: Evaluate and preview billable metrics.
paths:
  /v1/billable-metrics:
    get:
      operationId: listBillableMetrics
      summary: List billable metrics
      tags:
      - Billable Metrics
      description: List every billable metric defined for the business.
      responses:
        '200':
          description: Default Response
    post:
      operationId: createBillableMetric
      summary: Create a billable metric
      tags:
      - Billable Metrics
      description: Creates a new billable metric. Name must be unique per business. Supply one or more event types — the metric will union events across all of them.
      responses:
        '200':
          description: Default Response
  /v1/billable-metrics/{id}:
    get:
      operationId: getBillableMetric
      summary: Get a billable metric by id
      tags:
      - Billable Metrics
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
    patch:
      operationId: updateBillableMetric
      summary: Update a billable metric
      tags:
      - Billable Metrics
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
    delete:
      operationId: deleteBillableMetric
      summary: Delete (soft-delete) a billable metric
      tags:
      - Billable Metrics
      description: Sets isActive=false. Rate cards that reference the metric keep working for historical charges because the row stays in the DB.
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
  /v1/billable-metrics/{id}/evaluate:
    post:
      operationId: evaluateBillableMetric
      summary: Evaluate a billable metric over a period (no side effects)
      tags:
      - Billable Metrics
      description: Executes the metric's SQL expression (or, if not set, the declarative aggregation) against the merchant's usage events for [periodStart, periodEnd) and returns the result. Read-only — no charges, invoices, or counters change.
      parameters:
      - schema:
          type: string
        in: path
        name: id
        required: true
      responses:
        '200':
          description: Default Response
  /v1/billable-metrics/preview:
    post:
      operationId: previewBillableMetricSql
      summary: Preview an unsaved sqlExpression
      tags:
      - Billable Metrics
      responses:
        '200':
          description: Default Response
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'API key from Drip Dashboard. Format: `sk_live_...` or `sk_test_...`'