Skip to main content

Remote Block

The remote_block fetches BlockKit JSON from a URL and renders it inline. This enables dynamic, server-driven content within a BlockKit layout — dashboards, live status panels, personalized widgets, or any content that needs to come from an API.

JSON Structure

Properties

Loader Properties

Server Response Format

The endpoint must return JSON. Three formats are accepted:

Array of blocks

Wrapped with scoped replacements

Scoped replacements are merged with the parent context and only apply within the remote block’s rendered content.

Single block

Variable Substitution

The url, data values, and headers values all support {variable} substitution from the parent replacements context:

Error Handling

Auto-Refresh

Set refresh_interval to automatically re-fetch content on a timer:
With overlay: true, the existing content stays visible with a translucent spinner overlay during refresh — no content flash. Minimum interval is 5 seconds to prevent accidental high-frequency polling.

Builder

In the WYSIWYG builder:
  • Library: Drag “Remote Block” from the Layout category
  • Properties panel: Configure URL, method, data parameters (key-value editor), headers (key-value editor), refresh interval, loader settings, error behavior, cache key
  • Canvas: Shows a placeholder card (no fetch in edit mode) displaying the configured URL and method
  • Fallback editor: Toggle between “Preview Card” and “Fallback” views. The Fallback view is a full drag-and-drop editor for the fallback content blocks.
  • Preview mode: Performs the live fetch and renders the remote content

Example: Live Dashboard Widget