List all connections

Returns a paginated list of ClickHouse connections. For extra details, such as individual data sources, see Get a single connection API.

GET https://telemetry.betterstack.com/api/v1/connections

Query parameters

page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "43700",
      "type": "connection",
      "attributes": {
        "id": 43700,
        "client_type": "clickhouse",
        "note": "My testing connection",
        "created_at": "2025-10-18T10:00:44.890Z",
        "valid_until": null,
        "host": "eu-nbg-2-connect.betterstackdata.com",
        "port": 443,
        "username": "uodjialjQXSPe66TePguwdE72Jjvn9DNy",
        "data_region": "eu-nbg-2",
        "ip_allowlist": [],
        "team_ids": [
          1234
        ],
        "team_names": [
          "My Team"
        ],
        "created_by": {
          "id": 456789,
          "email": "my@email.com"
        }
      }
    }
  ],
  "pagination": {
    "first": "https://telemetry.betterstack.com/api/v1/connections?page=1",
    "last": "https://telemetry.betterstack.com/api/v1/connections?page=1",
    "prev": null,
    "next": null
  }
}

This API requires a global API token for authentication, not a team-specific token. Include the token in the Authorization header.

Example cURL

Example
curl --request GET \
  --url https://telemetry.betterstack.com/api/v1/connections \
  --header "Authorization: Bearer $TOKEN"