---
title: "Get review stats over different time frames"
method: POST
path: "/aggregations-metadata"
tags: ["Endpoints"]
---

# Get review stats over different time frames

`POST /aggregations-metadata`

**NB:** Access to this endpoint is available upon request. Please reach out to your respective CSMs our account executive if you will like to use this API.

You can combine a number of filters known as tags to select specific reviews you will like to collect stats on.

## Headers

- `Authorization` string, required

## Request body

- ReviewRequestDto
  - `channels` object[]
    - `id` string
  - `touchpoints` object[]
    - `id` string

## Response `200`

The stats was fetched successfully.

- ReviewResponseDto — The stats was fetched successfully.
  - `7days` object
    - `rating` integer
    - `count` integer
    - `distribution` object
      - `promoters` integer
      - `passives` integer
      - `detractors` integer
  - `30days` object
    - `rating` integer
    - `count` integer
    - `distribution` object
      - `promoters` integer
      - `passives` integer
      - `detractors` integer
  - `90days` object
    - `rating` integer
    - `count` integer
    - `distribution` object
      - `promoters` integer
      - `passives` integer
      - `detractors` integer
  - `365days` object
    - `rating` integer
    - `count` integer
    - `distribution` object
      - `promoters` integer
      - `passives` integer
      - `detractors` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/etrusted/apis/accounts-api.md) · [All operations](https://skmtc.net/etrusted/apis/accounts-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/etrusted/accounts-api/versions/649ef7dac98c/schema)
