Breaking change
WebhookEvent.Data values now use JsonElement instead of string so webhook payloads can contain structured data such as customVariables.
Migrating from v4
String values must now be read with the appropriate JsonElement accessor:
var actionCode = webhookEvent.Data?["actionCode"].GetString();
var customVariables = webhookEvent.Data?["customVariables"];
var journeyType = customVariables?
.GetProperty("action_journeyType")
.GetString();Applications remaining on v4 are unaffected.
New features
- Support structured webhook values, including objects, arrays, numbers and booleans.
- Support
customVariablesin webhook events. - Add
ConstructLogEventBatchfor batched log events.
Bug fixes
- Improve invalid webhook payload handling and validation.
Full Changelog: v4.4.0...v5.0.0