Retrieve objects
Use the /retrieval
endpoint to get recommendations of which products are relevant given a
certain context. Context is provided by user information, plus seed products. This can be used
to retrieve object to display on a PDP (single seed product) or in a cart (multiple seed products).
In order to provide retrieval, Topsort requires that events are also sent, as a source of information.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
How many objects to retrieve.
10
The opaque user ID is an anonymized unique identifier that maps to the original user ID without revealing the original value. This identifier allows Topsort to use interactions information to later on provide a prediction of the outcome of the interaction between the user and a product.
"71303ce0-de89-496d-8270-6434589615e8"
Retrieval mode, how to interpret the context to get objects.
all
, complement
, similar
The type of object that needs to be retrieved.
listings
, banners
The device the user is on.
desktop
, mobile
"mobile"