Overview
The Reviews API allows you to add, retrieve, and delete review data for products in your index. Reviews are stored asynchronously and can be used by the Conversational Agent to enrich product discovery with customer review insights. Each review is associated with a product document via its_id. When a user asks a
question like “What do people say about this product?”, the system can pull the stored review
data to generate informed, contextual responses.
Prerequisites
- A Marqo Cloud account
- Your Marqo API key
- An existing ecommerce index with products (add products guide)
Endpoints
Add Reviews
Add review summaries for one or more products. This operation is asynchronous — the response contains a job ID that you can poll to check completion status. Endpoint:POST /indexes/{index_name}/agentic-search/reviews
Headers:
Content-Type: application/jsonAuthorization: Bearer {api_key}(required)
| Parameter | Type | Description |
|---|---|---|
documents | Array of objects | An array of review documents (max 100 per request). |
| Parameter | Type | Required | Description |
|---|---|---|---|
_id | string | Yes | The product document ID this review belongs to |
summary | string | Yes | A summary of customer reviews for this product |
Get Review
Retrieve the review summary for a specific product document. Endpoint:GET /indexes/{index_name}/agentic-search/reviews/{document_id}
Headers:
Authorization: Bearer {api_key}(required)
| Parameter | Type | Required | Description |
|---|---|---|---|
index_name | string | Yes | The name of your index |
document_id | string | Yes | The product document ID |
Delete Reviews
Delete reviews for one or more products. This operation is asynchronous — the response contains a job ID that you can poll to check completion status. Endpoint:DELETE /indexes/{index_name}/agentic-search/reviews
Headers:
Content-Type: application/jsonAuthorization: Bearer {api_key}(required)
| Parameter | Type | Required | Description |
|---|---|---|---|
ids | array | Yes | Array of product document IDs to delete reviews for (max 100 per request) |
Get Job Status
Check the status of an asynchronous add or delete operation. Endpoint:GET /indexes/{index_name}/agentic-search/reviews/jobs/{job_id}
Headers:
Authorization: Bearer {api_key}(required)
| Parameter | Type | Required | Description |
|---|---|---|---|
index_name | string | Yes | The name of your index |
job_id | string | Yes | The job ID returned from an add or delete reviews request |