AnalyticsEventSearchRequest
Example Usage
typescript
import { AnalyticsEventSearchRequest } from "@meetkai/mka1/models/components";
let value: AnalyticsEventSearchRequest = {
from: new Date("2026-09-01T00:00:00Z"),
to: new Date("2026-09-02T00:00:00Z"),
eventName: "page_view",
filters: [
{
property: "plan",
op: "gte",
},
],
};Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
from | Date | ✔️ | Start of the time range, inclusive. Use an ISO 8601 timestamp with Z for UTC or an offset such as -07:00. Must be before to. | 2026-09-01T00:00:00Z |
to | Date | ✔️ | End of the time range, exclusive. Use an ISO 8601 timestamp with Z for UTC or an offset such as -07:00. Must be after from. | 2026-09-02T00:00:00Z |
eventName | string | ➖ | Only include events with this exact name. Omit to include all event names. | page_view |
filters | components.AnalyticsEventSearchRequestFilters[] | ➖ | Property filters combined with AND. An event must match every filter. | |
distinctId | string | ➖ | Only include events sent with this exact distinct_id. | |
limit | number | ➖ | Maximum number of rows in this page. | |
cursor | string | ➖ | Opaque cursor of at most 4096 characters, copied from next_cursor of the previous page. Omit for the first page, which takes the snapshot the whole sequence reads at. Cursors belong to one list and one sort order; a cursor that does not decode, or one from another list, returns 400. A cursor is a position, not a capability: one that decodes only moves the caller within the same project. |