---
title: "POST /statistic/_retentions"
method: POST
path: "/statistic/_retentions"
tags: ["statistic"]
---

# POST /statistic/_retentions

`POST /statistic/_retentions`

Returns data based upon filtered json

## Request body

- StatisticSearchObject
  - `param` object
    - `bfrom` integer
    - `limit` integer
    - `precision` integer
    - `search` object
      - `database` string
    - `total` boolean
  - `timestamp` object
    - `from` integer
    - `to` integer

## Response `200`

StatisticRetentions

- StatisticRetentions
  - `data` object
    - `Results` object[]
      - `Messages` object
      - `Series` object[]
        - `columns` string[]
        - `values` array[]
          - object[]
  - `status` string
  - `total` integer

## Other responses

- `400` — UserLoginFailureResponse

## Changes

- **2026-07-17** `2f261ecc6074` — 1 info
  - the security scope `[]` was added to the endpoint's security scheme `bearer`
- **2021-11-03** `8b089db7394c` — 1 info
  - the security scope `[]` was added to the endpoint's security scheme `bearer`
- **2021-11-03** `31e15898198d` — 1 info
  - the security scope `[]` was added to the endpoint's security scheme `bearer`
- **2021-10-19** `2ab28454b40f` — 1 info
  - the security scope `[]` was added to the endpoint's security scheme `bearer`
- **2021-10-13** `b1f82f1cf2a3` — 1 info
  - the security scope `[]` was added to the endpoint's security scheme `bearer`

[Full history](https://skmtc.dev/sipcapture/apis/homer-app/changes/statistic/_retentions/post.md)

---

[API](https://skmtc.dev/sipcapture/apis/homer-app.md) · [All operations](https://skmtc.dev/sipcapture/apis/homer-app/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sipcapture/homer-app/revisions/2f261ecc6074/schema)
