Skip to main content
POST
/
agents
/
get_connection_stats
Aggregate agent connection counters
curl --request POST \
  --url https://api.svantic.com/agents/get_connection_stats \
  --header 'Content-Type: application/json' \
  --data '
{
  "agent_type": "orchestrator"
}
'
{
  "ok": true,
  "stats": {
    "total": 14,
    "by_deployment_mode": {
      "hosted": 8,
      "connected": 6
    },
    "by_status": {
      "online": 5,
      "healthy": 7,
      "degraded": 1,
      "offline": 1
    },
    "by_transport": {
      "ws": 5,
      "callback": 7,
      "unknown": 2
    }
  },
  "tenant_id": "tenant-acme",
  "agent_type": "orchestrator"
}

Documentation Index

Fetch the complete documentation index at: https://docs.svantic.com/llms.txt

Use this file to discover all available pages before exploring further.

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.