Get a single collector metrics target

Returns a single collector target by ID.

GET https://telemetry.betterstack.com/api/v1/collectors/{collector_id}/targets/{target_id}

Headers

Authorization
required string
200

Response body

{
  "data": {
    "id": "1",
    "type": "collector_target",
    "attributes": {
      "kind": "postgres",
      "host": "db.example.com",
      "port": 5432,
      "username": "monitor",
      "ssl_mode": "require",
      "status": "up",
      "enabled": true,
      "container": null,
      "created_at": "2025-06-01T12:00:00.000Z",
      "updated_at": "2025-06-15T14:32:00.000Z"
    }
  }
}
404

Response body

{
  "errors": "Not found"
}

Response attributes

id
string
type
string
attributes.kind
string
attributes.host
string
attributes.port
integer or null
attributes.service
string
attributes.listen_ip
string or null
attributes.endpoint
string or null
attributes.scheme
string
attributes.username
string or null
attributes.ssl_mode
string or null
attributes.tls
string or null
attributes.status
string
attributes.enabled
boolean
attributes.container
string or null
attributes.created_at
string
attributes.updated_at
string
cURL
curl "https://telemetry.betterstack.com/api/v1/collectors/1/targets/1" \
     -H "Authorization: Bearer $TOKEN"