# AggregatedPostMetricsInput

AggregatedPostMetricsInput

Input for the `aggregatedPostMetrics` query.

**Fields:**
- `channelIds`: `[ChannelId!]` - Optional list of channel IDs to filter by. When omitted (null), the
aggregate spans every channel in the organization the actor has
insights access to. When set to an empty array, no channels match and
the result is empty.
- `endDateTime`: `DateTime!` - End of the aggregation window. Consumers typically pass UTC midnight of
the last calendar day in the window (the backend treats the range as
inclusive of that day), for example `2026-01-31T00:00:00Z`. Date range
is capped to 365 days.
- `organizationId`: `OrganizationId!` - The organization ID
- `startDateTime`: `DateTime!` - Start of the aggregation window. Consumers typically pass UTC midnight
of the first calendar day in the window, for example
`2026-01-01T00:00:00Z`.
- `tags`: `TagComparator` - Filter to posts with specific tags.
When omitted, all posts are included regardless of tags.