Skip to main content
POST
API request metrics

Authorizations

Authorization
string
header
required

Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of get_api_request_metrics.

period
object
required

Required metrics window [from, to). Operators on occurred_at inside filter are ignored.

filter
object
group_by
enum<string> | null

Split the aggregate per key: client_sid / route / entity / status_family / service / surface = breakdowns (occurred_hour / occurred_day = a legacy time split; prefer bucket). Cap 500 groups.

Available options:
service,
surface,
credential_kind,
client_sid,
entity,
operation,
route,
status_family,
occurred_day,
occurred_hour
bucket
enum<string> | null

The time axis, independent of group_by: hour or day (UTC). Answers series.points[], one per bucket over the whole window, zeros filled, each with its own counts and group_by split.

Available options:
hour,
day

Response

metrics success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
metrics
metrics
object
required
meta
object
required
applied_filters
object