---
title: "Get agent connectivity"
method: GET
path: "/metrics/connectivity"
tags: ["Metrics"]
---

# Get agent connectivity

`GET /metrics/connectivity`

Get agent online/offline status for all servers.

## Response `200`

OK

- PkgServerAgentConnectivityResponse
  - `agent_statuses` PkgServerAgentConnectivityEntry[]
    - `is_online` boolean
    - `last_seen` string
    - `server_id` string
    - `server_name` string
    - `status` string
  - `offline_agents` integer
  - `online_agents` integer
  - `stale_threshold` string
  - `total_agents` integer

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.dev/pullbase/apis/untitled-api.md) · [All operations](https://skmtc.dev/pullbase/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pullbase/untitled-api/revisions/edf8355bf78c/schema)
