Vai al contenuto principale
POST
JavaScript

Autorizzazioni

Authorization
string
header
obbligatorio

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

Corpo

application/json
aggregation
Meter Aggregation · object
obbligatorio

Aggregation configuration for the meter

event_name
string
obbligatorio

Event name to track

measurement_unit
string
obbligatorio

measurement unit

name
string
obbligatorio

Name of the meter

description
string | null

Optional description of the meter

filter
null | Meter Filter · object

Optional filter to apply to the meter

Esempio:

Risposta

Meter created successfully

aggregation
Meter Aggregation · object
obbligatorio
business_id
string
obbligatorio
created_at
string<date-time>
obbligatorio
event_name
string
obbligatorio
id
string
obbligatorio
measurement_unit
string
obbligatorio
name
string
obbligatorio
updated_at
string<date-time>
obbligatorio
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.

Esempio:
Ultima modifica il 1 aprile 2026