Send one page view's heatmap interactions
What the browser and app SDKs send for heatmaps (docs/HEATMAPS.md): one page view's clicks, movement cells, scroll summary, attention bands and intent signals (rage_click, dead_click, hesitation, exit_intent, copy), aggregated on the device. Stored apart from events: never in the event list, the monthly event count or the destinations, but counted in the project's stored-bytes budget. x is in hundredths of a percent of the document's width (0 to 10000), y in CSS pixels from the document's top (for attention, the band 0 to 19, each 5% of the height). v is the kind's value (clicks of a rage click, milliseconds of a hesitation, of a band's attention or the time on page of a scroll summary), n the samples of a move cell. At most 2000 items per request; longer strings are cut, out-of-range numbers clamped. The query string and fragment of url are dropped.
Authorization
projectKey Public write key. Safe to embed in client applications; grants ingest only. Paired with X-Project-Secret it also grants read-only programmatic access.
In: header
Header Parameters
Who the event belongs to: your user id, or a per-visitor anonymous id you keep (the SDKs generate one). Same namespace as identify's custom_id. Omit only when a shared, address-derived profile is acceptable.
1 <= length <= 256Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/events/heatmap" \ -H "Content-Type: application/json" \ -d '{ "created_at": "2026-09-13T12:30:45Z", "document": { "h": 4200, "w": 1440 }, "items": [ { "k": "click", "s": "main > section.plans > a.cta", "tag": "a", "txt": "Start free", "x": 4870, "y": 840 }, { "k": "move", "n": 14, "x": 4800, "y": 832 }, { "k": "scroll", "v": 48200, "y": 2900 }, { "k": "attention", "v": 9100, "y": 0 } ], "page_view_id": "9f2c41d07a5b4e19", "url": "https://example.com/pricing", "viewport": { "h": 900, "w": 1440 } }'{ "status": "queued"}