Skip to main content
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 the metrics:read scope and access to the selected account.

Select a window

Set window to one of these enum values:
  • 7d: the trailing 7-day period. This is the default.
  • 30d: the trailing 30-day period.
For 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

The kpis 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

Authorization
string
header
required

Levios API key sent as a Bearer token.

Query Parameters

account_id
string<uuid>
required
window
enum<string>

Values: 30d: the trailing 30-day period; 7d: the trailing 7-day period.

Available options:
30d,
7d

Response

Successful response.

kpis
object
required
top_automations
object[]
required
Maximum array length: 5
window
enum<string>
required

Values: 30d: the trailing 30-day period; 7d: the trailing 7-day period.

Available options:
30d,
7d