Read activity action and table facet counts
Requires activity_logs_view, interactions_manage or donors_manage. Results enforce current program, participation-site/cohort, owner-only, restricted SMS-line and manual-interaction privacy access. Page mentions appear only on accessible donor/recipient timelines and may record exposure for normal user requests. Email Intelligence V2 removes legacy provider rows from the broad timeline. Email body text and preview pointers follow the current body policy, including mailbox, program and private-owner restrictions where applicable. Returns count maps keyed by action and table_name. General/donor facets ignore actions and table_names so the sidebar retains every choice within the remaining scopes; they apply the other privacy/exclusion/unmatched scopes. A nonblank query/search/q returns counts for current authorized metadata/body search matches. Recipient facets use the database row filters and ignore text search. Unknown recipient or search failure, including an over-broad query, returns an empty facets array with HTTP 200.
Authorizations
Passport bearer token authentication for legacy admin sessions.
Query Parameters
Search activity metadata and currently authorized email body text. Preferred query key; search and q are compatibility aliases. Ignored by recipient timelines and fresh donor previews. Narrow the phrase or date range when the candidate budget is exceeded.
Compatibility search text used when query is absent. Ignored by recipient timelines and fresh donor previews.
Compatibility search text used when both query and search are absent. Ignored by recipient timelines and fresh donor previews.
Restrict to this donor within the organization.
Read recipient activity directly; unknown recipient produces an empty page.
Look back this many days; values at or below zero remove the date boundary.
Action allowlist for recipient facets; ignored by general/donor facets.
Table allowlist for recipient facets; ignored by general/donor facets.
Exclude merged activity row types.
Legacy mode selects unreviewed/unmatched external email; ignored as a match filter when Email Intelligence V2 is enabled.
Response
Read activity action and table facet counts response.