Get a single source

Get a single source by its ID.

GET https://telemetry.betterstack.com/api/v2/sources/{source_id}

URL parameters

id
required string

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": {
        "name": "storage-bucket",
        "endpoint": "https://s3.us-east-1.amazonaws.com/storage-bucket",
        "access_key_id": "AKIAIOSFODNN7EXAMPLE",
        "keep_data_after_retention": false
      },
      "vrl_transformation_logs": ".message = upcase!(.message)\n.",
      "vrl_transformation_spans": "",
      "blocked_metrics": []
    }
  }
}
404

Response body

{
  "errors": "Resource with provided ID was not found"
}

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

Example cURL

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