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,
      "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"
    }
  }
}
404

Response body

{
  "errors": "Not found"
}
cURL
curl "https://telemetry.betterstack.com/api/v1/collectors/1/targets/1" \
     -H "Authorization: Bearer $TOKEN"