• 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

Session Refresh Lifecycle

Understand how Meshes embed refreshes session tokens without creating a new logical session every time.

Meshes refreshes embed sessions in place.

Refresh keeps the same session

When you call POST /api/v1/sessions/:sessionId/refresh, the response keeps the same session_id and returns a new access_token.

When refresh happens

The iframe can ask for refresh in two ways:

  • scheduled refresh before expiry
  • early refresh after an auth-related 401

Expected host behavior

  1. receive meshes:token-refresh
  2. refresh the logical session on your backend
  3. send the new access_token back with meshes:auth

What refresh does not do

Refresh does not mint a new launch URL. It is meant for an already-mounted iframe.

If you need a full iframe bootstrap again, mint a fresh session and use the new launch_url.

Related docs

  • Session API Overview
  • Iframe Message Contract
  • Troubleshooting
  1. Refresh keeps the same session
    1. When refresh happens
    2. Expected host behavior
    3. What refresh does not do
    4. Related docs