Get documents by id and/or datatypeAsk AIpost https://{yourinstance}.makaira.io/documents/publicGet documents directly from Elasticsearch, by id and/or document type.Body ParamsdatatypestringrequiredDatatype of the documents to retrieve. Special cases: makaira-product will retrieve documents with datatype variant (datatype in the response will be makaira-product) makaira-productgroup will retrieve documents with datatype product (datatype in the response will be makaira-productgroup) variant will retrieve documents with datatype variant but the datatype in the response will be makaira-product product will retrieve documents with datatype product but the datatype in the response will be makaira-productgroup idsarray of stringsThe ids of the documents to retrieve. If this array is undefined or empty then you get all documents of the given datatype. Be careful, this can produce very large responses.idsADD stringincludeContentbooleanIf this is set to true, then the response will contain the content of the documents.truefalsefieldsarray of stringsFilter for the document fields to retrieve. If not defined or empty then you will get all public fields that are whitelisted on the details page. You can not use this to get fields that are not whitelisted.fieldsADD stringaggregationsobjectList of selected values to filter for.aggregations objectsortingobjectsorting objectconstraintsobjectrequiredUse this to specify the language and filter the attributes.constraints objectHeadersX-Makaira-InstancestringrequiredMakaira Instance IDResponses 200Array with documents. 500Object with error description.Updated 7 months ago