• Compare
  • Documentation
  • Pricing
  • Agents
Sign InStart free

The outbound integration layer for SaaS products: emit once, then let Meshes handle routing, retries, fan-out, and delivery history.

  • Terms of Service
  • Privacy Policy
  • Acceptable Use Policy
  • Cookie Policy

© Copyright 2026 Meshes, Inc. All Rights Reserved.

  • Getting Started
    • What is Meshes?
    • Core Concepts
    • Quickstart
    • API Overview
  • AI Tools
    • Cursor Rules
    • MCP Server
    • LLMs Docs
  • API Documentation
    • API Reference
    • Authentication
    • Results
    • Rate Limiting
    • SDKs
    • Integrations & Rules
  • Events
    • Publishable Keys
    • Send Events
    • Bulk Event Ingestion
  • Embed & Sessions
    • Quickstart
    • Session API Overview
    • Launch URL and Iframe Bootstrap
    • Iframe Message Contract
    • Session Roles and Scopes
    • Workspace Pages Available in Embed
    • Session Refresh Lifecycle
    • Iframe Sizing and Resize Handling
    • OAuth and Connection Setup Behavior
    • Security Model
    • Troubleshooting
  • Integrations
    • HubSpot
    • Intercom
    • Slack
    • Salesforce
    • Zoom

Iframe Sizing and Resize Handling

Use Meshes resize events to keep the iframe height aligned to the embedded workspace content.

Meshes embed can report its content height to the parent.

meshes:resize

The iframe sends:

{
  "type": "meshes:resize",
  "height": 842
}

Host-owned sizing

The host app decides how to apply that height.

Typical pattern:

  • set iframe.style.height
  • clamp to a minimum height
  • optionally clamp to a maximum height
const embedOrigin = new URL(launchUrl).origin;
const minHeight = 480;

window.addEventListener('message', (event) => {
  if (event.origin !== embedOrigin) return;
  if (event.data?.type === 'meshes:resize') {
    iframe.style.height = `${Math.max(minHeight, event.data.height)}px`;
  }
});

Important note

The iframe does not automatically change its own outer size. The parent must apply the new height.

Related docs

  • Iframe Message Contract
  • Quickstart
  1. meshes:resize
    1. Host-owned sizing
    2. Important note
    3. Related docs