POST /{environment}/searches/completions Description Request completions with the advanced payload that supports multi-environment setups. Parameters Type Name Description Schema Path environment required The environment for which the request is made. string Body body required Completion payload. CompletionRequest Responses HTTP Code Description Schema 200 OK Completion Consumes application/json Produces application/json Item One content item returned by the Search API. Name Description Schema information_field required Optional metadata field configured per customer. string item_id required Identifier of the item in your catalog. string type required Document type of the returned object. string List Represents a grouped subset of search results. Name Description Schema grouped_by optional Values of the group_by keys shared by every item in the list. < string > array items optional Items contained in this list. < Item > array limit optional Number of items returned in this list. integer list_key optional Identifier that lets you re-fetch remaining items. string list_name optional Server-generated name of the list. string list_size optional Total number of cached items for this list. integer Filter Key-value filters applied to search requests. Name Description Schema <field> optional Field name/value pairs that determine which items are allowed. Configured per customer. string Histories Map of custom histories that describe past user interactions. Name Description Schema <history_name> optional Array of recent events used for personalization. < HistoryItem > array HistoryItem Single interaction tuple used inside histories. Name Description Schema id required Identifier of the entity referenced by the event. string timestamp optional Unix timestamp (seconds). integer item_type optional Type of the entity (e.g., item, article, category). string reconsumable optional Whether the entity can be recommended again. boolean CompletionRequest Body accepted by the advanced completions endpoint. Name Description Schema fuzziness optional Maximum edit distance when matching queries (default: 0). integer filter_by optional Filters applied before generating completions. Filter q optional Partial query string. string user_id optional User identifier. string device_id optional Device identifier. string histories optional Interaction histories used to personalize results. Histories Completion Payload returned by the completions endpoints. Name Description Schema completions required List of suggested terms. < Item > array request_id required Identifier of the completion request. integer user_group optional Experiment group the user belongs to. string