Connections to a service's public TCP and UDP ports through the gateway: per port, over time, by country and outcome ("ok", "blocked" by an IP rule, "limited" by the connection limit, "unreachable" when the service didn't answer), and the latest 50. A connection is counted when it closes (a UDP exchange after a minute without packets). Ports that bypass the gateway aren't counted.
API key access: read.
apiKeyAuthorizationBearer <pyo_…>An API key from the dashboard's API keys page: Authorization: Bearer pyo_…. Keys can expire, and an expired one gets a 401.
id*stringThe service's id.
range?string"1h", "24h", "7d" (the default) or "30d".
ports, series, countries, outcomes, recent (address as the IP setting allows) and ipMode.
application/jsoncurl -X GET 'https://your-pyo.example.com/api/v1/services/string/connections'{}