> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Migrate from the IFrame SDK

## Article: Migrate from the IFrame SDK

## Article Link: https://dev.wix.com/docs/api-reference/articles/sdk-setup-and-usage/migrate-from-the-iframe-sdk.md

## Article Content:

# Migrate from the IFrame SDK

As of March 2024, the [Wix IFrame SDK](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/using-the-sdk.md) is deprecated and closed to new developers. You can access the functionality of the IFrame SDK using the Wix JavaScript SDK and other Wix APIs. The following tables map popular methods from the IFrame SDK to their alternatives.

## Wix Dashboard

This table maps the functions from the [Wix.Dashboard](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md) IFrame SDK. All the alternative functions are from the Wix JavaScript SDK unless otherwise noted. Many of the alternative functions in this table are from the [Dashboard SDK](https://dev.wix.com/docs/sdk/host-modules/dashboard/introduction.md).

| IFrame SDK                                                                                                                              | Alternative                                                                                                                                                                                                                                                                                                                             |
| :-------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`closeWindow()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#closewindow)             | [`closeModal()`](https://dev.wix.com/docs/sdk/host-modules/dashboard/close-modal.md)                                                                                                                                                                                                                                                       |
| [`getEditorUrl()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#geteditorurl)           | [`getEditorUrls()`](https://dev.wix.com/docs/sdk/backend-modules/urls/editor/get-editor-urls.md)                                                                                                                                                                                                                                           |
| [`openBillingPage()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#openbillingpage)     | App Billing [Get Url](https://dev.wix.com/docs/rest/app-management/app-billing/billing/get-url.md) API. This is a REST API that requires configuration in the Wix app dashboard. Learn more about [setting up an external pricing page](https://dev.wix.com/docs/build-apps/launch-your-app/pricing-and-billing/set-up-an-external-pricing-page.md). |
| [`openModal()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#openmodal)                 | [`openModal()`](https://dev.wix.com/docs/sdk/host-modules/dashboard/open-modal.md)                                                                                                                                                                                                                                                         |
| [`openMediaDialog()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#openmediadialog)     | [`openMediaManager()`](https://dev.wix.com/docs/sdk/host-modules/dashboard/open-media-manager.md)                                                                                                                                                                                                                                          |
| [`pushState()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#pushstate)                 | Use the `relativeUrl` parameter for [`navigate()`](https://dev.wix.com/docs/sdk/host-modules/dashboard/navigate.md) to append segments to a page's URL.                                                                                                                                                                                    |
| [`revalidateSession()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#revalidatesession) | This functionality isn't relevant in the JavaScript SDK.                                                                                                                                                                                                                                                                                |
| [`setHeight()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#setheight-height)          | This functionality isn't relevant for apps using the JavaScript SDK. IFrame heights are set automatically.                                                                                                                                                                                                                              |
| [`getSiteViewUrl()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#getsiteviewurl)       | [`listPublishedSiteUrls()`](https://dev.wix.com/docs/sdk/backend-modules/urls/site/list-published-site-urls.md)                                                                                                                                                                                                                            |

<!-- TODO - Add these lines back in when the appropriate functions are published.
| [`getProducts()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-dashboard.md#getproducts)| Docs in progress |

-->

## Wix Utils

This table maps the methods from the [Wix.Utils](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md) IFrame SDK. All the alternative methods are from the Wix JavaScript SDK. Many of the alternative methods in this table are from the core [SDK module](https://dev.wix.com/docs/sdk/core-modules/sdk/introduction.md).

| IFrame method                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Alternative                                                                                                                                                                                                                                                                                                                                                                                                                 |
| :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`getInstanceId()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#getinstanceid), [`getUid()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#getuid), [`getSiteOwnerId()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#getsiteownerid), [`getSignDate()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#getsigndate) | Replacements for these functions aren't available yet. During a live IFrame session, the app instance data is available in the `instance` query parameter in the browser's URL. You can decrypt it to retrieve `instanceId`, `uid`, `signDate`, and `siteOwnerId`. Learn more about [parsing app instance data](https://dev.wix.com/docs/build-apps/develop-your-app/auth/app-instances/about-app-instances.md). |
| [`Media.getAudioUrl()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#mediagetaudiourl)                                                                                                                                                                                                                                                                                                                                                                 | [`getAudioUrl()`](https://dev.wix.com/docs/sdk/core-modules/sdk/media.md#getaudiourl)                                                                                                                                                                                                                                                                                                                                          |
| [`Media.getDocumentUrl()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#mediagetdocumenturl)                                                                                                                                                                                                                                                                                                                                                           | [`getDocumentUrl()`](https://dev.wix.com/docs/sdk/core-modules/sdk/media.md#getdocumenturl)                                                                                                                                                                                                                                                                                                                                    |
| [`Media.getImageUrl()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#mediagetimageurl)                                                                                                                                                                                                                                                                                                                                                                 | [`getImageUrl()`](https://dev.wix.com/docs/sdk/core-modules/sdk/media.md#getimageurl)                                                                                                                                                                                                                                                                                                                                          |
| [`Media.getResizedImageUrl()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#mediagetresizedimageurl)                                                                                                                                                                                                                                                                                                                                                   | Use [`getScaledToFillImageUrl()`](https://dev.wix.com/docs/sdk/core-modules/sdk/media.md#getscaledtofillimageurl), [`getScaledToFitImageUrl()`](https://dev.wix.com/docs/sdk/core-modules/sdk/media.md#getscaledtofitimageurl), and [`getCroppedImageUrl()`](https://dev.wix.com/docs/sdk/core-modules/sdk/media.md#getcroppedimageurl) as needed.                                                                                   |
| [`Media.getSwfUrl()`](https://dev.wix.com/docs/client/api-reference/deprecated/iframe-sdk-deprecated/wix-utils.md#mediagetswfurl)                                                                                                                                                                                                                                                                                                                                                                     | [`getVideoUrl()`](https://dev.wix.com/docs/sdk/core-modules/sdk/media.md#getvideourl)                                                                                                                                                                                                                                                                                                                                          |