Passer au contenu principal
POST
JavaScript

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Corps

application/json
aggregation
Meter Aggregation · object
requis

Aggregation configuration for the meter

event_name
string
requis

Event name to track

measurement_unit
string
requis

measurement unit

name
string
requis

Name of the meter

description
string | null

Optional description of the meter

filter
null | Meter Filter · object

Optional filter to apply to the meter

Exemple:

Réponse

Meter created successfully

aggregation
Meter Aggregation · object
requis
business_id
string
requis
created_at
string<date-time>
requis
event_name
string
requis
id
string
requis
measurement_unit
string
requis
name
string
requis
updated_at
string<date-time>
requis
description
string | null
filter
null | Meter Filter · object

A filter structure that combines multiple conditions with logical conjunctions (AND/OR).

Supports up to 3 levels of nesting to create complex filter expressions. Each filter has a conjunction (and/or) and clauses that can be either direct conditions or nested filters.

Exemple:
Dernière modification le 1 avril 2026