# Get consent statistics

**Publié le** : 2026-05-08
**Catégorie** : Settings & Config

## `GET /cookie-consent/stats`

**Get consent statistics**

Returns aggregate consent stats: acceptance rate per category,
total interactions, and opt-in/opt-out breakdown.

Required permissions: `cookie_consent.view`

### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |


### Examples

```bash
curl https://api.lynkow.com/v1/cookie-consent/stats \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "totalInteractions": 5420,
  "acceptAll": 3850,
  "rejectAll": 420,
  "custom": 1150,
  "byCategory": {
    "necessary": 5420,
    "analytics": 4200,
    "marketing": 2100
  }
}
```

---