Returns aggregated outreach metrics across the whole team for the requested period.
Important: despite accepting a filter field, this endpoint currently returns team-wide totals only — filter.sender_profile_uuid and other keys are silently ignored. The group_by field is also accepted but does not produce a per-group breakdown in the response. Plan for team-level reporting only.
For per-sender activity counts (without period filter), use: - POST /flows/api/linkedin-messages/group-counts with filter.sender_profile_uuid - GET /flows/api/tasks?filter[sender_profile_uuid][]=<uuid>&filter[status][]=<status>
ISO 8601 datetime for the start of the period (inclusive).
ISO 8601 datetime for the end of the period (inclusive).
Optional list of flow UUIDs to scope the metrics. Empty array = all flows.
List of metric names to retrieve. See the enum below.
[ "linkedin_sent_count", "linkedin_inbox_count", "email_sent_count" ]
Currently ignored — included for forward compatibility once the backend filter is fixed. See the description above.
curl -i -X POST \
https://leadgen.grinfi.io/leads/api/leads/metrics \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"period_from": "2026-04-01T00:00:00Z",
"period_to": "2026-04-28T23:59:59Z",
"flows": [],
"metrics": [
"linkedin_connection_request_sent_count",
"linkedin_connection_request_accepted_count",
"linkedin_sent_count",
"linkedin_opened_count",
"linkedin_inbox_count"
],
"filter": {},
"group_by": "sender_profiles"
}'Aggregated metrics for the period.
Map of metric name → count. Only the metrics requested in the input are present in the response.
{ "linkedin_connection_request_sent_count": 7694, "linkedin_connection_request_accepted_count": 3530, "linkedin_sent_count": 5250, "linkedin_opened_count": 2265, "linkedin_inbox_count": 1202 }
{ "total": { "linkedin_connection_request_sent_count": 7694, "linkedin_connection_request_accepted_count": 3530, "linkedin_sent_count": 5250, "linkedin_opened_count": 2265, "linkedin_inbox_count": 1202 } }