Skip to main content
POST
Archive a meter

Authorizations

x-api-key
string
header
required

API key for authentication. You can find your API key in the Creem dashboard under Settings > API Keys.

Path Parameters

id
string
required

Response

Meter archived

id
string
required

Meter ID

Example:

"mtr_abc123"

store_id
string
required

Store ID

Example:

"sto_abc123"

name
string
required

Meter name

Example:

"Image generations"

event_name
string
required

Usage event name the meter consumes

Example:

"image.generated"

aggregation
enum<string>
required

Aggregation applied to matching events

Available options:
count,
sum,
average,
min,
max,
unique
Example:

"sum"

aggregation_property
string | null
required

Property the aggregation reduces; null for "count"

Example:

"tokens"

filter
object
required

The meter filter; always present (empty clauses = match all)

unit_label
string
required

Display unit

Example:

"images"

status
enum<string>
required

Whether the meter is active or archived

Available options:
active,
archived
Example:

"active"

created_at
string
required

Creation timestamp (ISO 8601)

updated_at
string
required

Last update timestamp (ISO 8601)