---
title: "Compute aggregations"
method: POST
path: "/public/v1/objects/{name}/views/{viewId}/aggregations/compute"
tags: ["Object aggregations"]
---

# Compute aggregations

`POST /public/v1/objects/{name}/views/{viewId}/aggregations/compute`

Computes the configured aggregations for the rows matching the query.

## Path parameters

- `name` string, required
- `viewId` integer, required

## Request body

- object
  - `query` object — Query + search + sort + filters for the aggregation compute call.
  - `search` string, nullable
  - `recordType` union
    - string
    - number
    - union[]
      - union
        - string
        - number
    - object, nullable
  - `columnId` integer

## Response `200`

Aggregation results

- object
  - `ok` true, required
  - `data` object, required

## Other responses

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

---

[API](https://skmtc.dev/getfrontline/apis/public-api.md) · [All operations](https://skmtc.dev/getfrontline/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/getfrontline/public-api/revisions/9d33b6aad674/schema)
