Skip to main content
GET
Error

Authorizations

Authorization
string
header
required

Flowyte secret API key (Authorization: Bearer flowyte_sk_live_…). Scope-gated; is scoped to your organization — a key can never reach another tenant. The listed scopes in each operation's apiKey requirement are the scopes that key must hold. The tokenUrl is nominal: keys are minted in the dashboard.

Path Parameters

id
string
required

A metric id from the catalog (e.g. containment). Unknown ids → 404.

Query Parameters

from
string<date-time>

Window start (RFC3339); window is half-open [from, to).

to
string<date-time>

Window end (RFC3339, exclusive).

compare
enum<string>

Also compute delta = current minus a baseline window (scalar call metrics with a bounded window only). Modes: prev (or any truthy legacy value — true/1/yes) = the immediately preceding EQUAL-LENGTH window [from-Δ, from); lastweek = the SAME-length window shifted back exactly 7 days [from-7d, to-7d] (same-period-last-week). Blank/other = no delta.

Available options:
prev,
lastweek,
true
tz
string

IANA timezone for series bucketing (default UTC). Fixes day-boundary drift.

bucket
enum<string>

Series granularity (default day).

Available options:
day,
week,
month,
hour
channel
enum<string>

Restrict to one channel.

Available options:
voice,
chat,
sms
agent
string

Restrict to one agent id. Independent of queue (they AND together).

queue
string

Restrict to one queue id. Independent of agent (they AND together).

minN
integer

Override the metric low-volume suppression floor.

Required range: x >= 0

Response

The compiled metric result.

success
boolean
required
data
object
required

The compiled result of queryMetric. total is the scalar value for count/ratio/avg metrics and null for distribution/percentile metrics (whose per-slice numbers live in breakdown[]). n is the honest sample count behind the number. series[] is the tz-aware per-bucket trend (empty for point-in-time backlog metrics). delta is populated only when ?compare= was requested on a scalar metric with a bounded window.

message
string
errors
object[]