Skip to main content
POST
/
preview
/
retail-media
/
chatbot-catalogs
/
{catalogid}
/
product-recommendations
/preview/retail-media/chatbot-catalogs/{catalogid}/product-recommendations
curl --request POST \
  --url https://api.criteo.com/preview/retail-media/chatbot-catalogs/{catalogid}/product-recommendations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "attributes": {
      "messages": [
        {
          "botMessage": {
            "closing": "<string>",
            "opening": "<string>",
            "productRecos": [
              {
                "rationale": "<string>",
                "brand": "<string>",
                "currency": "<string>",
                "description": "<string>",
                "imageUrl": "<string>",
                "name": "<string>",
                "price": 123,
                "url": "<string>"
              }
            ]
          },
          "userMessage": "<string>"
        }
      ]
    },
    "type": "InbotDiscussion"
  }
}
'
{
  "data": {
    "attributes": {
      "botMessage": {
        "closing": "<string>",
        "opening": "<string>",
        "productRecos": [
          {
            "rationale": "<string>",
            "brand": "<string>",
            "currency": "<string>",
            "description": "<string>",
            "imageUrl": "<string>",
            "name": "<string>",
            "price": 123,
            "url": "<string>"
          }
        ]
      },
      "userMessage": "<string>"
    },
    "type": "Message"
  },
  "errors": [
    {
      "code": "<string>",
      "instance": "<string>",
      "traceId": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

catalogid
string
required

the identifier of the catalog to query

Body

application/json

an API recommendation message

data
InbotDiscussionDataInstanceModel · object
required

an API recommendation request

Response

200 - application/json

Successful Response

error message

data
MessageDataInstanceModel · object

an API answer message

errors
MessageError · object[] | null