List sources in a source group

Returns a list of all sources in a specific source group.

GET https://telemetry.betterstack.com/api/v1/source-groups/{id}/sources

URL parameters

id
required string

Query parameters

page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "101",
      "type": "source",
      "attributes": {
        "source_group_id": 95251342,
        "team_id": 123,
        "team_name": "Test team",
        "name": "Production API Server",
        "platform": "ruby",
        "table_name": "prod_api",
        "token": "abcDefGhiJklMnoPqrStuVwx",
        "ingesting_paused": false,
        "ingesting_host": "s101.eu-nbg-2.betterstackdata.com",
        "created_at": "2026-10-26T10:00:00.000Z",
        "updated_at": "2026-10-26T10:00:00.000Z",
        "retention": 30,
        "logs_retention": 30,
        "metrics_retention": 30,
        "live_tail_pattern": null,
        "data_region": "eu-nbg-2",
        "custom_bucket": null,
        "vrl_transformation": "",
        "vrl_transformation_logs": "",
        "vrl_transformation_spans": "",
        "blocked_metrics": []
      }
    },
    {
      "id": "102",
      "type": "source",
      "attributes": {
        "source_group_id": 95251342,
        "team_id": 123,
        "team_name": "Test team",
        "name": "Staging Database",
        "platform": "postgresql",
        "table_name": "staging_db",
        "token": "yzaBcDefGhiJklMnoPqrStuV",
        "ingesting_paused": true,
        "ingesting_host": "s102.eu-nbg-2.betterstackdata.com",
        "created_at": "2026-10-25T12:00:00.000Z",
        "updated_at": "2026-10-25T12:00:00.000Z",
        "retention": 7,
        "logs_retention": 7,
        "metrics_retention": 7,
        "live_tail_pattern": null,
        "data_region": "eu-nbg-2",
        "custom_bucket": null,
        "vrl_transformation": "",
        "vrl_transformation_logs": "",
        "vrl_transformation_spans": "",
        "blocked_metrics": []
      }
    }
  ],
  "pagination": {
    "first": "https://telemetry.betterstack.com/api/v1/source-groups/95251342/sources?page=1",
    "last": "https://telemetry.betterstack.com/api/v1/source-groups/95251342/sources?page=1",
    "prev": null,
    "next": null
  }
}

Response attributes

id
string
type
string
attributes.source_group_id
integer or null
attributes.team_id
integer
attributes.team_name
string
attributes.name
string
attributes.platform
string
attributes.table_name
string
attributes.token
string
attributes.ingesting_paused
boolean
attributes.ingesting_host
string or null
attributes.created_at
string
attributes.updated_at
string
attributes.retention
integer
attributes.logs_retention
integer
attributes.metrics_retention
integer
attributes.live_tail_pattern
string or null
attributes.scrape_urls
array
attributes.scrape_frequency_secs
integer
attributes.scrape_request_headers
array
attributes.scrape_request_basic_auth_user
string or null
attributes.scrape_request_basic_auth_password
string or null
attributes.skip_ssl_verify
boolean
attributes.data_region
string
attributes.custom_bucket
object or null
attributes.custom_bucket.name
string
attributes.custom_bucket.endpoint
string
attributes.custom_bucket.access_key_id
string
attributes.custom_bucket.keep_data_after_retention
boolean
attributes.vrl_transformation
string
attributes.vrl_transformation_logs
string
attributes.vrl_transformation_spans
string
attributes.blocked_metrics
array
pagination.first
string
pagination.last
string
pagination.prev
string or null
pagination.next
string or null

Example cURL

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