POST
/
api
/
storefront
/
v3
/
headless
/
recommendations
curl --request POST \
  --url https://storefront.glood.ai/api/storefront/v3/headless/recommendations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-shop: <x-shop>' \
  --data '{
  "client_id": "<string>",
  "user_id": "<string>",
  "customer_id": "<string>",
  "queries": [
    {
      "id": "<string>",
      "recommendation_type": "bought_together",
      "max_recommendations": 25,
      "product_ids": [
        123
      ],
      "creation_type": "manual",
      "view": "product_details"
    }
  ]
}'
{
  "status": "ok",
  "serve_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "data": [
    {}
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-shop
string
required

Shopify store URL

Example:

"shop.myshopify.com"

Body

application/json
Request body
queries
object[]
required
client_id
string

Client identifier

user_id
string

User identifier

customer_id
string

Customer identifier

Response

200
application/json
Recommendations with Product Details
status
enum<string>
required
Available options:
ok
serve_id
string
required

Unique identifier for this recommendation serve request

data
object[]
required