List the values of an attributeMenu

List the values of an attribute

GET/v1/attributes/{key}/values

Requires an API key with the attributes:read scope. About keys and scopes

Works with integration, agent and partner keys. Also available to embed sessions.

Lists the distinct values contacts hold for one attribute key, with how many hold each, for value suggestions in rules; each member of a list counts on its own. The 100 most common only, from the same index as the key list. An API key always gets the values, a masked key's included. In the dashboard and in embed sessions (minted with includeAttributeValues), a masked key returns none.

Path parameters

keystringrequired

The attribute key, as listAttributes returns it, URL-encoded (a key in any language is percent-encoded as UTF-8). Matched in Unicode NFC, as keys are stored, so a composed and a decomposed "é" are the same key.

pattern ^[\p{L}\p{N}\p{M}_.-]{1,64}$

Query parameters

limitintegeroptional

How many items a page holds: 1 to 100, 20 by default.

min > 0 · max 100 · default 20

cursorstringoptional

Where the page starts: the previous page's meta.pagination.nextCursor. Omit it for the first page, and send the same filters with it.

1–2,048 characters

Header parameters

Kirora-Workspacestringoptional

Partner keys only: the child workspace to act in, by the external id the partner gave it. Without it, a partner key acts in its own workspace. Any other key that sends it is refused with 403, and an unknown workspace is 404.

pattern ^[A-Za-z0-9._:-]{1,128}$

Returns

Returns 200 OK with a list of AttributeValue objects in data, and the next page's cursor in meta (see pagination). Otherwise returns an error; Errors lists every code and which to retry.

valuestring | number | booleanrequired
countintegerrequired

Contacts holding this value.

min 0