# Embed Integry Apps Marketplace

In this guide, we will use the [Integry.JS SDK](https://docs.integry.ai/apis-and-sdks/js-sdk-reference) to enable users to connect apps and setup/run integrations with those apps from your SaaS application.

Before you proceed, please [sign up](https://app.integry.io/accounts/register/v3/signup/?product=functions) for a free trial (if you haven't).

## Set up the SDK

Follow the steps [here](https://docs.integry.ai/apis-and-sdks/js-sdk-reference#setting-up).

## Show apps

Your users need a way to discover and connect apps.

### Show Apps in the Integry marketplace

Call the [`showApps()`](https://docs.integry.ai/apis-and-sdks/js-sdk-reference#show-apps) method to easily show apps in a marketplace-style list view. You can [configure the layout](https://docs.integry.ai/embedded-ui/render-modes-layouts-and-styling) and [customize the styling](https://docs.integry.ai/embedded-ui/broken-reference).

<figure><img src="https://78037505-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQak2YXQSmpUf7kzA1VKk%2Fuploads%2Fl7zZay0qs1cdFE9RdzQI%2FScreenshot%202024-11-12%20at%208.13.04%E2%80%AFPM.png?alt=media&#x26;token=8278dfc1-3231-4675-a735-b0bcafc90061" alt="" width="375"><figcaption></figcaption></figure>

Your users will simply click an app to connect. If the app has [Flows](https://docs.integry.ai/flows), they will then be able to setup/run those flows.

### Show apps in your own marketplace

If you prefer, you can use Integry to [add more apps to an existing list](https://docs.integry.ai/embedded-ui/add-integry-apps-to-an-existing-marketplace) in your app.

## Listen to events (optional)

### Integration created

If you are going to send data from your app to another app, you will need to capture (and store) the **unique callback URL** for the user's integration so you can trigger it from your app.

Subscribe to the `integration-created` event and get the `callbackURL`. This event will fire after your user creates an integration. It will not fire if they edit an existing integration.

```javascript
integry.eventEmitter.on('integration-created', (data) => {
    console.log("Callback URL: " + data.callbackUrl);
});
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.integry.ai/embedded-ui/embed-integry-apps-marketplace.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
