Internal Events

App Events

App Events let integration.app know when something happens in your app. They can be used to trigger Flows using App Event Trigger.

App Event Types

To use App Events, you need to define one or more App Event Types. You can do it on the App Event Types page.

Each App Event Type has:

  • Schema – a Data Schema describing the event's contents.
  • Example – an example of the event's contents matching the Schema. You can use Example to generate schema.

Global Webhook

Use Global Webhook to send app events to integration.app in a centralized (not per-user) way.
Simply make an HTTP request of any type to the webhook URI and the event will be captured and processed.

Per-customer Subscriptions

If instead of a Global Webhook, you want to use per-user webhooks or if you already have API that allows per-user event subscriptions, you can configure subscriptions for your App Event.

To do this, configure the Subscription Request:

You can use Customer Fields and webhookUri variables to configure the request.

The request will be called the first time this App Event Type is used for a given User.
You can find the subscription request and response, as well as other information about subscriptions on the Subscriptions page.

Batch Events

If the body of the request your app sends to membrane is an array, it will be treated as multiple events.

If global webhook is used, each event can have a different customer id and it will be processed as events for different customers.