CommunityHire an ExpertSign Up
Page and Block SettingsPage and Block Embed
Page and Block Settings

Page and Block Embed

Embedding Softr content on an external source.

Softr allows you to embed any block or page on third-party site. Let’s see how that works.

Block embed

The Block Embed option is located at the bottom of the Features tab in block settings. Using this feature, you can embed the block on another website. Just copy the block code snippet and paste it wherever needed.

Getting the block embed code

Page embed

You can embed any Softr page on an external website using the following code:

javascript
<iframe id="softr-we-erw45hrubuyt23" src="https://example.softr.app/page1" width="100%" height="1000" scrolling="no" frameborder="0" style="border:none;"></iframe>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.2.11/iframeResizer.min.js"></script>
<script> iFrameResize({ checkOrigin: false, log: true }, '#softr-we-erw45hrubuyt23');</script>

Adjust the code:

  1. Replace example.softr.app under src with your app’s Softr subdomain or your custom domain if you’ve connected one. Add the page path you would like to embed e.g. my_softr_domain.com/page1. If you want to embed the Home page, no page path is needed.

  2. Inside the value of id (“softr-we-erw45hrubuyt23” in the above code), replace the part that comes after softr- with the actual ID of your page, which is the last component of the page’s URL when it’s open in the Softr Studio (see below).

Locating the page ID

Locating the page ID

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.