Skip to main content
POST
Aggregate agent connection counters

Body

application/json

Scope filters for POST /agents/get_connection_stats. Both fields are optional. With none set, stats cover the caller's entire tenant.

agent_type
string

Restrict the aggregate to a single agent-type fleet.

tenant_id
string

Super-admin-only override (same semantics as get_connection). Ignored for non-super callers. When a super-admin omits this, stats are aggregated globally across all tenants.

Response

Aggregated connection counters for the scope.

ok
boolean
required
stats
object
required
tenant_id
string | null

Echoed scope. Non-null for tenant-scoped queries (the default for non-super callers); null only when a super-admin aggregates globally.

agent_type
string

Echoed when the request included an agent_type filter.