> ## Documentation Index
> Fetch the complete documentation index at: https://developer.folk.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Dashboards

A dashboard is a set of charts on the records of a [group](https://developer.folk.app/core-concepts/groups.md): how many people are at each stage, the total amount of the deals won, the share of leads that converted. It is the API equivalent of the dashboards of the app: a dashboard created through the API opens in the app like one created there, and the other way round.

> [!NOTE]
>
> The dashboard endpoints are in beta. Through the API, you can
> [list](https://developer.folk.app/api-reference/dashboards/list-dashboards.md),
> [get](https://developer.folk.app/api-reference/dashboards/get-a-dashboard.md),
> [create](https://developer.folk.app/api-reference/dashboards/create-a-dashboard.md),
> [update](https://developer.folk.app/api-reference/dashboards/update-a-dashboard.md) and
> [delete](https://developer.folk.app/api-reference/dashboards/delete-a-dashboard.md) dashboards, and
> [get](https://developer.folk.app/api-reference/dashboards/get-a-chart.md),
> [create](https://developer.folk.app/api-reference/dashboards/create-a-chart.md),
> [update](https://developer.folk.app/api-reference/dashboards/update-a-chart.md) and
> [delete](https://developer.folk.app/api-reference/dashboards/delete-a-chart.md) charts. The
> [MCP](https://developer.folk.app/mcp/tools.md#dashboards) does the same, except deleting.

Dashboards are available on the Premium and Enterprise plans. On other plans, every dashboard endpoint returns a `402` with the code `DASHBOARDS_NOT_AVAILABLE`.

Reading the dashboards of a group requires access to the group. Creating, updating or deleting a dashboard or a chart requires the `contributor` or `admin` role on the group: a `reader` gets a `403`.

## Dashboards and charts

A dashboard belongs to one group and covers one **entity type** of it, given by `entityType`:

* `person`: the people of the group;
* `company`: the companies of the group;
* the name of an object type of the group, such as `Deals`: the objects of that type. See [Custom objects](https://developer.folk.app/core-concepts/custom-objects.md).

The group and the entity type of a dashboard never change, and a chart never moves to another dashboard. A dashboard holds at most 100 charts, returned in display order.

Getting a dashboard returns every chart with its data: there is no need to get the charts one by one.

## Chart settings

### Type

`type` sets how the chart draws its numbers, and which fields it is split by:

| Type | Draws | `groupBy` | `breakdownBy` |
| - | - | - | - |
| `metric` | A single number. | — | — |
| `bar`, `pie` | One bar or slice per value of a field. | ✓ | — |
| `stackedBar`, `groupedBar` | One bar per value of a field, split by a second field. | ✓ | ✓ |

A split the type doesn't have is `null`.

### Measure

`measure` sets what each number of the chart is, with `aggregation`:

* `count`: the number of records or, with a `field`, the number of records with a value in that field;
* `sum` and `average`: the sum or the average of a number field;
* `ratio`: the share of the records with a `choice` of a select field, among the records with a value in that field. Only `metric` charts have ratios.

```json theme={null}
{ "aggregation": "ratio", "field": "customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status", "choice": "Closed-won" }
```

### Group-by and breakdown-by

`groupBy` and `breakdownBy` each name one field: `{ "field": "customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status" }`. Dates are grouped by month only, and their rows are labelled `YYYY-MM`.

### Filter

`filter` restricts the chart to the records that match it, `null` for no filter. It has the format of the [filter of a view](https://developer.folk.app/core-concepts/views.md#filter): see [Filtering](https://developer.folk.app/api-reference/filtering.md#filters-of-views).

## Chart status

A chart returns its `status`:

* `working`: the chart is computed, and `data` holds its numbers;
* `notConfigured`: a field or a choice was never chosen, as on a chart left half set up in the app;
* `broken`: a field or a choice it uses was deleted, or a setting doesn't fit its type;
* `error`: the chart couldn't be computed, for instance because it uses a field the API doesn't expose.

Only a `working` chart has data. Any other status comes with `problem`, which says why, and `data: null`. A chart that isn't working doesn't prevent the other charts of the dashboard from being returned with their data.

```json Broken chart theme={null}
{
  "id": "cht_1f2e3d4c-5b6a-4978-8a6b-5c4d3e2f1a0b",
  "dashboardId": "dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e",
  "name": "Leads by source",
  "type": "bar",
  "measure": { "aggregation": "count" },
  "groupBy": { "field": null },
  "breakdownBy": null,
  "filter": null,
  "includeEmptyValues": true,
  "status": "broken",
  "problem": "The field used to group by has been deleted.",
  "data": null,
  "createdAt": "2026-11-05T14:30:00.000Z",
  "updatedAt": "2026-11-12T10:05:19.000Z"
}
```

## Reading chart data

A `metric` chart returns a single `value`. A chart with a group-by returns `rows`, one per value of the group-by field, or per pair of values with a breakdown-by, with the `value` and the `recordCount` of the row:

```json Pie chart theme={null}
{
  "id": "cht_5d6c1a8e-2b7f-4e3a-9c1d-8f0e7a6b5c4d",
  "dashboardId": "dsh_3a1f9e2b-7c4d-4b8a-a6e5-1d2c3b4a5f6e",
  "name": "Leads by status",
  "type": "pie",
  "measure": { "aggregation": "count" },
  "groupBy": { "field": "customFieldValues.grp_92ab3f1c-0386-434d-82d7-a91eb6badd71.Status" },
  "breakdownBy": null,
  "filter": null,
  "includeEmptyValues": true,
  "status": "working",
  "problem": null,
  "data": {
    "recordCount": 10,
    "overallValue": 10,
    "rowsOverlap": false,
    "rows": [
      { "group": "Lead", "value": 2, "recordCount": 2 },
      { "group": "Follow-up", "value": 2, "recordCount": 2 },
      { "group": "Closed-won", "value": 2, "recordCount": 2 },
      { "group": "Closed-lost", "value": 2, "recordCount": 2 },
      { "group": "Qualified", "value": 1, "recordCount": 1 },
      { "group": null, "value": 1, "recordCount": 1 }
    ]
  },
  "createdAt": "2026-11-03T09:12:44.000Z",
  "updatedAt": "2026-11-10T16:40:02.000Z"
}
```

A few rules hold for every chart:

* **"No value" is always returned.** The row with `group: null` holds the records with nothing in the field, with `recordCount: 0` when every record has a value. `includeEmptyValues` only tells whether the app shows it.
* **A ratio only counts the records with a value.** It comes with `matching`, the records with the choice, and `outOf`, the records with a value in the field: `value` is `matching / outOf`, and `outOf` can be lower than `recordCount`.
* **A record can be in several rows.** When the group-by or the breakdown-by field can hold several values, such as a multiple select or a user field, `rowsOverlap` is `true` and the rows add up to more than `recordCount`.
* **Nothing to compute is `null`, not `0`.** An average over no value, or a ratio over no record with a value, returns `value: null`.

`overallValue` is the measure computed over all the records of the chart, ignoring the splits. It is not always the sum of the rows: an average isn't, and neither is a chart whose rows overlap.

## Creating and updating

A dashboard is created with a `groupId`, a `name`, an `entityType` and, optionally, its `charts`, in display order. Unlike in the app, a dashboard created through the API gets no default chart: it holds only the charts sent.

A chart is added at the end of its dashboard. Its position and its display options get the defaults of the app, and can't be changed through the API.

A chart must be working once created or updated: every field and choice it names must exist, and be of a kind its type and its measure can use. A chart that wouldn't be working is rejected with a `422`. When creating a dashboard, one such chart rejects the whole dashboard, and nothing is created.

An update of a chart changes only the settings it sends. `measure` and `filter` replace the current value as a whole: to add a condition, send back every current condition with the new one. A dashboard update only renames it.

## When a field or a choice is deleted

Deleting a custom field of the group, or a choice of a select field, breaks the charts that use it in their measure, their group-by, their breakdown-by or their filter: their status becomes `broken`, and the deleted field or choice reads `null` in the measure and the splits. Update the chart with another field or choice to make it work again.

## Fields of a chart

The measure, the group-by, the breakdown-by and the filter of a chart use the field keys of the [filter of a view](https://developer.folk.app/core-concepts/views.md#fields-of-a-view). Not every field can be used in all of them. The tables below list where each field can be used.

### Dashboards of people

| Field | Group-by and breakdown-by | Filter |
| - | - | - |
| `addedToGroupAt` | ✓ | — |
| `createdAt` | ✓ | ✓ |
| `createdBy` | ✓ | ✓ |
| `interactionMetadata.workspace.lastInteractedAt` | — | ✓ |

### Dashboards of companies

| Field | Group-by and breakdown-by | Filter |
| - | - | - |
| `addedToGroupAt` | ✓ | — |
| `createdAt` | ✓ | ✓ |
| `createdBy` | ✓ | ✓ |
| `name` | — | ✓ |

### Dashboards of objects

| Field | Group-by and breakdown-by | Filter |
| - | - | - |
| `createdAt` | ✓ | ✓ |
| `createdBy` | ✓ | ✓ |
| `name` | — | ✓ |

### Custom fields

| Use | Custom field types |
| - | - |
| `count` measure | `numericField`, `singleSelect`, `multipleSelect` |
| `sum` measure | `numericField` |
| `average` measure | `numericField` |
| `ratio` measure | `singleSelect`, `multipleSelect` |
| Group-by and breakdown-by | `multipleSelect`, `userField`, `singleSelect`, `dateField`, `numericField` |
| Filter | All |

The custom fields of the dashboard are identified by their name: `customFieldValues.<groupId>.<Field name>` on dashboards of people and companies, where `<groupId>` is the ID of the group, and `customFieldValues.<Field name>` on dashboards of objects. Native fields are never measured. A date is split by month, and its rows are labelled `YYYY-MM`.

> [card] [Filtering](https://developer.folk.app/api-reference/filtering.md)
>
> Read more about operators and value formats&#x20;


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.