# Get a shared dashboard

> Read the layout of a dashboard shared by public link, with its widgets, saved date range and link expiry, using only the link's token.

Returns what's needed to lay out a dashboard that has been shared by public link: its name, its saved date range, and the position, type and title of each widget. It doesn't return any numbers. Fetch each widget's data with [Get shared widget data](https://docs.bloxlytics.app/api/public/shared-dashboard-widget).

This is what the page at `https://dash.bloxlytics.app/share/<token>` calls. No sign-in is needed: the token is the credential. Widget settings (metrics, queries, segments, filters) stay private; only the layout is returned.

The endpoint is on the dashboard host: `https://dash.bloxlytics.app`. Browsers can only call it from that origin (see [CORS](https://docs.bloxlytics.app/api#browsers-and-cors)); scripts and server-side code can call it from anywhere.

## Path parameters

- `token` (string, path, required): The token from the share link: the part after `/share/`. Links made in Bloxlytics have 32 characters from `A–Z a–z 0–9 - _`. A token that isn't 16 to 128 of those characters returns `404` without being looked up.

## Response

`200 OK`. Each successful request counts as a view of the link: its view count and last-viewed time are shown in the dashboard's sharing dialog.

The response carries `Cache-Control: no-store` and `X-Robots-Tag: noindex`, so it isn't cached or indexed.

- `dashboard` (object, required): The shared dashboard.  **dashboard**
  
  - `name` (string, required): The dashboard's name.
  
  - `description` (string | null, required): Its description, or `null`.
  
  - `filters` (object, required): The dashboard-wide filters saved on it. Viewers can change the date range, but not the segment or player filters.  **filters**
    
    - `range` (string | null, required): The saved date range: `today`, `yesterday`, `7d`, `30d`, `90d`, `365d` or `custom`. `null` when the dashboard has none, so each widget uses its own.
    
    - `from` (string | null, required): The start date of a `custom` range, as saved. Otherwise `null`.
    
    - `to` (string | null, required): The end date of a `custom` range, as saved. Otherwise `null`.
    
    - `hasSegment` (boolean, required): `true` when the dashboard is filtered to a player segment. The segment itself isn't revealed.
    
    - `playerFilters` (integer, required): How many player filters the dashboard applies. The filters themselves aren't revealed.
  
  - `updatedAt` (string, required): When the dashboard was last changed, as an ISO 8601 timestamp.
  
  - `widgets` (Widget[], required): Every widget, sorted top to bottom and then left to right.  **Widget**
    
    - `id` (string, required): The widget's id, up to 64 characters. Use it to fetch the widget's data.
    
    - `type` (string, required): One of `kpi`, `line`, `bar`, `query`, `pie`, `table`, `funnel`, `retention`, `economy`, `live`, `event` or `text`.
    
    - `title` (string, required): The widget's title, up to 80 characters.
    
    - `x` (integer, required): Column of the left edge on a 12-column grid, from 0 to 11.
    
    - `y` (integer, required): Row of the top edge, from 0.
    
    - `w` (integer, required): Width in columns, from 1 to 12.
    
    - `h` (integer, required): Height in rows, from 1 to 20.
    
    - `refreshSeconds` (integer | null, required): How often the widget refreshes itself, in seconds (`0` means never), or `null` when it has no setting of its own. The shared page refreshes `live` widgets every 15 seconds when this is `null`.

- `project` (object, required): **project**
  
  - `name` (string, required): The name of the project the dashboard belongs to.

- `expiresAt` (string | null, required): When the link stops working, as an ISO 8601 timestamp, or `null` if it never expires.

## When a link stops working

Every failure is `404`, so a link that's been taken down looks the same as one that never existed:

| Cause | Message |
| --- | --- |
| The token is malformed or unknown | `This link doesn't exist or has been revoked.` |
| The link was revoked | `This link doesn't exist or has been revoked.` |
| The dashboard was made private, or deleted | `This link doesn't exist or has been revoked.` |
| The link's expiry has passed | `This link has expired. Ask the person who shared it for a new one.` |

## Limits

60 requests a minute per IP address. Responses carry `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`; over the limit you get `429` with `Retry-After`. See [Errors](https://docs.bloxlytics.app/api/errors#429-too-many-requests).

**Request example**

```bash cURL
curl https://dash.bloxlytics.app/api/public/dashboards/<token>
```

**Response example**

```json 200
{
  "dashboard": {
    "name": "Weekly health",
    "description": "Players, revenue and retention for the team.",
    "filters": { "range": "30d", "from": null, "to": null, "hasSegment": false, "playerFilters": 0 },
    "updatedAt": "2026-11-20T09:14:02.511Z",
    "widgets": [
      { "id": "w1", "type": "kpi", "title": "Daily active players", "x": 0, "y": 0, "w": 3, "h": 2, "refreshSeconds": null },
      { "id": "w2", "type": "live", "title": "Playing now", "x": 3, "y": 0, "w": 3, "h": 2, "refreshSeconds": null },
      { "id": "w3", "type": "retention", "title": "Retention", "x": 0, "y": 2, "w": 12, "h": 5, "refreshSeconds": null }
    ]
  },
  "project": { "name": "<experience name>" },
  "expiresAt": "2026-12-20T09:15:40.003Z"
}
```

```json 404
{ "error": { "code": "not_found", "message": "This link doesn't exist or has been revoked." } }
```

```json 404 expired
{ "error": { "code": "not_found", "message": "This link has expired. Ask the person who shared it for a new one." } }
```
