---
title: "List distinct values of a contact attribute"
method: GET
path: "/api/v3/contacts/attribute-values"
tags: ["V3 Contacts"]
---

# List distinct values of a contact attribute

`GET /api/v3/contacts/attribute-values`

## Request

- Base URL: `https://app.formbricks.com`
- URL: `https://app.formbricks.com/api/v3/contacts/attribute-values`
- Auth: one of:
  - API key in cookie `next-auth.session-token`
  - API key in header `x-api-key`
  - HTTP bearer

Returns the distinct, non-empty values one contact attribute takes in a workspace, in ascending
order and bounded by `limit` — for quick-filter value pickers. Not paginated: `meta.truncated` says
whether more values match than were returned, so a picker can ask the user to narrow the search. Number and date attributes return
their stored text `value`. Requires the Contacts entitlement (**403** without it). An unknown
`key` → **400**. Session cookie, `x-api-key`, or a Bearer token.

## Query parameters

- `workspaceId` string, cuid2, required
- `key` string, required
- `filter[value][contains]` string
- `limit` integer

## Response `200`

Values retrieved successfully

- object
  - `meta` object, required
    - `limit` integer, required: The limit actually applied.
    - `truncated` boolean, required: True when more values match than `limit` returned.
  - `data` object[], required
    - `value` string, required

## Other responses

- `400`: Bad Request — malformed JSON, invalid query/body/params, duplicate name, or unsupported field.
- `401`: Not authenticated (no valid session or API key).
- `403`: Forbidden — no workspace access, or resource does not exist (404 not used; avoids existence leak).
- `429`: Rate limit exceeded.
- `500`: Internal Server Error.

## Changes

- **2026-10-29** `82c0afd2df39`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/formbricks/apis/formbricks-api-v3/changes/api/v3/contacts/attribute-values/get.md)

---

[API](https://skmtc.dev/formbricks/apis/formbricks-api-v3.md) - [All operations](https://skmtc.dev/formbricks/apis/formbricks-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/formbricks/apis/formbricks-api-v3/revisions/25335c959a13?raw)
