# Get Analytics Embed Link

Get the link to install an active embed: put url in an iframe on your site. Anyone who has the link can view the content without signing in, so render it only for the people meant to see it, and keep it out of logs. The link stays the same until the embed is deactivated, revoked or its link rotated.

`GET https://connect.mindcloud.co/v2/analytics/embeds/:embedId/link`

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 GET \
  --url 'https://connect.mindcloud.co/v2/analytics/embeds/Em4Tx8Qp2LnV/link' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `embedId` (string): The embed's id.
- `url` (string): The link to show it: put it in an iframe src. Anyone who has it sees the content without signing in.
- `token` (string): The secret in the link, after #token=. It works until the embed is deactivated, revoked or its link rotated. Keep it out of logs and URLs you share.
