> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# setCustomIntegrations()

> Sets or updates the custom integrations embedded in Daily Prebuilt.

`setCustomIntegrations(customIntegrations)`

✓ Prebuilt✗ Custom

Sets the custom integrations displayed in the Daily Prebuilt sidebar. Can be called at any time to update integration configuration.

## Parameters

**customIntegrations** `DailyCustomIntegrations` *required*

An object mapping integration IDs (arbitrary strings) to `DailyCustomIntegration` configuration objects.

**DailyCustomIntegration fields**

**allow** `string`

Usage: `allow: HTMLIFrameElement['allow']`.\
[Feature policy](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#attr-allow) for the iframe.

**controlledBy** `'*' | 'owners' | string[]` (default: '\*')

Who can start and stop this integration. `'*'` (default) allows all participants; `'owners'` restricts to meeting owners; a `string[]` of `session_id`s restricts to specific participants.

**csp** `string`

[Content Security Policy](https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) for the iframe. Check browser support before using -- [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#csp) & [here](https://caniuse.com/mdn-api_htmliframeelement_csp)

**iconURL** `string`

A publicly available URL to an icon image shown alongside the integration in the Prebuilt UI.

**label** `string` *required*

Display name shown in the Prebuilt UI for this integration.

**loading** `'lazy' | 'eager'` (default: lazy)

`'lazy'` (default) or `'eager'` — controls when the iframe is loaded.

**location** `'main' | 'sidebar'` *required*

Daily supports two different types of custom integrations:

1. Main call area integrations
2. Sidebar integrations

**name** `string`

Usage: `name: HTMLIFrameElement['name'];`

A unique [name](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#name) for the iframe.

**referrerPolicy** `string`

Usage: `referrerPolicy: HTMLIFrameElement['referrerPolicy'];`

Indicates which [referrer](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/iframe#referrerpolicy) to send when fetching the frame’s resource.

**sandbox** `string`

Usage: `sandbox: string`

A unique policy for the iframe. Applies extra restrictions to the content in the frame.

For more info see [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#sandbox).

**shared** `'owners' | string[] | boolean` (default: false)

**When configured**, it shares the integration’s state with other participants in the call:

* `true` will share with all other participants
* `false` won’t share
* `'owners'` will share with owners only
* `string[]` will share with participants with given list of session ids

When the integration is started, it will also be started for other participants with whom it is shared. When it is stopped, it will stop for all participants with whom it is shared.

**src** `string`

Usage: `src: HTMLIFrameElement['src'];`

The iframe’s source URL.

For more info see [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#src).

**srcdoc** `string`

Usage: `srcdoc: HTMLIFrameElement['srcdoc'];`

Inline HTML to render in the iframe instead of a URL.

For more info see [here](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe#srcdoc)

To see if your browser supports this, see [here](https://caniuse.com/iframe-srcdoc).

## Return value

Returns `this` for chaining.

## Examples

### Setting an integration

```javascript theme={null}
call.setCustomIntegrations({
  miroEmbed: {
    controlledBy: '*',
    iconURL: 'https://files.readme.io/17d4a23-miro-logo-color-square.png',
    label: 'Miro',
    location: 'main',
    name: 'miro',
    shared: false,
    allow: 'fullscreen; clipboard-read; clipboard-write',
    src: 'https://miro.com/app',
  },
});
```

### Restricting control to owners

Setting `controlledBy: 'owners'` means only participants who joined with an owner token can start or stop the integration. Setting `shared: true` propagates the integration's active state to all other participants who have it configured.

```javascript theme={null}
call.setCustomIntegrations({
  miroEmbed: {
    controlledBy: 'owners',
    shared: true,
    // ... other fields
  },
});
```

## See also

> [card] Types
>
> * [DailyCallOptions: customIntegrations](https://docs.daily.co/reference/daily-js/types/daily-call-options.md#param-custom-integrations)

> [card] Methods
>
> * [customIntegrations()](https://docs.daily.co/reference/daily-js/instance-methods/custom-integrations.md)
> * [startCustomIntegrations()](https://docs.daily.co/reference/daily-js/instance-methods/start-custom-integrations.md)
> * [stopCustomIntegrations()](https://docs.daily.co/reference/daily-js/instance-methods/stop-custom-integrations.md)
> * [setSidebarView()](https://docs.daily.co/reference/daily-js/instance-methods/set-sidebar-view.md)

> [card] Guides
>
> * [Custom integrations](https://docs.daily.co/docs/prebuilt/customizing-daily-prebuilt.md#custom-integrations)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.