> ## Documentation Index
> Fetch the complete documentation index at: https://docs.revstack.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a usage meter

> Creates a new usage meter definition for tracking feature consumption.



## OpenAPI

````yaml post /v1/usage/meters
openapi: 3.0.0
info:
  title: Revstack API
  version: 1.0.0
  description: >-
    Open Source Billing OS for Developers. The scalable, developer-first billing
    engine with subscriptions, invoicing, usage metering, and entitlements.
servers:
  - url: http://localhost:6900
    description: Revstack API (Local Development)
security: []
paths:
  /v1/usage/meters:
    post:
      tags:
        - Usage
      summary: Create a usage meter
      description: Creates a new usage meter definition for tracking feature consumption.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                customerId:
                  type: string
                  minLength: 1
                featureId:
                  type: string
                  minLength: 1
                periodStart:
                  type: string
                  format: date-time
                periodEnd:
                  type: string
                  format: date-time
              required:
                - customerId
                - featureId
                - periodStart
                - periodEnd
      responses:
        '201':
          description: Usage meter created
          content:
            application/json:
              schema:
                nullable: true

````