List all existing sources

Returns a list of your team's existing sources.

GET https://logtail.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://www.logtail.com/api/v1/sources?page=1&per_page=10",
    "last": "https://www.logtail.com/api/v1/sources?page=12&per_page=10",
    "prev": "https://www.logtail.com/api/v1/sources?page=11&per_page=10",
    "next": "https://www.logtail.com/api/v1/sources?page=12&per_page=10"
  }
}

Example cURL

curl --request GET \
  --url https://logtail.com/api/v1/sources \
  --header 'Authorization: Bearer YOUR_API_TOKEN'
Copied!