iAdvizeDocs

List a site's engagement exposure events over a period

Returns the raw funnel events the dashboard's Exposures tab lists, newest first: a widget shown, a launcher shown, a conversation opened, a starter question shown, the resume button. This is a debug-grade view of single events, not a metric: read the Engagement report for aggregates. A row carries an opaque session id and, when one exists, the conversation id. The page has no total. A cursor is bound to the period, the device and the type it was issued for. `from` and `to` are required UTC days, at most 366 days apart.

GET
/api/v1/sites/{siteId}/exposures

Authorization

ApiKeyAuth
AuthorizationBearer <token>

A WorkOS org-scoped API key, created from the dashboard's organization settings page. Identifies the tenant every read and write is scoped to. Missing, malformed, unknown, revoked, expired, or non-organization-owned keys all return 401 (no distinction, so the response can't be used to probe which keys or org ids exist).

In: header

Path Parameters

siteId*string

The site id (prefixed site_). A site id that isn't yours is a 404, same as any other cross-tenant id.

Query Parameters

from*string

First UTC calendar day of the period, YYYY-MM-DD, included.

Formatdate
to*string

Last UTC calendar day of the period, YYYY-MM-DD, included. The period is at most 366 days.

Formatdate
device?string

Only this device. One value: for several devices, make one call each.

Value in

  • "desktop"
  • "mobile"
  • "tablet"
  • "unknown"
type?string

Only events of this type.

Value in

  • "exposure"
  • "launcher_shown"
  • "conversation_opened"
  • "widget_shown"
  • "widget_mount_unresolved"
  • "widget_loaded"
  • "widget_mounted"
  • "starter_question_shown"
  • "resume_button_shown"
  • "resume_button_opened"
  • "resume_button_hidden"
cursor?string

The meta.nextCursor of the previous page, with the same filters.

limit?integer

The page size, 1 to 100.

Range1 <= value <= 100
Default50

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/api/v1/sites/string/exposures?from=2019-08-24&to=2019-08-24"
{  "data": [    {      "id": "evt_01kvnwmagvf27rc9cze5rm9e1r",      "type": "launcher_shown",      "sessionId": "b6f0c2e4-2a57-4c3c-9b0e-1f4a7d2c8e11",      "conversationId": null,      "device": "mobile",      "occurredAt": "2026-10-14T09:30:12.123Z"    }  ],  "meta": {    "nextCursor": null  }}