# Activate Analytics Embed

Turn an embed on, then get its link with Get Analytics Embed Link. Anyone who has the link can view the content without signing in, so share it only where that is meant. Turning an embed off and on again gives it a new link, so replace it wherever it is installed.

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

Permissions: `analytics:page:edit`.

## Parameters

### Path

- `embedId` (string, required): The embed id, from List Analytics Embeds.

### 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).

## Example request

```bash
curl --request POST \
  --url 'https://connect.mindcloud.co/v2/analytics/embeds/Em4Tx8Qp2LnV/activate' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

## 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.
