Search Feedback API endpoint to submit shopper signals such as result clicks, conversions, and dismissals that train search relevance ranking.
This endpoint allows you to capture user feedback on search results, including overall ratings, text feedback, and product-specific feedback. When feedback is submitted, the endpoint retrieves the cached search data (if still available) and stores the original search query, expanded queries, and intent modifier actions alongside the feedback for analysis.Documentation Index
Fetch the complete documentation index at: https://docs.uselayers.com/llms.txt
Use this file to discover all available pages before exploring further.
<YOUR_LAYERS_TOKEN>. Same requirements as the Search API.search_id returned from the Prepare Search endpoint."positive" - Thumbs up, results were helpful"negative" - Thumbs down, results were not helpfulsearch_id is required and must be a valid ULIDrating must be either "positive" or "negative" if providedtext_feedback has a maximum length of 2000 charactersproduct_feedback is an array where each item must include:
product_id (required when product_feedback is provided)rating must be "positive" or "negative" if providedfeedback has a maximum length of 500 charactersrating, text_feedback, or product_feedback should be provided, though all fields are technically optionalsearch_idsearch_id), feedback is still recorded but without the search contextsessionId and customerId) if providedtrue when feedback is successfully recorded.X-Storefront-Access-Token