---
title: "Count rows"
method: POST
path: "/public/v1/tables/{name}/rows/count"
tags: ["Table rows"]
---

# Count rows

`POST /public/v1/tables/{name}/rows/count`

Returns the number of rows matching the optional query.

## Path parameters

- `name` string, required

## Request body

- object
  - `query` object — Dynamic-table query. Either a single `{ path, operator, value }` condition, or a nested group `{ operator: 'and' | 'or', conditions: [...] }`.
  - `recordType` union
    - string
    - number
    - union[]
      - union
        - string
        - number
    - object, nullable

## Response `200`

Count

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

## Other responses

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

---

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