Meters
Create Meter
Create a new meter to track usage events with configurable aggregation and filtering.
POST
Create Meter
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/flexprice/flexprice/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
Human-readable name for the meter.Example:
"API Usage Meter"Name of the event to track. Must match the event name sent via the events API.Example:
"api_request"Defines how to aggregate the usage events.
Array of filters to apply before aggregation.
Determines when usage resets.Options:
"BILLING_PERIOD", "NEVER"Response
Unique identifier for the meter.Example:
"meter_550e8400e29b41d4a716446655440000"Human-readable name for the meter.
Tenant ID that owns this meter.
Name of the event being tracked.
Aggregation configuration.
Array of filters applied to events.
Usage reset configuration.
Status of the meter.Values:
"published", "draft", "archived"ISO 8601 timestamp when the meter was created.
ISO 8601 timestamp when the meter was last updated.
Example Request
cURL
Example Response
Create Meter