---
title: "List distinct values for a field"
method: GET
path: "/api/v1/ackdb/observe/companies/fields/{key}/values"
tags: ["ackDB"]
---

# List distinct values for a field

`GET /api/v1/ackdb/observe/companies/fields/{key}/values`

## Request

- Base URL: `http://localhost:3009`
- URL: `http://localhost:3009/api/v1/ackdb/observe/companies/fields/{key}/values`
- Auth: HTTP bearer

Returns distinct values for a pickable field, most-common first, capped at the cardinality limit: a string/string_array trait, a whitelisted system attribute (e.g. status), or a string/string_array promoted event-metadata (emf__) column. Only fields whose descriptor carries distinctValuesUrl are pickable; everything else is rejected. A twin endpoint exists per grain (/observe/contacts/fields/{key}/values). Pass ?search= to filter the values by a case-insensitive substring - required for high-cardinality fields whose match isn't in the top results (the picker's typeahead uses this).

## Path parameters

- `key` string, required

## Query parameters

- `search` string

## Response `200`

Distinct values for the field.

- object
  - `data` object, required
    - `values` string[], required
    - `cardinalityCapped` boolean, required

## Other responses

- `400`: Field value type does not support distinct-value listing.
- `404`: Unknown field key.

---

[API](https://skmtc.dev/floqer/apis/floqer-public-api.md) - [All operations](https://skmtc.dev/floqer/apis/floqer-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/floqer/apis/floqer-public-api/revisions/fce50dc07b20?raw)
