Get aggregation fields

Returns the list of available index fields that can be used as aggregation sources. Results can be filtered by field type.

Requires one of the following permissions: aggregation:fields:read, menu.read, search.read, banner.read, redirects.read, datainspector.read, streams.read, pageeditor.read, or settings.read.

Request

GET /aggregation/fields

Headers

HeaderValue
AuthorizationBearer <token>

Query Parameters

ParameterTypeRequiredDescription
typestringNoComma-separated list of field types to include (e.g. "text,keyword"). The value "string" is treated as "text".
exclude_typestringNoComma-separated list of field types to exclude.
no_public_fieldbooleanNoWhen true, fields already used as public fields are excluded from the result.

Example Request

GET /aggregation/fields?type=keyword
Authorization: Bearer <token>

Response

Returns a JSON array of field descriptor objects.

Response Body

Each item in the array:

FieldTypeDescription
titlestringThe field name as used in the index.
typestringThe field data type (e.g. "keyword", "text", "integer", "float").

Example Response

[
  {
    "title": "manufacturer",
    "type": "keyword"
  },
  {
    "title": "price",
    "type": "float"
  }
]