# Create Analytics Embed

Show a page, or one of its panels, on another site, such as your own product or a partner portal. The embed starts inactive. Activate it, then Get Analytics Embed Link answers the link to put in an iframe. It shows the published page, so publish your changes before they appear.

`POST https://connect.mindcloud.co/v2/analytics/embeds`

Permissions: `analytics:page:edit`.

## Parameters

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. Here a key acts in another organization only as one of its members: with "Use this key across all of your organizations" on, in an organization its creator belongs to with a role. Child organizations and MindCloud staff access do not reach this endpoint. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

### Body

- `pageId` (string, required): The page to show, or the page holding the panel.
  The page to show, or the page holding the panel, from List Analytics Pages. A page embed takes an Analytics page or a written report.
- `panelId` (string): Only to show one panel: the panel.
  Only to show one panel instead of the whole page: the panel, from Get Analytics Page.
- `name` (string, required): Its name, as the Embedded Analytics list shows it.
  Its name, 1 to 255 characters, as the Embedded Analytics list shows it.
- `description` (string): A description, or null for none.
  A description, up to 2,000 characters, or null for none.
- `themeMode` (string): Which look it wears: inherit (the page's own), cirra, or theme (the theme in themeId).
  Which look it wears: "inherit" (The page's own look (its theme and style).), "cirra" (The plain Cirra look.), "theme" (The theme in themeId.) Sending themeId alone means "theme"; a new embed with neither wears "inherit".
  Allowed values:
    - `inherit`
    - `cirra`
    - `theme`
- `themeId` (string): For themeMode theme: the theme, from List Analytics Themes.
  For themeMode "theme": the theme, from List Analytics Themes.
- `style` (object): Its own style options over that look. It replaces the embed's style; {} clears it.
  The look, option by option. An option left out or null uses the default.
  - `fontFamily` (string): Font family. One of: "Inter, sans-serif" (Inter), ""SF Pro Display", -apple-system, sans-serif" (SF Pro Display), ""Helvetica Neue", Helvetica, sans-serif" (Helvetica Neue), "system-ui, sans-serif" (System UI), ""Segoe UI", sans-serif" (Segoe UI), "Roboto, sans-serif" (Roboto), ""Open Sans", sans-serif" (Open Sans), "Lato, sans-serif" (Lato), ""Source Sans 3", sans-serif" (Source Sans), ""IBM Plex Sans", sans-serif" (IBM Plex Sans), ""Atkinson Hyperlegible", sans-serif" (Atkinson Hyperlegible), "Georgia, "Times New Roman", serif" (Georgia), ""IBM Plex Mono", monospace" (IBM Plex Mono). null or left out uses the default.
    Allowed values:
      - `Inter, sans-serif`
      - `"SF Pro Display", -apple-system, sans-serif`
      - `"Helvetica Neue", Helvetica, sans-serif`
      - `system-ui, sans-serif`
      - `"Segoe UI", sans-serif`
      - `Roboto, sans-serif`
      - `"Open Sans", sans-serif`
      - `Lato, sans-serif`
      - `"Source Sans 3", sans-serif`
      - `"IBM Plex Sans", sans-serif`
      - `"Atkinson Hyperlegible", sans-serif`
      - `Georgia, "Times New Roman", serif`
      - `"IBM Plex Mono", monospace`
  - `fontScale` (string): Font size. One of: "0.9" (Small), "1" (Medium), "1.1" (Large), "1.25" (Extra Large). null or left out uses the default.
    Allowed values:
      - `1`
      - `0.9`
      - `1.1`
      - `1.25`
  - `panelTitleWeight` (string): Panel title weight. One of: "regular" (Regular), "medium" (Medium), "bold" (Bold). null or left out uses the default.
    Allowed values:
      - `regular`
      - `medium`
      - `bold`
  - `pageTitleSize` (string): Page title size. One of: "compact" (Compact), "regular" (Regular), "large" (Large). null or left out uses the default.
    Allowed values:
      - `compact`
      - `regular`
      - `large`
  - `seriesColors` (array of objects): Series colors: up to 8 light and dark color pairs, in the order charts hand colors out (the first is the first series).
  - `statusColors` (object): Status colors: a light and dark color pair for success (Success), warning (Warning), warningBright (Caution), failure (Failure).
    - `success` (object): Success: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
    - `warning` (object): Warning: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
    - `warningBright` (object): Caution: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
    - `failure` (object): Failure: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
  - `chartGridlines` (string): Chart gridlines. One of: "off" (Off), "dashed" (Dashed), "solid" (Solid). null or left out uses the default.
    Allowed values:
      - `off`
      - `dashed`
      - `solid`
  - `chartAreaFill` (string): Area fill. One of: "none" (None), "light" (Light), "solid" (Solid). null or left out uses the default.
    Allowed values:
      - `none`
      - `light`
      - `solid`
  - `chartCurve` (string): Line curve. One of: "straight" (Straight), "smooth" (Smooth), "natural" (Curved). null or left out uses the default.
    Allowed values:
      - `straight`
      - `smooth`
      - `natural`
  - `chartPoints` (string): Point marks. One of: "shown" (Shown), "hidden" (Hidden). null or left out uses the default.
    Allowed values:
      - `shown`
      - `hidden`
  - `chartValues` (string): Value labels. One of: "shown" (Shown), "hidden" (Hidden). null or left out uses the default.
    Allowed values:
      - `shown`
      - `hidden`
  - `chartLegend` (string): Legend. One of: "auto" (Auto), "shown" (Shown), "hidden" (Hidden). null or left out uses the default.
    Allowed values:
      - `auto`
      - `shown`
      - `hidden`
  - `numberFormat` (string): Number format. One of: "point" (1,234.56), "comma" (1.234,56), "space" (1 234,56). null or left out uses the default.
    Allowed values:
      - `point`
      - `comma`
      - `space`
  - `numberCompact` (string): Compact numbers. One of: "auto" (Auto), "always" (Always), "never" (Never). null or left out uses the default.
    Allowed values:
      - `auto`
      - `always`
      - `never`
  - `dateOrder` (string): Date order. One of: "monthFirst" (Jan 6, 2026), "dayFirst" (6 Jan 2026). null or left out uses the default.
    Allowed values:
      - `monthFirst`
      - `dayFirst`
  - `dateStyle` (string): Date style. One of: "short" (Short), "medium" (Medium), "numeric" (Numeric). null or left out uses the default.
    Allowed values:
      - `short`
      - `medium`
      - `numeric`
  - `panelCorners` (string): Panel corners. One of: "square" (Square), "rounded" (Rounded), "soft" (Soft). null or left out uses the default.
    Allowed values:
      - `square`
      - `rounded`
      - `soft`
  - `panelElevation` (string): Panel elevation. One of: "none" (None), "hairline" (Hairline), "raised" (Raised). null or left out uses the default.
    Allowed values:
      - `none`
      - `hairline`
      - `raised`
  - `panelGap` (string): Panel gap. One of: "none" (None), "tight" (Tight), "regular" (Regular), "wide" (Wide). null or left out uses the default.
    Allowed values:
      - `none`
      - `tight`
      - `regular`
      - `wide`
  - `panelPadding` (string): Panel padding. One of: "compact" (Compact), "regular" (Regular), "comfortable" (Comfortable). null or left out uses the default.
    Allowed values:
      - `compact`
      - `regular`
      - `comfortable`
  - `tableDensity` (string): Table density. One of: "compact" (Compact), "regular" (Regular), "comfortable" (Comfortable). null or left out uses the default.
    Allowed values:
      - `compact`
      - `regular`
      - `comfortable`
  - `pageBackground` (object): Page background: a light and dark color pair for page (Page).
    - `page` (object): Page: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
  - `panelFill` (object): Panel fill: a light and dark color pair for panel (Panel).
    - `panel` (object): Panel: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
  - `ink` (object): Ink: a light and dark color pair for ink (Ink).
    - `ink` (object): Ink: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
  - `lineColor` (object): Line color: a light and dark color pair for line (Line).
    - `line` (object): Line: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
  - `brandHeaderColor` (object): Publication header color: a light and dark color pair for header (Header).
    - `header` (object): Header: a light and dark color pair, or null for the default.
      - `light` (string, required): The color in light mode, as hex like #2563eb.
      - `dark` (string, required): The color in dark mode, as hex like #2563eb.
  - `cirraMark` (string): Cirra mark. One of: "shown" (Shown), "hidden" (Hidden). null or left out uses the default.
    Allowed values:
      - `shown`
      - `hidden`

## Example request

```bash
curl --request POST \
  --url 'https://connect.mindcloud.co/v2/analytics/embeds' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{
  "pageId": "Pq7Lm2Xc9RtA",
  "panelId": "Kd4Rw8Zn1VbQ",
  "name": "Revenue for partners",
  "description": "Shown in the partner portal.",
  "themeMode": "theme",
  "themeId": "Th6Np2Vx8LcQ",
  "style": {
    "panelCorners": "soft"
  }
}'
```

## Response fields

- `id` (string): The embed's id.
- `name` (string): Its name, as the Embedded Analytics list shows it.
- `description` (string): Its description. Null when it has none.
- `targetType` (string): What it shows.
  Allowed values:
    - `page`: A whole published page or written report.
    - `panel`: One panel of a published page.
- `pageId` (string): The page it shows, or the page holding its panel, from List Analytics Pages.
- `pageName` (string): That page's name.
- `panelId` (string): For a panel embed: the panel it shows. Null for a page embed.
- `panelName` (string): For a panel embed: that panel's name. Null for a page embed.
- `status` (string): Whether it shows anywhere. List Analytics Embeds leaves revoked embeds out; Get Analytics Embed answers them.
  Allowed values:
    - `inactive`: Not shown anywhere. A new embed starts here; Activate Analytics Embed turns it on.
    - `active`: Shown wherever its link is installed, to anyone who has the link, without signing in.
    - `revoked`: Turned off for good. Its link never works again; create a new embed to show the content again.
- `themeMode` (string): Which look it wears.
  Allowed values:
    - `inherit`: The page's own look (its theme and style).
    - `cirra`: The plain Cirra look.
    - `theme`: The theme in themeId.
- `themeId` (string): For themeMode theme: the theme, from List Analytics Themes. Null otherwise.
- `style` (object): Its own style options over that look. Empty uses the look as it is.
  - `fontFamily` (string): Font family. One of: "Inter, sans-serif" (Inter), ""SF Pro Display", -apple-system, sans-serif" (SF Pro Display), ""Helvetica Neue", Helvetica, sans-serif" (Helvetica Neue), "system-ui, sans-serif" (System UI), ""Segoe UI", sans-serif" (Segoe UI), "Roboto, sans-serif" (Roboto), ""Open Sans", sans-serif" (Open Sans), "Lato, sans-serif" (Lato), ""Source Sans 3", sans-serif" (Source Sans), ""IBM Plex Sans", sans-serif" (IBM Plex Sans), ""Atkinson Hyperlegible", sans-serif" (Atkinson Hyperlegible), "Georgia, "Times New Roman", serif" (Georgia), ""IBM Plex Mono", monospace" (IBM Plex Mono). Absent when the default is used.
    Allowed values:
      - `Inter, sans-serif`
      - `"SF Pro Display", -apple-system, sans-serif`
      - `"Helvetica Neue", Helvetica, sans-serif`
      - `system-ui, sans-serif`
      - `"Segoe UI", sans-serif`
      - `Roboto, sans-serif`
      - `"Open Sans", sans-serif`
      - `Lato, sans-serif`
      - `"Source Sans 3", sans-serif`
      - `"IBM Plex Sans", sans-serif`
      - `"Atkinson Hyperlegible", sans-serif`
      - `Georgia, "Times New Roman", serif`
      - `"IBM Plex Mono", monospace`
  - `fontScale` (string): Font size. One of: "0.9" (Small), "1" (Medium), "1.1" (Large), "1.25" (Extra Large). Absent when the default is used.
    Allowed values:
      - `0.9`
      - `1`
      - `1.1`
      - `1.25`
  - `panelTitleWeight` (string): Panel title weight. One of: "regular" (Regular), "medium" (Medium), "bold" (Bold). Absent when the default is used.
    Allowed values:
      - `regular`
      - `medium`
      - `bold`
  - `pageTitleSize` (string): Page title size. One of: "compact" (Compact), "regular" (Regular), "large" (Large). Absent when the default is used.
    Allowed values:
      - `compact`
      - `regular`
      - `large`
  - `seriesColors` (array): Series colors: light and dark color pairs in the order charts hand colors out; a null entry uses that slot's default. Absent when the defaults are used.
    - `light` (string): The color in light mode, as hex.
    - `dark` (string): The color in dark mode, as hex.
  - `statusColors` (object): Status colors, a light and dark color pair per entry. Absent when the defaults are used.
    - `success` (object): Success, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
    - `warning` (object): Warning, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
    - `warningBright` (object): Caution, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
    - `failure` (object): Failure, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
  - `chartGridlines` (string): Chart gridlines. One of: "off" (Off), "dashed" (Dashed), "solid" (Solid). Absent when the default is used.
    Allowed values:
      - `off`
      - `dashed`
      - `solid`
  - `chartAreaFill` (string): Area fill. One of: "none" (None), "light" (Light), "solid" (Solid). Absent when the default is used.
    Allowed values:
      - `none`
      - `light`
      - `solid`
  - `chartCurve` (string): Line curve. One of: "straight" (Straight), "smooth" (Smooth), "natural" (Curved). Absent when the default is used.
    Allowed values:
      - `straight`
      - `smooth`
      - `natural`
  - `chartPoints` (string): Point marks. One of: "shown" (Shown), "hidden" (Hidden). Absent when the default is used.
    Allowed values:
      - `shown`
      - `hidden`
  - `chartValues` (string): Value labels. One of: "shown" (Shown), "hidden" (Hidden). Absent when the default is used.
    Allowed values:
      - `shown`
      - `hidden`
  - `chartLegend` (string): Legend. One of: "auto" (Auto), "shown" (Shown), "hidden" (Hidden). Absent when the default is used.
    Allowed values:
      - `auto`
      - `shown`
      - `hidden`
  - `numberFormat` (string): Number format. One of: "point" (1,234.56), "comma" (1.234,56), "space" (1 234,56). Absent when the default is used.
    Allowed values:
      - `point`
      - `comma`
      - `space`
  - `numberCompact` (string): Compact numbers. One of: "auto" (Auto), "always" (Always), "never" (Never). Absent when the default is used.
    Allowed values:
      - `auto`
      - `always`
      - `never`
  - `dateOrder` (string): Date order. One of: "monthFirst" (Jan 6, 2026), "dayFirst" (6 Jan 2026). Absent when the default is used.
    Allowed values:
      - `monthFirst`
      - `dayFirst`
  - `dateStyle` (string): Date style. One of: "short" (Short), "medium" (Medium), "numeric" (Numeric). Absent when the default is used.
    Allowed values:
      - `short`
      - `medium`
      - `numeric`
  - `panelCorners` (string): Panel corners. One of: "square" (Square), "rounded" (Rounded), "soft" (Soft). Absent when the default is used.
    Allowed values:
      - `square`
      - `rounded`
      - `soft`
  - `panelElevation` (string): Panel elevation. One of: "none" (None), "hairline" (Hairline), "raised" (Raised). Absent when the default is used.
    Allowed values:
      - `none`
      - `hairline`
      - `raised`
  - `panelGap` (string): Panel gap. One of: "none" (None), "tight" (Tight), "regular" (Regular), "wide" (Wide). Absent when the default is used.
    Allowed values:
      - `none`
      - `tight`
      - `regular`
      - `wide`
  - `panelPadding` (string): Panel padding. One of: "compact" (Compact), "regular" (Regular), "comfortable" (Comfortable). Absent when the default is used.
    Allowed values:
      - `compact`
      - `regular`
      - `comfortable`
  - `tableDensity` (string): Table density. One of: "compact" (Compact), "regular" (Regular), "comfortable" (Comfortable). Absent when the default is used.
    Allowed values:
      - `compact`
      - `regular`
      - `comfortable`
  - `pageBackground` (object): Page background, a light and dark color pair per entry. Absent when the defaults are used.
    - `page` (object): Page, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
  - `panelFill` (object): Panel fill, a light and dark color pair per entry. Absent when the defaults are used.
    - `panel` (object): Panel, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
  - `ink` (object): Ink, a light and dark color pair per entry. Absent when the defaults are used.
    - `ink` (object): Ink, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
  - `lineColor` (object): Line color, a light and dark color pair per entry. Absent when the defaults are used.
    - `line` (object): Line, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
  - `brandHeaderColor` (object): Publication header color, a light and dark color pair per entry. Absent when the defaults are used.
    - `header` (object): Header, or null for the default.
      - `light` (string): The color in light mode, as hex.
      - `dark` (string): The color in dark mode, as hex.
  - `cirraMark` (string): Cirra mark. One of: "shown" (Shown), "hidden" (Hidden). Absent when the default is used.
    Allowed values:
      - `shown`
      - `hidden`
- `viewsLast30Days` (number): How many times it was viewed in the last 30 days.
- `lastViewedOn` (date): When it was last viewed. Null when it never was.
- `origins` (array of objects): The sites it was viewed on most in the last 30 days, up to 20, with views from each, most viewed first.
  - `origin` (string): The site it was viewed on, as its origin (https://app.example.com), or "unknown" when the browser did not say.
  - `views` (number): Views from that site in the last 30 days.
- `activatedOn` (date): When it was turned on. Null while it is inactive or revoked.
- `revokedOn` (date): When it was revoked. Null unless it was.
- `createdOn` (date): When it was created.
- `updatedOn` (date): When it last changed.
