Rating
These endpoints are called from a shopper's browser, so they take your publishable key rather than a secret one. Anything specific to one customer also takes a signed email and timestamp. Identifying the customer explains how to produce the signature.
To call them from your own server instead, send a secret key as a bearer token and leave apiPublishableKey out. See Calling the widget API from a server.
GET /widgets/rating
Get rating summary for products
Query parameters
apiPublishableKeystringYour organization's publishable key, from Settings, API keys. Leave it out when the request carries a secret key as a bearer token instead, which is how a server calls these endpoints.
productSlugsstringComma-separated product slugs to summarize, one per widget on the page.
productExternalIdsstringComma-separated product IDs on site, such as Shopify product IDs, sent instead of productSlugs.
sitestringThe slug of the site productExternalId belongs to. Only needed when the same ID is on more than one of your sites.