Metrics
Get account metrics
Read levios account KPIs and the top-performing automations for a chosen 7-day or 30-day time window, ready to render on a dashboard view.
GET
Get account metrics
This endpoint returns account KPIs and up to five top automations. Use an
account
id from List accounts as account_id.
Access
Your API key needs themetrics:read scope and access to the selected account.
Select a window
Setwindow to one of these enum values:
7d: the trailing 7-day period. This is the default.30d: the trailing 30-day period.
dms_sent and new_contacts, value covers the selected window and
prev covers the immediately preceding window of the same length.
delta_pct is the rounded percentage change between them. It is null when
prev is zero.
Returned KPIs
Thekpis object contains:
leads.last_window can be null when leads exist but their capture timestamps
are unavailable.
Top automations
top_automations contains at most five items. Each item includes id, name,
status, dms_last_7d, and last_fired_at.
The status enum has these values:
draft: saved but not processing new triggers.live: active and able to process matching triggers.paused: inactive until it is activated again.
dms_last_7d always covers the trailing seven days, even when you request the
30d account window. last_fired_at is null when the automation has not
fired.
Example request
Authorizations
Levios API key sent as a Bearer token.
Query Parameters
Values: 30d: the trailing 30-day period; 7d: the trailing 7-day period.
Available options:
30d, 7d 
