---
title: "Count talent profiles for a staged filter tree"
method: POST
path: "/api/v1/talent/profiles/count"
tags: ["Talent::Profiles"]
---

# Count talent profiles for a staged filter tree

`POST /api/v1/talent/profiles/count`

## Request

- Base URL: `https://api.flexiple.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.flexiple.com/api/v1/talent/profiles/count`
- Auth: HTTP bearer

Prices an arbitrary staged filter tree — unsaved edits and relaxation previews included, so the tree rides in the body rather than a saved-search id. `funnel: true` adds two counts per top-level gate, all in one _msearch: `count`, how many would match with that gate dropped (leave-one-out), and `cumulative`, how many match the gates up to and including it in root order.

## Request body

- object
  - `filters` object, required
  - `funnel` boolean, nullable

## Response `200`

Count (with optional attrition funnel)

- object
  - `data` object, required
    - `count` integer, required
    - `funnel` object[], nullable
      - `index` integer, required
      - `fields` string[], required
      - `count` integer, required
      - `cumulative` integer
  - `meta` object, nullable

## Other responses

- `401`: Authentication failed

---

[API](https://skmtc.dev/flexiple/apis/flexiple-platform-api-v1.md) - [All operations](https://skmtc.dev/flexiple/apis/flexiple-platform-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/flexiple/apis/flexiple-platform-api-v1/revisions/27e7987859f2?raw)
