# List all sources

Returns a list of your team's existing sources.

[endpoint]
base_url = "https://telemetry.betterstack.com"
path = "/api/v1/sources"
method = "GET"

[[query_param]]
name = "page"
description = "Page number"
type = "integer"

[[query_param]]
name = "per_page"
description = "The number of sources per page (max 50)"
type = "integer"

[[header]]
name = "Authorization"
description = "Bearer `$TOKEN`"
required = true
type = "string"
[/endpoint]

[responses]
[[response]]
status = 200
description = ''''''
body = '''
{
    "data": [
        {
            "id": "95",
            "type": "source",
            "attributes": {
                "team_id": 123,
                "team_name": "Test team",
                "name": "Nginx",
                "source_group_id": 456,
                "table_name": "nginx",
                "platform": "nginx",
                "token": "FczKcxEhjEDE58dBX7XaeX1q",
                "ingesting_host": "s95.eu-nbg-2.betterstackdata.com",
                "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}",
                "vrl_transformation": ".message = upcase!(.message)\n.",
                "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"
    }
}
'''
[/responses]

#### Example cURL 

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