# Get a single collector metrics target

Returns a single collector target by ID.

[endpoint]
base_url = "https://telemetry.betterstack.com"
path = "/api/v1/collectors/{collector_id}/targets/{target_id}"
method = "GET"

[[url_param]]
name = "collector_id"
description = "The ID of the collector."
required = true
type = "string"

[[url_param]]
name = "target_id"
description = "The ID of the target."
required = true
type = "string"

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

[responses]
[[response]]
status = 200
description = "The target was returned successfully."
body = '''
{
  "data": {
    "id": "1",
    "type": "collector_target",
    "attributes": {
      "kind": "postgres",
      "host": "db.example.com",
      "port": 5432,
      "service": null,
      "listen_ip": null,
      "endpoint": null,
      "scheme": null,
      "username": "monitor",
      "ssl_mode": "require",
      "tls": null,
      "status": "up",
      "enabled": true,
      "container": null,
      "detected_host": null,
      "autogenerated": false,
      "paused_until": null,
      "consecutive_failure_count": 0,
      "last_ping_at": "2025-06-15T14:32:00.000Z",
      "created_at": "2025-06-01T12:00:00.000Z",
      "updated_at": "2025-06-15T14:32:00.000Z"
    }
  }
}
'''
[[response]]
status = 404
description = "The target was not found, or belongs to a different collector or team."
body = '''
{
  "errors": "Not found"
}
'''
[/responses]

```shell
[label cURL]
curl "https://telemetry.betterstack.com/api/v1/collectors/1/targets/1" \
     -H "Authorization: Bearer $TOKEN"
```
