Skip to content
storefronts / On-site events
POST/__runtime/onsite/events

Create Onsite Event

Records an on-site widget event for the storefront resolved from the request Host, deduplicating recent impressions.

POST

Authentication

Requirement
Not specified
Credential type
Not specified
Scopes
Not specified

Permissions

  • Public storefront endpoint resolved from the request Host; an authenticated storefront session is optional.

Headers

NameRequiredTypeDetails
Content-TypeYesNot specified
Description: Value used by this operation.
CookieYesNot specified
Description: Value used by this operation.
AuthorizationYesNot specified
Description: Bearer credential used to authenticate the request.

Path Parameters

Query Parameters

Request Body

Schema: RuntimeOnsiteEventPayload

FieldRequiredTypeDetails
widget_idYesinteger
Description: Identifier for widget.
variant_idNointeger
Description: Identifier for variant.
event_typeYesstring
Description: Text value.
page_urlNostring
Description: Text value.
referrerNostring
Description: Text value.
device_hashNostring
Description: Text value.

Response Body

Example 200 response

json
{
  "ok": "string",
  "deduped": "string"
}

Errors

400 BAD_REQUEST500 INTERNAL_SERVER_ERROR

Availability

Available in
v0.1.0
Available since
v0.1.0
Implementation
Available
Deprecation
Not specified
Rate limits
Not specified