Receive postMessage callbacks from Feature Embed iframes.
Interested in this feature? Get in touch with your Customer Success Manager.
When running in the feature_embed modality, the Junction iframe notifies your host page of significant events by posting a message to the parent window via the Web Messaging API.Callbacks are only emitted from Feature Embed iframes. They are never emitted in the link_out modality.
Each Junction organization is served from a dedicated subdomain: https://<slug>.ehr.junction.com, where <slug> is the unique slug from your App Embed configuration.Junction always targets your registered origin explicitly — it never posts to "*". The target origin is resolved from the iframe’s ancestorOrigins or document.referrer. If the origin cannot be resolved, the message is silently dropped rather than broadcast.Your listener must independently validate event.origin before trusting the payload, since any page on your origin may receive message events.