flow_specific endpoint type). For more complex routing scenarios — such as a single inbound URL that dispatches to different flows based on payload content — Prismatic supports two additional endpoint types that require a preprocess flow configuration.
EndpointType values
Set on the
IntegrationDefinition. Determines the URL shape that instances receive.| Value | Behavior |
|---|---|
flow_specific | Each flow has its own URL. Requests go directly to the matching flow. This is the default. |
instance_specific | Each instance has one URL shared by all flows. A preprocess step routes requests. |
shared_instance | All instances of the integration share one URL. Routing is based on payload fields. |
When
endpointType is instance_specific or shared_instance, you must provide either triggerPreprocessFlowConfig on the integration or mark one flow as the preprocess flow using preprocessFlowConfig.PreprocessFlowConfig
The preprocess flow config tells Prismatic which fields in a trigger payload (or preprocess flow result) carry routing information.
Path to the field in the payload that contains the name of the target flow. For example,
"body.data.event" maps to payload.body.data.event.Path to the field that identifies the customer. Required when
endpointType is shared_instance.Path to the field that identifies a specific customer user, for user-level routing.
Approach 1: triggerPreprocessFlowConfig (no preprocess flow)
Use triggerPreprocessFlowConfig when the routing information is already present in the raw trigger payload, so no pre-processing step is needed.
{ "event": "order.created", ... } is automatically routed to the order.created flow.
Approach 2: preprocessFlowConfig on a flow
Use a dedicated preprocess flow when the routing decision requires computation — for example, decrypting a payload or calling an external system to resolve a customer ID.
Mark exactly one flow with preprocessFlowConfig. That flow runs first for every inbound request, and its onExecution return value is inspected for routing fields.
Choosing an endpoint type
One URL per flow
Use
flow_specific (the default). No additional configuration required. Each flow receives its own dedicated webhook URL and handles its own trigger.One URL per instance, multiple flows
Use
instance_specific. Every instance of your integration gets a single inbound URL. Add triggerPreprocessFlowConfig if the routing field is already in the payload, or define a preprocess flow if you need to compute the route.Shared instance example with customer routing
{ "orgId": "cust_123", "eventType": "invoice.paid", ... } is routed to the invoice.paid flow of the instance deployed for customer cust_123.