curl --request GET \
--url https://api.example.com/v1/stats/activities{
"data": {
"total": 123,
"by_type": {}
}
}Get activity counts grouped by type for a date range
curl --request GET \
--url https://api.example.com/v1/stats/activities{
"data": {
"total": 123,
"by_type": {}
}
}Authorization: Bearer wbk_your_api_key_here
curl "https://data.leadlex.com/functions/v1/api-gateway/v1/stats/activities?date_from=2026-03-01&date_to=2026-03-06" \
-H "Authorization: Bearer wbk_your_api_key_here"
{
"data": {
"total": 87,
"by_type": {
"email_sent": 45,
"email_replied": 12,
"call": 18,
"meeting": 7,
"note": 5
}
}
}
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing date_from or date_to |
| 403 | insufficient_permissions | Missing activities:read permission |