List all existing sources

Returns a list of your team's existing sources.

GET https://logs.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,
        "name": "Real-Time Flights",
        "table_name": "real_time_flights",
        "platform": "flights",
        "token": "FczKcxEhjEDE58dBX7XaeX1q",
        "retention": 14,
        "ingesting_paused": false,
        "autogenerate_views": false,
        "created_at": "2021-05-27T12:30:41.695Z",
        "updated_at": "2021-06-11T14:00:50.756Z"
      }
    }
  ],
  "pagination": {
    "first": "https://logs.betterstack.com/api/v1/sources?page=1&per_page=10",
    "last": "https://logs.betterstack.com/api/v1/sources?page=12&per_page=10",
    "prev": "https://logs.betterstack.com/api/v1/sources?page=11&per_page=10",
    "next": "https://logs.betterstack.com/api/v1/sources?page=12&per_page=10"
  }
}

Example cURL

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