Do we have any documents about the Squidex webhook?

I have not found any introduction about webhooks, only found this.
I mean about fields, this is a webhook callback example.

I think this might be helpful: Rule Formatting | Squidex

Rule Formatting | Squidex is used to format your custom payloads in rule actions.

I think this is the right way, but this seems to define how to custom payloads, in my case, this is an empty payload, it returns the full event as the body in the webhook, and I don’t know what the event means. For example, the payload type,

"$type": "EnrichedContentEvent",
"type": "Updated",

I saw the $type is EnrichedContentEvent, and the type is Updated, and some may have other values.

There are several event types, depending on the action:

  • ContentChanged => EnrichedContentEvent
  • AssetChanged => EnrichedAssetEvent

The $type defines what kind of event to be expect.

The “type” is used to identify what has changed, in this case the content is updated. I will have a look how I can improve the documentation here (not necessarily the docs, but Squidex could provide a schema or so).

The types are defined here: squidex/backend/src/Squidex.Domain.Apps.Core.Model/Rules/EnrichedEvents/EnrichedContentEvent.cs at master · Squidex/squidex · GitHub (The partition is just something internal).

1 Like

Thank you remind this, it’s helpful for me!

1 Like