> ## 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.

# Record usage event

> Records a metered usage event for a customer against a feature entitlement.



## OpenAPI

````yaml post /v1/usage/record
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/record:
    post:
      tags:
        - Usage
      summary: Record usage event
      description: >-
        Records a metered usage event for a customer against a feature
        entitlement.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                customerId:
                  type: string
                  minLength: 1
                featureId:
                  type: string
                  minLength: 1
                amount:
                  type: number
                  minimum: 0
                  exclusiveMinimum: true
              required:
                - customerId
                - featureId
                - amount
      responses:
        '200':
          description: Usage recorded
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  success:
                    type: boolean
                required:
                  - id
                  - success

````