Drippay Billable Metrics API

Evaluate and preview billable metrics.

Operations 7

GET /v1/billable-metrics List billable metrics #
POST /v1/billable-metrics Create a billable metric #
GET /v1/billable-metrics/{id} Get a billable metric by id #
PATCH /v1/billable-metrics/{id} Update a billable metric #
DELETE /v1/billable-metrics/{id} Delete (soft-delete) a billable metric #
POST /v1/billable-metrics/{id}/evaluate Evaluate a billable metric over a period (no side effects) #
POST /v1/billable-metrics/preview Preview an unsaved sqlExpression #

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-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_...`'