List all existing sources

Returns a list of your team's existing sources.

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

URL parameters

page
required integer
per_page
required integer

Headers

Authorization
required string
200

Response body

{
  "data": [
    {
      "id": "95",
      "type": "source",
      "attributes": {
        "team_id": 123,
        "team_name": "Test team",
        "name": "Nginx",
        "table_name": "nginx",
        "platform": "nginx",
        "token": "FczKcxEhjEDE58dBX7XaeX1q",
        "ingesting_paused": false,
        "logs_retention": 7,
        "metrics_retention": 14,
        "live_tail_pattern": "{level} {host} {nginx.status} {nginx.method} {nginx.host} {nginx.path} {nginx.client} {nginx.agent} {message}",
        "created_at": "2021-05-27T12:30:41.695Z",
        "updated_at": "2021-06-11T14:00:50.756Z"
      }
    }
  ],
  "pagination": {
    "first": "https://telemetry.betterstack.com/api/v1/sources?page=1&per_page=10",
    "last": "https://telemetry.betterstack.com/api/v1/sources?page=12&per_page=10",
    "prev": "https://telemetry.betterstack.com/api/v1/sources?page=11&per_page=10",
    "next": "https://telemetry.betterstack.com/api/v1/sources?page=12&per_page=10"
  }
}

Example cURL

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