# Count a page's records by column value

How many deals sit on each status and each stage — the counts behind the deals board's filter chips, as a column per facet with its values and totals. Empty values are left out and a facet with nothing in it is dropped, so every column that comes back has options. A column this caller's column policy hides has no facet at all. Deals page only.

Access class: `def:read`.

## Endpoint

`GET /v1/definitions/{key}/rows/facets`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "columns": [
      {
        "key": "string",
        "label": "string",
        "values": [
          "string"
        ]
      }
    ]
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
