Skip to main content
POST
Report what visitors did in a Workflow, as counts

Path Parameters

workflowId
string<uuid>
required

Body

One report from a visitor's browser: counts (events), the heights steps settled at (heights), or both. A report with neither is refused.

versionId
string<uuid>
required
token
string
required

The eventToken of the workflow, read for the same version.

events
object[]

The counts of what visitors did. At least one of events and heights is needed.

Maximum array length: 100
heights
object[]

How tall steps of this version settled in the visitor's browser, so that the embed code of the workflow can start its box at the height visitors saw instead of a guess. The Embed SDK sends one for a visitor who has no remembered height for the step. The gateway keeps the latest few for each composition (the median is what the code gets); a composition that this version does not show is left out. At least one of events and heights is needed.

Maximum array length: 10

Response

Nothing was counted or kept (recorded is false, with the reason)

success
boolean
required
data
object
required
Example:
meta
object

Extra information about the answer: where a page sits in a list, the cursor of the next page, or warnings about a call that succeeded with a caveat.