The most important part of creating a contract event is defining the validation
schema. Hightouch uses JSON Schema to define rules
for validating the event payload.
When creating an event, you can either use our visual editor to define a
JSON Schema, or paste a custom schema definition into Hightouch.
Hightouch allows you to manage different versions of an contract event at the
same time. This is often useful when it is difficult to migrate your codebase to
use the latest payload. For example, when an iOS app takes a while to be updated
across all devices.
After creating your first event, you can create additional versions of the
schema. The first version is the "default" version, which applies to events that
do not specify a version in the payload. It is recommended that your events
follow an incrementing pattern (for example, v1, v2, v3), although not strictly
required.
When invoking an event, you can specify the schema version via: