# Analytics

Outreach and engagement metrics for LinkedIn and email channels

## Get lead engagement metrics

 - [POST /leads/api/leads/metrics](https://api.getsales.io/bundled/analytics/getleadmetrics.md): Returns aggregated outreach and engagement metrics for LinkedIn and email channels. This is the primary analytics endpoint used by the GetSales dashboard, reports page, flow performance columns, and the Messenger inbox (unread counts per sender profile).

Specify which metrics to retrieve via the metrics array. Optionally pass a date range with period_from/period_to, and group results with group_by. Filter by specific flows or sender profiles as needed.

When group_by is set, the response includes both total (workspace-wide aggregates) and a metrics map keyed by the grouping entity UUID with per-entity breakdowns.

Unread counts (unread_count, unread_count_linkedin, unread_count_email) are always computed in real-time regardless of period_from/period_to — they reflect the current unread state per sender profile.

