List all sources

Returns a list of your team's existing sources.

GET https://telemetry.betterstack.com/api/v2/sources

Query parameters

page
integer
per_page
integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "95",
      "type": "source",
      "attributes": {
        "source_group_id": 456,
        "team_id": 123,
        "team_name": "Test team",
        "name": "Nginx",
        "platform": "nginx",
        "table_name": "nginx",
        "token": "FczKcxEhjEDE58dBX7XaeX1q",
        "ingesting_paused": false,
        "ingesting_host": "s95.eu-nbg-2.betterstackdata.com",
        "created_at": "2026-05-27T12:30:41.695Z",
        "updated_at": "2026-06-11T14:00:50.756Z",
        "logs_retention": 7,
        "metrics_retention": 14,
        "live_tail_pattern": "{level} {host} {nginx.status} {nginx.method} {nginx.host} {nginx.path} {nginx.client} {nginx.agent} {message}",
        "data_region": "eu-nbg-2",
        "custom_bucket": null,
        "vrl_transformation_logs": ".message = upcase!(.message)\n.",
        "vrl_transformation_spans": "",
        "blocked_metrics": []
      }
    }
  ],
  "pagination": {
    "first": "https://telemetry.betterstack.com/api/v2/sources?page=1&per_page=10",
    "last": "https://telemetry.betterstack.com/api/v2/sources?page=12&per_page=10",
    "prev": null,
    "next": "https://telemetry.betterstack.com/api/v2/sources?page=2&per_page=10"
  }
}

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.aws_auto_sub_log_groups
boolean
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_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/v2/sources \
  --header "Authorization: Bearer $TOKEN"