Skip to main content
GET /api/v1/databases/{id}/connection-events returns events attributed to the selected managed database by its generated role name and the signed private source. A database-scoped API key is required. Use limit (1–100, default 25) and the opaque nextCursor to page older events. The response is no-store and is always restricted to that database. Raw events are retained for seven days. kind is one of attempt, authenticated, auth_refused and closed; an attempt does not prove a successful login. tls may be true, false or null. source is pgbouncer_log, and sampled is false. No SQL text, password, token, client IP or cipher is returned. The daily array contains outcome/TLS counts for up to 30 days. coverage is unavailable, gap_recorded or no_recorded_gap; the last value does not promise a complete connection history. Events are attributed through DBHost-generated role names, by identity rather than lifecycle state: a login made while the database was active is kept even if the database has been stopped, or deleted into its recovery window, by the time the event is delivered. An event that cannot be attributed to an immutable database ID within ten minutes of happening, or that is more than five minutes ahead of our clock, is not shown; it stays in the private source inbox and is never shown to another tenant. Direct PostgreSQL migration sessions and the older sampled-client list are separate sources. CLI 0.3.7 or newer: dbhost databases events <id> [--limit 1-100] [--cursor CURSOR] [--json]. See Connection history for the dashboard view.