Send URL Params in embed apps

Hi everyone,

We are currently embedding a Retool app into our product using an iFrame.

Up until now, we have been passing parameters via User Attributes (metadata). However, we are running into issues with data persistence/sharing between sessions. We would like to switch to passing these parameters directly via URL query parameters in the embed URL (e.g. .../app?data=xyz) to keep them session-specific.

The documentation is a bit unclear on the best practice for this in an embedded context.

Could someone explain how to properly append these parameters to the signed URL and access them securely within the Retool app?

Thanks in advance!

Additional info: Self-hosted

Hi @aj.sopht,

Thanks for reaching out about this!

How are you creating the embed url? You will need to add the parameters after the url is returned from the POST request. I'm happy to take a look at your specific configuration

Retool apps have access to the global url object:

If there are params appended to the embed url, you can reference them with url.searchParams or url.hashParams.