Reviews and Ratings
Collect user reviews and ratings with moderation support.
Let users rate and review content, items, or experiences within your app. A review is published when it's submitted; hide one with amba_reviews_patch and is_approved: false, and approve it again with is_approved: true.
Client API reference
| Method | Path | Description |
|---|---|---|
POST | /v1/client/reviews | Submit a review |
GET | /v1/client/reviews?target_type=&target_id= | List published reviews for a target |
GET | /v1/client/reviews/item/:itemType/:itemId | Reviews for a target with avg_rating and review_count |
GET | /v1/client/reviews/mine | The current user's reviews |
PATCH | /v1/client/reviews/:reviewId | Edit the user's review (rating, title, body) |
DELETE | /v1/client/reviews/:reviewId | Delete the user's review |
Submit a review
item_type is content_item or custom (the default); item_id names the thing being reviewed. rating is a whole number from 1 to 5. A user reviews each target once; a second review answers 409 ALREADY_REVIEWED. The list routes take the same pair as target_type and target_id, and the submit route reads either spelling.
SDK
Each review comes back with author_id, target_type, target_id, rating, title, body, created_at and updated_at.
MCP tools
| Tool | Description |
|---|---|
amba_reviews_get_stats | Get review statistics (total, average rating, pending approvals, distribution) |
amba_reviews_patch | Approve or hide a review (is_approved) |