API Reference
This section lists all the available API endpoints, that allow you to manage item catalog, users, their interactions and get recommendations.
- Version:
6.3.0 - Base URL: Based on the region of your database
- API consumes:
application/json - API produces:
application/json - Authentication: HMAC (already implemented in the SDKs)
- OpenAPI definition: YAML | JSON
Items
| Name | Description |
|---|---|
put Add Item | Adds a new item of the given |
delete Delete Item | Deletes an item of the given |
get List Items | Gets a list of IDs of items currently present in the catalog. |
delete Delete More Items | Deletes all the items that pass a given filter. |
Item Properties
Item properties definition
| Name | Description |
|---|---|
Adding an item property is somewhat equivalent to adding a column to the table of items. The items may be characterized by various properties of different types. | |
delete Delete Item Property | Deleting an item property is roughly equivalent to removing a column from the table of items. |
Gets information about specified item property. | |
Gets the list of all the item properties in your database. |
Values of item properties
| Name | Description |
|---|---|
post Set Item Values | Sets/updates (some) property values of the given item. The properties (columns) must be previously created by Add Item Property. |
Gets all the current property values of the given item. | |
Updates (some) property values of all the items that pass a given filter. |
Users
| Name | Description |
|---|---|
put Add User | Adds a new user to the database. |
delete Delete User | Deletes a user of the given |
put Merge Users | Merges interactions (purchases, ratings, bookmarks, detail views, etc.) of two different users under a single user ID. The source user is deleted afterward. |
get List Users | Gets a list of IDs of users currently present in the catalog. |
User Properties
User properties definition
| Name | Description |
|---|---|
Adding a user property is somewhat equivalent to adding a column to the table of users. The users may be characterized by various properties of different types. | |
delete Delete User Property | Deleting a user property is roughly equivalent to removing a column from the table of users. |
Gets information about specified user property. | |
Gets the list of all the user properties in your database. |
Values of user properties
| Name | Description |
|---|---|
post Set User Values | Sets/updates (some) property values of the given user. The properties (columns) must be previously created by Add user property. |
Gets all the current property values of the given user. |
User-Item Interactions
Detail Views
| Name | Description |
|---|---|
post Add Detail View | Adds a detail view of the given item made by the given user. |
delete Delete Detail View | Deletes an existing detail view uniquely specified by ( |
Lists all the detail views of the given item ever made by different users. | |
Lists all the detail views of different items ever made by the given user. |
Purchases
| Name | Description |
|---|---|
post Add Purchase | Adds a purchase of the given item made by the given user. |
delete Delete Purchase | Deletes an existing purchase uniquely specified by |
Lists all the ever-made purchases of the given item. | |
Lists all the purchases ever made by the given user. |
Ratings
| Name | Description |
|---|---|
post Add Rating | Adds a rating of the given item made by the given user. |
delete Delete Rating | Deletes an existing rating specified by ( |
Lists all the ratings of an item ever submitted by different users. | |
Lists all the ratings ever submitted by the given user. |
Cart Additions
| Name | Description |
|---|---|
Adds a cart addition of the given item made by the given user. | |
delete Delete Cart Addition | Deletes an existing cart addition uniquely specified by |
Lists all the ever-made cart additions of the given item. | |
Lists all the cart additions ever made by the given user. |
Bookmarks
| Name | Description |
|---|---|
post Add Bookmark | Adds a bookmark of the given item made by the given user. |
delete Delete Bookmark | Deletes a bookmark uniquely specified by |
Lists all the ever-made bookmarks of the given item. | |
Lists all the bookmarks ever made by the given user. |
View Portions
| Name | Description |
|---|---|
post Set View Portion | Sets viewed portion of an item (for example a video or article) by a user (at a session).
If you send a new request with the same ( |
delete Delete View Portion | Deletes an existing view portion specified by ( |
Lists all the view portions of an item ever submitted by different users. | |
Lists all the view portions ever submitted by the given user. |
Recommendations
Recommending Items
| Name | Description |
|---|---|
Based on the user's past interactions (purchases, ratings, etc.) with the items, recommends top-N items that are most likely to be of high value for the given user. | |
Recommends a set of items that are somehow related to one given item, optionally taking the target user into account. | |
Recommends Items that are the most relevant to a particular Segment from a context Segmentation. | |
Returns items that shall be shown to a user as next recommendations when the user e.g. scrolls the page down (infinite scroll) or goes to the next page. |
Recommending Item Segments
| Name | Description |
|---|---|
Recommends the top Segments from a Segmentation for a particular user, based on the user's past interactions. | |
Recommends Segments from a Segmentation that are the most relevant to a particular item. | |
Recommends Segments from a result Segmentation that are the most relevant to a particular Segment from a context Segmentation. | |
Returns Item Segments to be shown as the next recommendations when a user scrolls (e.g., within a carousel or feed of Item Segments such as brands, artists, topics, or categories). |
Recommending Users
| Name | Description |
|---|---|
Gets users similar to the given user, based on the user's past interactions (purchases, ratings, etc.) and values of properties. | |
Recommends users that are likely to be interested in the given item. |
Composite Recommendations
| Name | Description |
|---|---|
Composite Recommendation returns both a source entity (e.g., an Item or Item Segment) and a list of related recommendations in a single response. It is ideal for use cases such as personalized homepage sections (Articles from <category>), Because You Watched <movie>, or Artists Related to Your Favorite Artist <artist>. |
Search
| Name | Description |
|---|---|
post Search Items | Personalized search. The results are based on the provided |
Personalized search that returns Segments from a Segmentation. The results are based on the provided |
Synonyms
| Name | Description |
|---|---|
Adds a new synonym for the Search Items, so that the | |
Gives the list of synonyms defined in the database. | |
Deletes all synonyms defined in the database. | |
delete Delete Search Synonym | Deletes synonym of the given |
Series
Series definition
| Name | Description |
|---|---|
put Add Series | Creates a new series in the database. |
delete Delete Series | Deletes the series of the given |
get List Series | Gets the list of all the series currently present in the database. |
Series items
| Name | Description |
|---|---|
Lists all the items present in the given series, sorted according to their time index values. | |
post Insert to Series | Inserts an existing item/series into a series of the given seriesId at a position determined by time. |
delete Remove from Series | Removes an existing series item from the series. |
Segmentations Definition
Property Based Segmentation
| Name | Description |
|---|---|
Creates a Segmentation that splits the items into segments based on values of a particular item property. | |
Updates a Property Based Segmentation |
Manual ReQL Segmentation
| Name | Description |
|---|---|
Creates a Segmentation that splits the items into segments using multiple ReQL filters. | |
Update an existing Segmentation. | |
Adds a new Segment, defined by a ReQL filter, into a Manual ReQL Segmentation. | |
Update definition of the Segment. | |
Delete a Segment from a Manual ReQL Segmentation. |
Auto ReQL Segmentation
| Name | Description |
|---|---|
Creates a Segmentation that splits the items into segments using a ReQL expression. | |
Update an existing Segmentation. |
General
| Name | Description |
|---|---|
Return all existing items Segmentations. | |
Get existing Segmentation. | |
delete Delete Segmentation | Delete existing Segmentation. |
Miscellaneous
| Name | Description |
|---|---|
post Batch | Batch processing allows you to submit an arbitrary sequence of requests within a single HTTPS request. |
Get all Scenarios of the given database. | |
delete Reset Database | Completely and irreversibly erases all the data in the database, including items, users, series, properties, and interactions. |