Share links and exports
Create public share links for notebooks, insights, dashboards, replays, web reports and heatmaps, and export events, persons and groups as CSV.
Share links
Create a link with POST on the resource's shares route. Body (all optional): expires_in_days (1 to 90, default 7), never_expires (if the organization allows it), password (8 to 200 characters), allowed_origins (for embeds), options. The 201 answer carries the share and, once, its token and the absolute url built from the configured public base. List with GET on the same route ({data, next_cursor}, newest first, ?limit=&cursor=; tokens are never listed again) and revoke with DELETE .../shares/{share_id}.
Resource | Create / list | Public page |
|---|---|---|
Notebook |
|
|
Insight |
|
|
Dashboard |
|
|
Replay |
|
|
Replay playlist |
|
|
Web analytics |
|
|
Heatmap |
|
|
The JSON behind a public page is GET /v1/public/<kind>/<token>; embeds use /v1/embed/<kind>/<token>. Revoked, expired and unknown tokens are all 404.
CSV exports
Route | Columns |
|---|---|
|
|
|
|
|
|
The events export takes the same filters as GET /events (event, person, host, path, referrer, prop_key with prop_value, bots, sample), newest first, and stops at 10 000 rows (persons and groups: 100 000); the x-lc-export-cap header states the cap. For more, narrow the filters or use the query API.