Get stream fields by datatype

Returns the list of available fields for a given document data type. Used to build stream query conditions and feed configurations.

Requires one of the following permissions: stream:fields:read, streams.read, search.read, smartbundle.read, or recommendations.read.

Request

POST /stream/fields

Headers

HeaderValue
AuthorizationBearer <token>
Content-Typeapplication/json

Request Body

FieldTypeRequiredDescription
datatypestringYesThe document data type to retrieve fields for (e.g. "product", "category").
forFeedbooleanNoWhen true, script-type fields are excluded and feed-specific taxonomy fields (googleCategory, iCountLine) are prepended.

Example Request

{
  "datatype": "product",
  "forFeed": false
}

Response

Returns a JSON array of field descriptor objects.

Response Body

FieldTypeDescription
idstringThe field identifier.
titlestringHuman-readable field label.
typestringField data type (e.g. "keyword", "float", "boolean", "script").

Example Response

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