# GET /api/v1/public/dashboards/{token}

> Public dashboard viewer (unauthenticated)

- **Tag:** dashboards-public
- **Operation ID:** `fetch_public_dashboard_api_v1_public_dashboards__token__get`

## Description

Resolve a share token to a read-only, redacted dashboard. Returns 404 for unknown, expired, revoked, or deleted targets — the four are indistinguishable on purpose. Rate-limited per IP and cached for 60 seconds; the payload reflects each widget's stored snapshot, so it is exactly as fresh as the dashboard itself.

## Authentication

Bearer token in `Authorization` header.
Required header: `x-business-id: <business uuid>`.

## Parameters

- `token` (path, string, required)

## Responses

### 200 — Successful Response

Schema: `SuccessEnvelope_PublicDashboardResponse_`

- `success` (boolean)
- `message` (string)
- `code` (string)
- `data` (PublicDashboardResponse)

### 404 — Not Found - Resource does not exist

### 422 — Validation Error

Schema: `HTTPValidationError`

- `detail` (array · ValidationError) → `ValidationError`
  - `loc` (array · string | integer · required)
  - `msg` (string · required)
  - `type` (string · required)
  - `input` (object)
  - `ctx` (object)

### 429 — Too Many Requests - Rate limit exceeded

## Code samples

### cURL

```bash
curl -X GET 'https://api.ondayzero.com/api/v1/public/dashboards/{token}' \
  -H 'Authorization: Bearer dz_your_token' \
  -H 'x-business-id: YOUR_BUSINESS_ID'
```

### JavaScript

```javascript
const response = await fetch('https://api.ondayzero.com/api/v1/public/dashboards/{token}', {
  method: 'GET',
  headers: {
    Authorization: 'Bearer dz_your_token',
    'x-business-id': 'YOUR_BUSINESS_ID',
  },
});
const data = await response.json();
```

### Python

```python
import httpx

headers = {
    "Authorization": "Bearer dz_your_token",
    "x-business-id": "YOUR_BUSINESS_ID",
}

response = httpx.get("https://api.ondayzero.com/api/v1/public/dashboards/{token}", headers=headers)
data = response.json()
```

## See also

- HTML version: https://www.ondayzero.com/docs/reference/dashboards-public/fetch-public-dashboard
- OpenAPI slice: https://www.ondayzero.com/docs/reference/dashboards-public/fetch-public-dashboard/openapi.json
- Other endpoints in **dashboards-public**: https://www.ondayzero.com/docs/reference/dashboards-public
