lumail.subscribers.listEvents
SDK 2.1.0 · API v2 · GET /api/v2/subscribers/:subscriber/events
MethodGET
/api/v2/subscribers/:subscriber/events[email protected] · lumail.subscribers
subscribers.listEvents(idOrEmail: string, params?: ListEventsParams): Promise<LumailResult<ListEventsResponse>>Events recorded on one contact. The SDK forwards limit, after, before, and eventTypes (JSON-stringified). order, startDate, endDate, and search are typed on ListEventsParams but are not forwarded.
Path Parameters
| Name | Type | Description |
|---|---|---|
idOrEmail | string | Required. Subscriber id or email. |
Query Parameters
| Name | Type | Description |
|---|---|---|
limit | number | Page size. Forwarded. |
after | string | Cursor: older events. Forwarded. |
before | string | Cursor: newer events. Forwarded by the SDK. |
eventTypes | SubscriberEventType[] | Filter by event type. Forwarded as a JSON string. |
order | "asc" or "desc" | Typed only. Not forwarded by the SDK. |
startDate | string | Typed only. Not forwarded by the SDK. |
endDate | string | Typed only. Not forwarded by the SDK. |
search | string | Typed only. Not forwarded by the SDK. |
Response Fields
| Field | Type | Description |
|---|---|---|
object | "list" | Discriminator. Always list. |
has_more | boolean | true when another page exists. |
data | SubscriberEvent[] | Events. Each row: id, eventType, data, subscriberId, createdAt, subscriber. |
data is { object, data, has_more }. Failures return { data: null, error: { name, message, statusCode } }.