# Get a single source

Get a single source by its ID.

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

[[path_param]]
name = "id"
description = "The ID of the source you want to get"
required = true
type = "string"

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

[responses]

[[response]]
status = 200
description = ''' '''
body = '''
{
    "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.",
        "custom_bucket": {
          "name": "storage-bucket",
          "endpoint": "https://s3.us-east-1.amazonaws.com/storage-bucket",
          "access_key_id": "AKIAIOSFODNN7EXAMPLE"
        },
        "created_at": "2021-05-27T12:30:41.695Z",
        "updated_at": "2021-06-11T14:00:50.756Z"
    }
}
'''

[[response]]
status = 404
description = '''Your team doesn't have a source with this ID'''
body = '''{
    "errors": "Resource with provided ID was not found"
}'''

[/responses]

#### Example cURL 

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