Field Values
List distinct values for a field across documents with counts. Useful for building filter dropdowns and faceted search interfaces.
Retrieve the distinct values for a specific field across all documents in your workspace. Results are sorted by count descending, making the most common values appear first. Use this to populate filter dropdowns, build faceted search interfaces, or analyze value distributions for data quality.
/fields/:fieldId/valuesResponse
Response fields
Response
{
"values": [
{ "value": "Acme Corp", "count": 47 },
{ "value": "Globex Inc", "count": 23 }
],
"totalDistinct": 156
}Errors
Error responses
Pair this endpoint with the field autocomplete endpoint to build a two-step filter UI: first let the user select a field via GET /fields/autocomplete, then populate a dropdown with that field's distinct values from this endpoint. The totalDistinct count is useful for showing "N of M values" pagination hints.