Retrieve fields for a specific datatype

Returns the fields associated with the specified datatype, such as product fields.

Returns the available fields for a given document datatype. Used to determine which fields can be included in a stream configuration.

Requires authentication.

Request

POST /stream/fields

Headers

HeaderValue
AuthorizationBearer <token>
Content-Typeapplication/json

Request Body

FieldTypeRequiredDescription
datatypestringYesThe document datatype to retrieve fields for. Common values: product, category, manufacturer.

Example Request

{
  "datatype": "product"
}

Response

Returns a JSON array of field descriptor objects.

Response Body

FieldTypeDescription
idstringField identifier used in queries and stream configuration.
titlestringHuman-readable field name.
typestringData type of the field (e.g. string, integer, float, boolean).

Example Response

[
  {
    "id": "title",
    "title": "Product Title",
    "type": "string"
  },
  {
    "id": "price",
    "title": "Price",
    "type": "float"
  },
  {
    "id": "active",
    "title": "Active",
    "type": "boolean"
  }
]
Body Params
string
required

The datatype for which fields are being requested.

Headers
string
required

Makaira Instance ID

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json