Skip to content

List Customer Timeline Events

Required scope: customer_activity:read

Use this endpoint to read a customer’s activity timeline: the audit and lifecycle events recorded against the customer, newest first. Each event exposes its eventType, the entityType and entityId it concerns, a safe human-readable summary, and when it occurredAt.

Pass an optional transactionId to restrict the timeline to a single transaction on the customer.

The timeline is paged: each response holds up to pageSize events (default and maximum 100). When nextCursor is present, pass it back as cursor to read older events; a page may hold fewer events than pageSize, so keep paging until nextCursor is absent.

Entries are limited to the event types the API key member’s customer View shows, which follow the menu items of their roles, and by their audit, sales and work order visibility, so the timeline may be partial. The raw event payload is not exposed; the summary string is the safe, bounded description of each event.

Generated Reference
POST /public-api/publicapi.v1.Customer/ListCustomerTimelineEvents

Lists a customer's activity timeline: audit and lifecycle events recorded against the customer, newest first and paged by cursor. Entries are limited to the event types the API key member's customer View shows and by their audit, sales and work order visibility, so the timeline may be partial. Read-only.

Request ListCustomerTimelineEventsRequest
Response ListCustomerTimelineEventsResponse

ListCustomerTimelineEventsRequest

Field Type Description
customer_id string Customer whose activity timeline is returned.
transaction_id optional string Restrict the timeline to a single transaction on the customer.
page_size int32 Maximum events to return. Defaults to 100 and is capped at 100.
cursor optional string Opaque continuation token from a previous response's next_cursor.

ListCustomerTimelineEventsResponse

Field Type Description
events repeated CustomerTimelineEvent Timeline events the API key's member may see, newest first. May hold fewer than page_size entries; keep paging until next_cursor is empty.
next_cursor optional string Present when more events are available; pass it back as cursor.
{
"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04",
"pageSize": 50
}
Terminal window
curl https://portal.heyx.app/public-api/publicapi.v1.Customer/ListCustomerTimelineEvents \
-H "Authorization: Bearer hx_sk_..." \
-H "Content-Type: application/json" \
-d '{"customerId": "be85f4d1-b680-4964-bf62-9828fdf4ce04"}'
{
"events": [
{
"id": "c3d4e5f6-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
"eventType": "document_signed",
"entityType": "document",
"entityId": "a2ec8aef-691a-4e9d-b4fd-52e255883c6c",
"summary": "Quote signed by Alex Example",
"occurredAt": 1735689600
}
],
"nextCursor": "eyJvY2N1cnJlZF9hdCI6IjIwMjUtMDEtMDFUMDA6MDA6MDBaIiwiaWQiOiJjM2Q0In0"
}