Required SPARQUE Desk Endpoints

Note that any of the listed parameters are optional when defining the endpoints. If you do not require a specific parameter for the underlying strategy, there is no need to define the parameter in the API endpoint.

Non-Stacked Endpoints

EndpointParametersOutputLevelWrapper EndpointComments
attributes
  • sku (string)
OBJ-
  • /product-attributes
  • Returns a list of property values of a product
brandsuggest
  • keyword (string)
  • channel (string)
STRING-
  • /suggestions
  • Returns a list of brand names for search suggestions
  • Only required if Brand Suggestions are enabled via the corresponding SPARQUE Hub setting
categorysuggest
  • keyword (string)
  • channel (string)
  • locale (string)
OBJ2
  • /health-check
  • /suggestions
  • Returns a list of categories for search suggestions
  • Level 2 to include parents if needed
  • Only required if Category Suggestions are enabled and Search Personalization is disabled via the corresponding SPARQUE Hub settings when calling the /suggestions endpoint
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the response code is verified during this process.
categorytree
  • channel (string)
OBJ2
  • /categorytree
  • /health-check
  • Returns a list of categories with their parents. The Wrapper uses this to build the category tree.
  • Level 2 to include parents if needed
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the HTTP response code is verified during this process.
contentsuggest
  • keyword (string)
OBJ-
  • /suggestions
  • Returns a list of content elements for search suggestions
  • Only required if Content Suggestions are enabled via the corresponding SPARQUE Hub setting.
fixedFacets
  • channel (string)
OBJ-
  • /facet-options
  • /health-check
  • /products
  • /search
  • Returns a list of fixed facet groups
  • Only required if the SPARQUE Hub setting Fixed Facets is enabled when calling the /facet-options, /products and /search endpoints.
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the HTTP response code is verified during this process.
health_check-OBJ-
  • /health-check
  • Customize this to fit your needs
  • The result is not evaluated, only the HTTP status code and the response time are relevant for the health check.
keywordsuggest
  • keyword (string)
  • channel (string)
  • locale (string)
STRING-
  • /suggestions
  • /health-check
  • Returns a list of suggested search terms
  • Only required if Keyword Suggestions are enabled and Search Personalization is disabled via the corresponding SPARQUE Hub settings when calling the /suggestions endpoint.
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the HTTP response code is verified during this process.
pdp
  • channel (string)
  • sku (string)
OBJ5
  • /product
  • Returns a product
  • Level 5 to return more details
products
  • user (string)
  • channel (string)
  • cartId (tuple_list)
OBJ-
  • /categorytree
  • /health-check
  • /products
  • /suggestions
  • Returns a list of products
  • Only required if Search Personalization is enabled via the corresponding SPARQUE Hub setting when calling the /categorytree endpoint.
  • Only required if Keyword or Category Suggestions as well as Search Personalization are enabled via the corresponding SPARQUE Hub settings when calling the /suggestions endpoint.
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the HTTP response code is verified during this process.
productsuggest
  • keyword (string)
  • channel (string)
  • locale (string)
OBJ-
  • /health-check
  • /suggestions
  • Returns a list of products
  • Only required if Product Suggestions are enabled via the corresponding SPARQUE Hub setting when calling the /suggestions endpoint
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the HTTP response code is verified during this process
recommendations
  • locale (string)
OBJ-
  • /config
  • Returns a list of recommendation endpoints available in SPARQUE.AI
redirects
  • channel (string)
OBJ-
  • /products
  • /search
  • Returns a list of redirects
search
  • keyword (string)
  • channel (string)
  • cartId (tuple_list)
OBJ-
  • /facet-options
  • /health-check
  • /search
  • Returns a list of products
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the HTTP response code is verified during this process
sortings
  • channel (string)
  • locale (string)
OBJ, STRING-
  • /config
  • /health-check
  • /products
  • /search
  • Returns a list of sortings and their localized name
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the HTTP response code is verified during this process
variation_attributes
  • sku (tuple_list)
OBJ,OBJ,OBJ-
  • /product
  • /products
  • /search
  • Returns a list of triples, each consisting of the master product (by SKU), a related variant product, and the variant’s value for a specific variant attribute
  • Only required for the /products and /search endpoints if the parameter ReturnVariantAttributes is enabled or not provided.

Stacked Endpoints

EndpointInputParametersOutputLevelWrapper EndpointComments
boostOBJ-OBJ-
  • /facet-options
  • /products
  • /recommendations
  • /search
  • /suggestions
  • Requires a list of products as input and will return a list of products. Can be used to manipulate the product list or change the scoring of individual products.
  • Only required if boosting is enabled via the corresponding SPARQUE Hub setting
  • Only required if Product Suggestions are enabled via the corresponding SPARQUE Hub setting when calling the /suggestions endpoint
{fixedFacetName}; e.g.: brandOBJ
  • user (string)
STRING,DOUBLE-
  • /products
  • /search
{fixedFacetName}:FILTER; e.g.: brand:FILTEROBJ
  • value (tuple_list)
OBJ-
  • /products
  • /search
category_facetsOBJ-OBJ2
  • /facet-options
  • /products
  • /search
  • Takes a list of products and returns a list of categories associated with these products
  • Only required if a fixed facet category exists
  • Replaces the category endpoint
category:FILTEROBJ
  • value (tuple_list)
OBJ-
  • /products
  • /search
  • Filters a list of products by the categories provided in the tuple list
  • Only required if a fixed facet category exists
facet_filterOBJ
  • value (tuple_list)
  • locale (string)
  • attribute (string)
OBJ-
  • /facet-options
  • /products
  • /search
  • Takes a list of products and filters them by the provided attribute filter
facet_optionsOBJ
  • attribute (string)
OBJ,DOUBLE-
  • /facet-options
  • /products
  • /search
  • Takes a list of products as well as a facet group and returns a list of property values representing the available facet group options and their corresponding score
facet_options_lcOBJ
  • attribute (string)
  • locale (string)
OBJ,DOUBLE-
  • /facet-options
  • /products
  • /search
  • Same as facet_options, but additionally takes a locale to filter the facet options by
  • Since version 1.3
  • Only required if Localized Facet Filtering is enabled via the corresponding SPARQUE Hub setting
facetsOBJ
  • locale (string)
OBJ-
  • /health-check
  • /products
  • /search
  • Takes a list of products and returns a list of property names related to these products representing the facet groups available
  • Only required for the /health-check endpoint if the parameter ShouldRunExtendedTest is enabled. Only the HTTP response code is verified during this process.
mastersOBJ
  • bypassLimit (integer)
OBJ-
  • /facet-options
  • /products
  • /search
  • Takes a list of products and returns a list of products where each one is either an individual or a master product
  • Only required if masters are enabled for the workspace. This setting is disabled by default and can only be managed by SPARQUE. Please create a ticket in the service portal if you need to change it.
namedownOBJ
  • locale (string)
OBJ-
  • /products
  • /recommendations
  • /search
nameupOBJ
  • locale (string)
OBJ-
  • /products
  • /recommendations
  • /search
oneVariantOBJ-OBJ-
  • /facet-options
  • /products
  • /recommendations
  • /search
  • /suggestions
  • Takes a list of products and removes variation products so that only one variation remains per master product
user_categorysuggestOBJ
  • keyword (string)
OBJ-
  • /suggestions
  • Similar to categorysuggest, but takes a list of products as input to filter the available categories by
  • Only required if Search Personalization is enabled via the corresponding SPARQUE Hub setting
  • Only required if Category Suggestions are enabled via the corresponding SPARQUE Hub setting when calling the /suggestions endpoint
user_categorytreeOBJ
  • channel (string)
OBJ2
  • /categorytree
  • Similar to categorytree, but takes a list of products as input to filter the available categories by
  • Only required if Search Personalization is enabled via the corresponding SPARQUE Hub setting
user_keywordsuggestOBJ
  • keyword (string)
  • locale (string)
STRING-
  • /suggestions
  • Similar to keywordsuggest, but takes a list of products as input to filter the available keywords by
  • Only required if Search Personalization is enabled via the corresponding SPARQUE Hub setting
  • Only required if Keyword Suggestions are enabled via the corresponding SPARQUE Hub setting when calling the /suggestions endpoint
user_product_catalogOBJ
  • channel (string)
OBJ-
  • /categorytree
  • /facet-options
  • /product
  • /products
  • /recommendations
  • /search
  • /suggestions
  • Takes a list of products and filters them by the provided channel name
  • Only required if Search Personalization is enabled via the corresponding SPARQUE Hub setting
  • Only required if Keyword, Category or Product Suggestions are enabled via the corresponding SPARQUE Hub setting when calling the /suggestions endpoint
variantsOBJ-OBJ-
  • /product
  • Takes a list of products and returns the variants included and all other variants of their respective master products