Reviews API
Last updated: November 19, 2026
Manage reviews submitted through BetterReviews AI chat or imported from other platforms (Okendo, Judge.me, Yotpo).
List Reviews
GET /api/v1/reviews
Query Parameters
| Param | Type | Description |
|---|---|---|
status | string | pending, approved, rejected |
stage | string | Filter by workflow stage (more precise than status). Allowed values: analyzing (transient, AI analysis pending), needs_review (pending review the merchant should look at; includes spam-flagged), awaiting_team (pending review already emailed to CS team), needs_support_email, awaiting_support, on_hold, indefinite_hold (V2 support-pipeline sub-stages), routed_to_support (legacy single-stage support value; as a filter, UNION-expands to the 4 V2 sub-stages above for backward compatibility), published (approved + visible on storefront), archived (intentionally hidden), rejected (explicitly rejected). Accepts a comma-joined list (e.g. stage=needs_support_email,awaiting_support,on_hold,indefinite_hold) to UNION across multiple stages. See the stage column on response objects below; status remains available unchanged for backwards compatibility. |
min_rating | integer | Minimum rating (1-5) |
max_rating | integer | Maximum rating (1-5) |
product_id | string | Filter by product external ID (Shopify product ID; bare numeric or gid://shopify/Product/...). When combined with has_media=true it also sets the result_shape discriminator (see below). Never matches store reviews (they have no product) — use review_kind=store for those. |
review_kind | string | product (reviews of a product) or store (reviews of the shop as a whole — e.g. imported Okendo "site reviews"). Omitted = both. Any other value returns 422 invalid_review_kind. |
platform | string | betterreviews, okendo, judgeme, yotpo |
is_verified | boolean | Verified buyers only |
q | string | Unified free-text search (max 200 chars; trimmed; 400 q exceeds 200-character limit over cap). Case-insensitive substring (ILIKE) across review title, content, reviewer name, tagged keywords, and the product title of the review's product. It does not search customer email. When q is supplied the server skips the separate product_query fuzzy resolver (product titles are matched directly in SQL), so a product_query sent alongside q is ignored. |
keyword | string | Filter by review-level keyword extraction (substring against analysis.keywords, case-insensitive, max 80 chars). Limited to reviews the analysis pipeline has tagged — brand-new or untagged reviews may be missing. |
review_sentiment | string | Review-level sentiment: positive, negative, neutral, mixed. Requires keyword; passing it alone returns 422. |
product_query | string | Single fuzzy product-name match (token-overlap against platform.products.title, store-scoped, max 200 chars). Server resolves to a product and filters reviews by it. Sets the result_shape discriminator (see below). Mutually exclusive with product_queries[] (422 mutually_exclusive_product_filter if both are supplied). |
product_queries[] | array | Multi-product OR (v3.1 T9, 2026-05). Up to 5 entries, each ≤200 chars. The server fuzzy-matches each; matched products' reviews are unioned, unresolved entries surface in meta.unresolved_queries (partial-resolve). Mutually exclusive with product_query. |
product_type | string | Shopify product type, exact match (v3.1 T9). Up to 256 chars. Resolved to platform_ids server-side (LIMIT 200 before :product_ids union). |
tags[] | array | Shopify product tags, OR semantics (v3.1 T9 — matches reviews whose product carries ANY of the listed tags). Up to 10 entries, each ≤64 chars. Combines with product_type as OR. |
date_from | string | ISO8601 date or datetime. Inclusive lower bound on review_created_at. 422 date_out_of_range if more than 1 day in the future; 422 invalid_date_range if date_from > date_to. |
date_to | string | ISO8601 date or datetime. Inclusive upper bound on review_created_at. Same boundary checks as date_from. |
has_media | boolean | When true, scopes the result set to reviews that have at least one visible photo/video. (As of 2026-05-02 the media[] array and has_visible_media boolean are returned on every review regardless of this filter.) |
marketing_ready | boolean | When true, scopes to reviews where at least one non-hidden photo passes the strict marketing-grade predicate (vision_analysis.marketing_usable=true AND vision_analysis.quality='good'). Imported reviews (Loox/Judge.me/Okendo) have no analysis and are excluded. |
sort | string | One of newest, most_helpful, highest, lowest, most_detailed, most_relevant, featured, most_informative, critical_first, best_media, marketing_potential, marketing, marketing_free. Unknown or omitted values fall back to newest. marketing ranks by AI quality score + marketing potential + verified buyer + photos + length and sinks reviews with no AI analysis below every analyzed review; marketing_free is the same idea without analysis fields (length, verified buyer, photos, helpful-vote ratio, recency). Every sort carries review id as its final tiebreaker, so pagination is stable across same-timestamp bulk imports. |
limit | integer | Page size (default 20, max 100) |
offset | integer | Pagination offset |
Analysis filters (used by the BetterReviews admin; may change). These match fields of the AI analysis, so reviews that have not been analyzed yet (brand-new, or imported before analysis ran) never match them, except has_analysis=false:
| Param | Type | Description |
|---|---|---|
review_id | integer | Return only this review (still scoped to your store). Non-integer values are ignored. |
min_quality / max_quality | integer | Bounds on the AI quality score (analysis.quality_score, 1–10), inclusive. |
marketing_potential | string | Exact match on analysis.marketing_potential: low, medium or high. |
has_analysis | boolean | true = only reviews the AI has analyzed; false = only reviews it has not. |
support_ticket | boolean | true = reviews the AI flagged as a support issue; false = reviews not flagged (including unanalyzed ones). |
moderation_decision | string | Exact match on analysis.moderation_decision, e.g. auto_approve, auto_reject, flagged_for_review, pending_manual. |
When either product_query (fuzzy resolved) or product_id (direct lookup) is supplied — together with has_media=true for ad-asset shapes — the response gains top-level fields:
result_shape:"reviews"(default),"ad_assets"(product anchor present +has_media=true+ at least one match),"ad_assets_no_media"(anchor matched but no reviews with media), or"ad_assets_unresolved"(resolver could not auto-pick — fires forproduct_queryonly).resolved_product: an object withplatform_id,title, andimage_urlof the matched product when present. Populates from either the resolver result (product_query) or a direct lookup (product_id).candidates_count,alternate_candidates, and (on unresolved)candidates. Always0/[]when the anchor isproduct_id(the caller has already picked).
When product_id is supplied but doesn't resolve in this store (deleted product, cross-tenant button replay, or unknown ID), the server returns result_shape: "reviews" with an empty reviews list and no resolved_product key. This avoids signaling that the product exists in some other store.
Review groups: when product_id resolves to a product that's an active member of a Review Group, the response includes reviews for all group members. Each row carries display_product_id (bare numeric Shopify ID for the product the review was originally submitted on) and display_product_title (resolved at read time) — use these to render cross-product attribution like "Reviewed: Red T-Shirt" when display_product_id doesn't match the PDP's current product. See the review groups reference.
Store reviews: every review object on the merchant-scoped list and single-review responses carries review_kind — "product" or "store". A store review is about the shop as a whole (imported Okendo "site reviews", or a CSV row whose product_id is site_review); its external_product_id is always null, as are product_title, product_image_url and (merchant keys) product_handle. external_product_id can also be null on a product review imported without a product. Bot-scoped keys do not receive review_kind.
Every review object always carries product_title, product_image_url, shopify_customer_id, media[], has_visible_media, and admin_url. media[] is empty when the review has no photos/videos. product_title is null when the review's external_product_id doesn't resolve to a product in platform.products; product_image_url is null under the same condition (no resolved product). shopify_customer_id is the bare numeric Shopify customer ID for the reviewer; it is null for bot-scoped API keys (same treatment as admin_url). admin_url is null for bot-scoped API keys (signed Phoenix deep-link tokens are kept out of Slack/Loki retention). These fields are present on both the list and single-review (GET /api/v1/reviews/:id) shapes.
Merchant-scoped keys only: On GET /api/v1/reviews and GET /api/v1/reviews/:id, each review also carries reviewer_email (the reviewer's email, decrypted; null when none was collected or the reviewer's data was erased), custom_fields (extra fields carried over from the source platform, {} when none), and platform_metadata (source-platform extras on imported reviews, e.g. product_handle; on a BetterReviews-collected public review it may carry duplicate_content_of_review_id, the id of another review in your store whose text it repeats, which holds it for a check). They also carry a top-level product_handle (the product's storefront handle, so https://<shop>.myshopify.com/products/<product_handle> opens it; null when the product doesn't resolve or has no synced handle) and, inside analysis, auto_publish_score_breakdown — how the auto-publish score in moderation_reason (score_<S>_below_threshold_<T> or score_<S>_preset_<preset>, with a _backfill_v1 suffix, or score_<S>_score_only_backfill_v1, on reviews scored when a store left Manual) was built: sentiment (0–45), quality (0–35), verified_buyer (0 or 10), spam_penalty / abuse_penalty (0 or -50) and total (0–100). It is null when the review was never scored (for example Manual publishing, a support ticket, or spam), and only describes the current decision when moderation_reason is one of the score_* reasons. Before platform_metadata is returned, known personal-data keys are removed: ip_address, reviewer_ip, raw_data, email, customer_email, phone, location, and any key starting with address (top-level keys, case-insensitive). Treat reviewer_email as customer personal data: don't log it or forward it to third parties. Note: POST /api/v1/reviews/search with a merchant key is proxied to the LLM service and currently returns the stored platform_metadata unfiltered (follow-up tracked) and does not include reviewer_email.
Bot-scoped keys (the Slack bot): On GET /api/v1/reviews and GET /api/v1/reviews/:id, each review is an explicit allowlist and nothing else: id, external_product_id, product_title, product_image_url, rating, title, content, reviewer_display_name (always the public "First L." form, e.g. "Jane D."), is_verified_buyer, shopify_customer_id (always null), status, review_created_at, helpful_votes, unhelpful_votes, analysis (only quality_score, sentiment, marketing_potential, use_cases, keywords, has_photo), media[], has_visible_media, and admin_url (always null). They never receive the raw reviewer_name, reviewer_email, platform_metadata, custom_fields, external_order_id, user_id, or any reviewer location field. Bot keys are also restricted to the routes the Slack bot calls (review list/stats/show/search/approve/reject, sending a review request, conversation and email-request stats, and the Slack channel-mapping, user-auth, role-counts and audit-log routes); every other route returns 403 insufficient_scope.
Inside each media[] entry, vision_analysis is null for: (a) imported platform reviews (Loox/Judge.me/Okendo) — those photos never go through the AI pipeline, and (b) photos uploaded through the AI chat where the async analysis worker hasn't completed yet (typically a 30–90s window after the customer's submit). Always handle the null case gracefully — never assume the blob is present.
Response (200)
{
"reviews": [
{
"id": 789,
"external_review_id": "abc-123",
"platform": "betterreviews",
"external_product_id": "7125386199075",
"review_kind": "product",
"product_title": "Mighty Mug 16oz",
"product_image_url": "https://cdn.shopify.com/.../mug.jpg",
"product_handle": "mighty-mug-16oz",
"rating": 5,
"title": "Amazing quality",
"content": "I love this product, especially the fabric...",
"reviewer_name": "Jane D.",
"is_verified_buyer": false,
"shopify_customer_id": "1234567890",
"status": "pending",
"stage": "needs_review",
"is_featured": false,
"sentiment": "positive",
"sentiment_score": 0.82,
"helpful_votes": 3,
"unhelpful_votes": 0,
"review_created_at": "2026-03-27T10:00:00Z",
"tags": ["quality", "fabric"],
"rights_status": "none",
"media": [
{
"full_url": "https://media.betterreviews.app/r/abc.jpg",
"large_url": "https://media.betterreviews.app/r/abc_large.jpg",
"thumbnail_url": "https://media.betterreviews.app/r/abc_thumb.jpg",
"media_type": "image",
"display_order": 0,
"vision_analysis": {
"description": "A close-up of a navy blue knitted sweater on a wooden table.",
"content_type": "product-shot",
"quality": "good",
"quality_issues": [],
"marketing_usable": true,
"is_product_visible": true,
"detail_level": "high",
"analyzed_at": "2026-03-27T10:01:14.235Z"
}
}
],
"has_visible_media": true,
"admin_url": "https://admin.shopify.com/store//apps//reviews/789?t=",
"analysis": {
"quality_score": 4,
"sentiment": "positive",
"sentiment_detail": "Enthusiastic about the fabric and fit",
"marketing_potential": "high",
"keywords": ["quality", "fabric"],
"support_ticket": false,
"has_photo": false,
"moderation_decision": "pending_manual",
"moderation_reason": "score_59_below_threshold_62",
"auto_publish_score_breakdown": {
"sentiment": 45,
"quality": 14,
"verified_buyer": 0,
"spam_penalty": 0,
"abuse_penalty": 0,
"total": 59
}
}
}
],
"total": 42,
"limit": 10,
"offset": 0
} The stage field
Every review carries a stage string — a materialized projection of status, analysis.moderation_reason, email_notified_at, and archived_at. It's more precise than status for queue-style UIs:
| Stage | What it means |
|---|---|
analyzing | Pending; AI analysis hasn't returned yet. Typically <60s. Excluded from queue counts. |
needs_review | Pending; analysis returned and the review needs a human. Includes flagged reviews; sub-count by analysis.moderation_reason (e.g. duplicate_content for repeated text). |
awaiting_team | Pending; the CS team has been emailed about it. Click-through actions live in their inbox. |
routed_to_support | Legacy single-stage support label, retained for ≥2 release cycles. As a filter value it UNION-expands server-side to the 4 V2 sub-stages below (so old clients keep working); on response objects it appears only on rows that haven't been migrated to a V2 sub-stage yet. |
needs_support_email | V2 cascade entry: AI tagged the review as a support ticket; awaiting the bundled-email send to the merchant's CS team. Typically transient (<1min). |
awaiting_support | V2 cascade: bundled email sent to CS; awaiting a Hold / Reject click. A Reply Privately click emails the customer but leaves the review in this stage. |
on_hold | V2 cascade: CS rep clicked Hold 5 days. Waiting for the 5d follow-up email. |
indefinite_hold | V2 cascade: 9 days passed since the support email (2 reminders sent, on day 3 and day 6) with no action. Reaching the Hold extension cap does not move a review here; it stays on hold. Visible as the "No reply after 9 days" chip in the merchant dashboard. |
published | Approved AND not archived — visible on the storefront widget. |
archived | archived_at is set. Hidden from the storefront; restorable with Restore on the review's page in the BetterReviews admin (there is no API key endpoint for it). |
rejected | Explicitly rejected. Never publishes; doesn't count toward storefront aggregates. |
status stays available with its existing three values (pending / approved / rejected) — additive, never removed. Use stage for queue/workflow surfaces, status for raw publish-eligibility checks.
The rights_status field
Every review carries a rights_status string indicating whether you have the reviewer's permission to feature their words or photos in marketing (ads, social, email): none (not asked, or the reviewer declined), requested (a permission email is pending), or cleared (the reviewer granted permission). Defaults to none. Displaying a review on your product page does not require clearance; using it in marketing does.
The is_featured field
true when the review is pinned for the featured reviews block — pinned with PUT /reviews/:id/feature, or pinned in Judge.me and imported (an imported pin is a pin too, and DELETE /reviews/:id/feature removes it). To see what is pinned, filter the list on is_featured, or list with sort=featured, which puts pinned reviews first.
Export Marketing Photos (Bulk ZIP)
POST /api/admin-ext/marketing/export
Synchronous bulk ZIP of selected reviews' photos + a CSV manifest. Auth: App Bridge JWT (Authorization: Bearer <session_token>). 200-photo cap (422 above). 5/hour and 30/day per-store rate limits (429 above). All review_ids must belong to the requesting store (403 otherwise).
Response is application/zip. The ZIP contains manifest.csv (one row per photo: review_id, rating, product, customer name, content, content_type, quality_issues, description, photo_filename) plus each photo as {review_id}_{idx}.{ext} with the extension derived from MIME type, never the URL suffix.
POST /api/admin-ext/marketing/export
Authorization: Bearer <jwt>
Content-Type: application/json
{"review_ids": [12345, 67890]} List Products with Review Stats
GET /api/v1/reviews/products
Browse-by-product surface. Returns one row per product with aggregate review stats (counts by status, average rating, last review timestamp, count of reviews carrying media). Powers the merchant /reviews/products admin page.
Query Parameters
| Param | Type | Description |
|---|---|---|
sort | string | needs_attention (default), most_reviews, highest_rated, lowest_rated, most_recent, title_asc |
search | string | ILIKE on product title, variant SKU, or variant barcode (escaped, max 200 chars) |
has_pending | boolean | Only products with at least one pending review |
hide_zero_review_products | boolean | Default true; excludes products with no reviews |
min_rating / max_rating | float | Clamp avg_rating |
platform_id | string | Single-product fetch (max 256 chars; 422 on overflow). Returns 0..1 rows. |
limit | integer | Page size (default 25, max 100) |
offset | integer | Pagination offset |
Response (200)
{
"products": [
{
"platform_id": "7125386199075",
"title": "Mighty Mug 16oz",
"image_url": "https://cdn.shopify.com/.../mug.jpg",
"total_reviews": 23,
"pending_count": 4,
"approved_count": 18,
"rejected_count": 1,
"avg_rating": 4.6,
"last_review_at": "2026-05-01T14:22:00Z",
"media_count": 3
}
],
"total": 87,
"limit": 25,
"offset": 0,
"has_more": true
} media_count is "reviews with at least one visible media item", not total media items across reviews. Status counts include hidden reviews (moderation-worthy from the merchant's POV). Bot-scope keys are allowed.
Get Single Review
GET /api/v1/reviews/:id
Returns the same shape as a single review from the list.
Get Conversation Transcript
GET /api/v1/reviews/:id/transcript
For reviews collected via an AI chat, returns the turn-by-turn conversation plus two draft snapshots: the AI-generated draft the shopper saw before editing (initial_draft_text) and the final submitted body (final_draft_text). 404 when the review belongs to another store or has no linked conversation. Text fields are scrubbed of email addresses before being returned (redacted to [REDACTED_EMAIL]). Paginated from day one.
Query Parameters
| Param | Type | Description |
|---|---|---|
limit | integer | Page size (default 100, max 200) |
offset | integer | Pagination offset |
Response (200)
{
"conversation_id": 12345,
"messages": [
{"role": "assistant", "content": "Thanks for buying — how was it?", "inserted_at": "2026-04-10T14:02:00Z"},
{"role": "user", "content": "I love the fabric. Contact me at [REDACTED_EMAIL] if you want more feedback.", "inserted_at": "2026-04-10T14:02:45Z"}
],
"total": 8,
"limit": 100,
"offset": 0,
"initial_draft_text": "Loved this hoodie — the fabric is soft and the fit is right for my frame.",
"final_draft_text": "Loved this hoodie. Fabric is soft, fit is great for my frame, and the color is exactly as shown.",
"initial_draft_source": "llm"
} Draft Fields
| Field | Type | Description |
|---|---|---|
initial_draft_text | string | null | The AI-generated draft shown to the shopper before they edited and submitted. Captured when the shopper first sees the review screen; not overwritten by later edits in the current flow. Null for conversations collected before this feature shipped, or for reviews submitted without reaching the review screen. |
final_draft_text | string | null | The shopper's submitted body, as stored on the review. Captured at submission; not overwritten by later edits in the current flow. Null if the shopper never submitted. |
initial_draft_source | "llm" | "synthesized" | null | How the initial draft was produced. "llm" = the language model returned the draft. "synthesized" = the chat transcript was stitched together by BetterReviews as a fallback when the model didn't return a usable draft. |
Diffing initial_draft_text against final_draft_text reveals which words the shopper added, removed, or kept from the AI's pre-edit draft — useful for authenticity signals and prompt-quality analysis.
Approve Review
PATCH /api/v1/reviews/:id/approve
Approves a pending or rejected review. It becomes visible on the storefront and triggers a Shopify metafield sync.
Optional body param expected_status: only pending is accepted (any other value returns 400 invalid_expected_status). When sent, the review is approved only if it is still waiting for approval (pending, and not being analysed or with your support team) — otherwise it returns 409 and nothing changes. Omit it to approve a rejected review.
{"ok": true, "review_id": 789, "status": "approved"} Returns 409 {"error": "already_actioned"} when the review is already approved, or changed concurrently.
Reject Review
PATCH /api/v1/reviews/:id/reject
Rejects a pending or published review. It is removed from the storefront. Any store API key that can call this endpoint (including the Slack bot's) can unpublish a live review.
Optional body param expected_status: only pending is accepted (any other value returns 400 invalid_expected_status). When sent, the review is rejected only if it is still waiting for approval (pending, and not being analysed or with your support team) — otherwise it returns 409 and nothing changes. Omit it to reject a published review.
{"ok": true, "review_id": 789, "status": "rejected"} Returns 409 {"error": "already_actioned"} when the review is already rejected, or changed concurrently. A synced (Okendo / Judge.me) review you reject stays rejected even if the source platform sends it again.
Pin (Feature) Review
PUT /api/v1/reviews/:id/feature
Pins a review for the featured reviews block: pinned reviews show first on their product page, and store-wide on pages with no product. Pinning never hides a review; when the main review list uses the Featured sort (sort=featured), pinned reviews come first there too. Only a published product review with text can be pinned — approved, not hidden, not archived, attached to a product, non-empty content. Pins show in the order you set (PUT /featured-reviews/order); a new pin goes first, and pins imported from Judge.me come after yours. The store-wide set (pages with no product) holds at most one review per product, from active products only. No body.
{"ok": true, "review_id": 789, "featured": true} Returns 422 {"error": "not_featurable"} for a pending, rejected, hidden or archived review, a review with no text, or a store review, and 409 {"error": "already_actioned"} when the review is already pinned in BetterReviews, or changed concurrently. Re-pinning a review pinned in Judge.me and imported succeeds; it then counts as your pin. A re-import never removes a pin. If a pinned review is later rejected, hidden or archived, it drops out of the block on its own.
DELETE /api/v1/reviews/:id/feature
Removes the pin (also an imported Judge.me pin). Works whatever the review's status.
{"ok": true, "review_id": 789, "featured": false} Returns 409 {"error": "already_actioned"} when the review is not pinned. Both endpoints need an API key with write scope and return 404 not_found for a review of another store.
Featured Reviews Block
The featured reviews theme block shows up to 3 reviews. On a product page: the product's pins in the order you set (a new pin goes first; imported pins after yours), then the product's highest-quality reviews (by our review analysis, any star rating). On pages with no product: one review per active product, pins first. These endpoints show exactly what the block displays and let you change it.
GET /api/v1/featured-reviews
Optional product_id (a Shopify product id); omit it for the store-wide block.
{
"scope": "product",
"product": {"id": "8123456789", "title": "Merino Crew", "handle": "merino-crew"},
"summary": {"average_rating": 4.8, "total_count": 123},
"storefront_sync": "ok",
"audiences": [
{
"key": "default",
"label": "Every shopper",
"reviews": [
{
"id": 789,
"author": "Sarah M.",
"rating": 5,
"body": "Fits my narrow feet perfectly. The heel never slips even on long walks.",
"highlight": "The heel never slips even on long walks.",
"highlight_custom": true,
"pinned": true,
"pin_source": "merchant",
"highlight_mode": "custom",
"highlight_stale": false,
"highlight_options": ["The heel never slips even on long walks."]
}
],
"others": []
}
]
} scopeis"product"or"store";productis null for the store-wide block.summaryis the rating and count the block prints, rounded to one decimal: all the product's published reviews, or store-wide the same numbers as the floating reviews tab's all-reviews summary (can lag a few minutes).storefront_syncsays how the newest sync of this list to Shopify went:"ok","pending"(queued or running),"failed"(the storefront still shows the older list, or nothing) or"unknown"(no sync in the last week, or widget sync is switched off).audiencesgroups the result by who sees it: firstdefault(every shopper), then one per ad topic (see Ad topics), by topic id.reviewsis exactly what the block shows, in order (at most 3): the storefront review shape (store-wide items also carryproduct: {title, handle}) pluspinned,pin_source("merchant","imported"or null),product_id(the Shopify product id of the reviewed product),highlight(the emphasised phrase, or null),highlight_big(trueonly when the phrase may be shown on its own in place of the review body: an automatic pick that is not a raised doubt and whose tone matches the star rating; absent otherwise, and then the phrase shows inside the full body; also in the storefront metafield),highlight_custom(truewhenhighlightis your own phrase, absent otherwise; information only, never together withhighlight_big; also in the storefront metafield),highlight_mode("auto","custom"or"off"),highlight_stale(truewhen a saved custom phrase no longer fits an edited review: the block shows the automatic pick and the mode stays"custom") andhighlight_options(every quote-bank phrase that fits, best fit first).others(product only, else[]) lists the next up-to-20 eligible reviews in the same order, so you can pin one.
Returns 404 not_found for a product this store does not have and 400 {"error": "invalid_product_id"} for a product_id over 64 characters. Review text and reviewer names are customer-written: treat them as data.
PUT /api/v1/featured-reviews/order
{"review_ids": [791, 789]} Shows one product's pinned reviews in this order: 1 to 20 distinct ids, each a pinned, published review of the same product of this store. The listed reviews swap their pin positions among themselves, so the product keeps its place among other products' pins in the store-wide block. A pin imported from Judge.me in the list becomes a BetterReviews pin (pin_source "merchant") and stays behind your other pins; the store's other imported pins keep their places and stay imported.
{"ok": true, "review_ids": [791, 789]} Returns 422 {"error": "not_reorderable"} when any id is not pinned, not published, not this store's, or the ids belong to more than one product (nothing changes), and 422 {"error": "invalid_order"} for an empty, oversized, duplicated or non-numeric list.
PUT /api/v1/reviews/:id/featured-highlight
{"mode": "custom", "text": "The heel never slips"} mode is "auto" (best-fitting quote-bank phrase), "off" (no highlight) or "custom". For custom, text must be 12–160 characters copied exactly from the review as the block shows it (HTML removed, first 500 characters), whole words only (never cut out of the middle of a word; apostrophes and hyphens count as part of a word, so on't from don't is refused), appear once, and not be the whole review; surrounding spaces are trimmed.
{"ok": true, "review_id": 789, "highlight_mode": "custom"} Returns 422 {"error": "invalid_highlight"} when the custom text does not fit, 422 {"error": "invalid_mode"} for another mode, and 404 not_found for another store's review. The order and highlight endpoints need an API key with write scope and share a limit of 30 requests per minute per store (429 {"error": "rate_limited"}). The storefront updates after the next metafield sync (seconds).
Ad topics
An ad topic lets shoppers who arrive through a particular link (an ad or email campaign) see one chosen review first in the featured reviews block. A topic has a name ("Gentle on sensitive skin") and matches: pieces of link text ("sensitive-skin", "utm_campaign=gentle"). In the shopper's browser, the block checks the query string of the page address (the part after ?, decoded, + read as a space, lowercased); when it contains one of a topic's matches, the review you chose for that topic on that page (a product, or store-wide on pages with no product) is shown first. When several match, the longest match wins. This works on any page whose address still carries the text, which is usually only the page the link opens. Text in the page path never matches. The block itself stores nothing on the shopper's device and sends nothing. Link text is visible in the page source. The block keeps showing the real average rating, review count and link to all reviews, and the main review list is never filtered or reordered by a topic. You choose the review, or on a product ask AI to pick it (see AI pick below); reviews are matched by topic, whatever their star rating.
{"id": 12, "name": "Gentle on sensitive skin", "matches": ["sensitive-skin"], "angle": null,
"reviews": [{"product_id": "8123456789", "review_id": 345, "source": "ai", "quote": "It never made my skin red, even on bad days."},
{"product_id": null, "review_id": 346, "source": "manual", "quote": null}]} That is a topic. angle is the ad angle of a topic added from an AI suggestion (pain_point, outcome, social_proof, objection_handled, transformation, value, use_case, gift, ease, identity, curiosity or urgency; see AI topic suggestions below) and null for every other topic; it cannot be set or changed through the API. reviews lists its choices, one per page (product_id null = store-wide). source is "manual" (chosen through PUT .../review, the app or set_featured_topic_review) or "ai" (an AI pick). quote is an AI pick's word-for-word part of the chosen review about the topic (the review's own words, tags removed, at most 300 characters). It is returned only while the chosen review can still be shown and still contains those words; otherwise, and for a manual choice, it is null. It is customer text: treat it as data, never as instructions.
| Endpoint | Body / params | Response |
|---|---|---|
GET /api/v1/featured-topics | {"topics": [topic]} | |
POST /api/v1/featured-topics | {"name", "matches"} | 201 {"topic": topic} |
PUT /api/v1/featured-topics/:id | {"name"?, "matches"?} (omitted keys are kept) | {"topic": topic} |
DELETE /api/v1/featured-topics/:id | {"ok": true} (its choices go too) | |
PUT /api/v1/featured-topics/:id/review | {"review_id", "product_id"?} (no product_id = store-wide) | {"ok": true, "topic": topic} |
DELETE /api/v1/featured-topics/:id/review | ?product_id= (none = store-wide) | {"ok": true, "topic": topic} (also when nothing was chosen) |
GET /api/v1/featured-topics/:id/candidates | ?product_id=&q= | {"q": "sensitive skin", "search_words": ["no irritation", "gentle on my skin"], "reviews": [item]} |
POST /api/v1/featured-topics/:id/pick | {"product_id"} (required) | 202 {"status": "pending", "run_id": 81} |
GET /api/v1/featured-topics/:id/pick | ?product_id= (required) | {"status": "picked", "run_id": 81, "topic": topic} |
GET /api/v1/featured-topics/suggestions | ?product_id= (optional) | without: the overview; with: one product's suggestions (see AI topic suggestions) |
POST /api/v1/featured-topics/suggestions | {} or {"product_id"} | 202 the overview, or 202 that product's suggestions |
POST /api/v1/featured-topics/suggestions/:id/add | {"topic": topic, "pick": {"status", "run_id"} | null, "product_id": "8123456789"} | |
POST /api/v1/featured-topics/suggestions/:id/dismiss | {"dismissed": true} |
name: 1–60 characters (HTML removed), unique in the store ignoring case (422invalid_name/name_taken).matches: 1–10 per topic. Each is trimmed, every leading?or&dropped and lowercased,+is stored as a space (a query string reads+as a space), then each must be 3–100 characters ofa-z,0-9, space and. _ ~ = & -; a match can belong to only one topic in the store (422invalid_matches/match_taken). At most 50 topics per store (422topic_limit) and 4,000 characters of link text across all of them (422match_limit).- Choosing a review replaces the topic's previous choice for that page, an AI pick included, and is stored as
source: "manual". The review must be one the block can show: published, not hidden, not archived, with text (422not_featurable). For a product it must be that product's review (422wrong_product); store-wide, a product review of an active product. A page holds at most 6 different topic reviews (422page_full). candidatessuggests up to 10 reviews that mention the topic, from the words ofq(default: the topic name) found in the review title, text or tags: first the reviews holding all the words, then, to fill up to 10, those holding any of them, each group ranked by text relevance, whatever their star rating. For a product, its reviews the block can show; store-wide, those of active products.qechoes the words searched (letters and digits only, lowercased, at most 10); very common English words such as "the" or "on" never match. No match returns an empty list. Search words: shortly after a topic is created or renamed, an AI call writes up to 8 short phrases customers use for it (from the topic name only; no review is sent). When you search one product (product_idgiven) with noq, or withqequal to the topic name, these also count: reviews holding all the words of the name or all the words of any one phrase come first, then those holding any single word.search_wordslists the phrases used and is[]for any otherq, store-wide, or until they are written for the topic's current name (after a rename the old ones are ignored; if writing them fails, or the store is past about 100 topic changes in a day, there are none until the topic is next changed). It is also[]when the widened search ran out of time and was run again by the topic name alone.qstill echoes only the words of the topic name. Items have the same shape asGET /featured-reviewsitems.422too_broadwhen the words are so common the search would take too long (use more specific words). Limit: 30 requests per minute per store, shared with thefind_featured_topic_reviewsMCP tool.- AI pick (
POST .../pick): AI picks the review shown first for the topic on ONE product. The job runs in the background, usually in a few seconds and never longer than 5 minutes; pollGET .../pick(every 2 s is fine) untilstatusis no longerpending. The model is sent the product title, the topic name and the title and text of the product's reviews the block can show (all of them up to 100, else the 15 best text matches by the topic name and its search words), numbered, never ids, star ratings, reviewer names or emails, or order data. Email addresses and phone numbers we detect in the titles and text, including ones written with HTML entities, are removed before sending (best effort, the same scrub as AI review summaries; other details a reviewer wrote are sent as written). Reviews stop being added once their titles and text pass 120,000 bytes, so long reviews mean fewer are sent: when all of a product's reviews are sent, the newest are the ones kept; otherwise the best matches. It returns up to 3 picks, best first, each with a quote that must be word for word in that review (checked by the server; at least 20 characters). The storedquoteis the review's own matching words (tags removed), not the model's copy, at most 300 characters. The first that passes the same checks asPUT .../review, and is still the review the model was sent (not edited or redacted since), becomes the choice (source: "ai",quote); up to 2 others are saved as fallbacks: when the chosen review can no longer be shown (rejected, hidden, archived), the block shows the first fallback that can, without a quote. Fallback ids are not returned. A choice made by the merchant is never replaced: a manual choice already there is422manual_choice(clear it first).PUT .../reviewalways makes a manual choice, also with the id of the review AI picked, so use it to keep an AI-picked review from being picked again by the automatic refresh (see AI topic suggestions); the app's Keep this review button does exactly this. The product's choice is read when you ask, and the pick lands only if it is still the same then. Choosing a review withPUT .../reviewor clearing the choice withDELETE .../reviewwhile a run is pending ends that run at once (statusnone): AI never puts a pick back after either. Renaming the topic (PUT /featured-topics/:idwith a newname) ends its pending runs the same way. An existing AI pick is replaced only by a new pick that lands; when the new run finds nothing, the old pick stays. Free on every plan, no AI credits.POSTerrors:422product_required(noproduct_id: store-wide picks are not offered),manual_choice,pick_limit(200 runs per store in any 24 hours, and a ceiling of 5,000 across all stores in any 24 hours, so a store can get it below 200 on a busy day);404not_found(topic or product);400invalid_product_id(over 64 characters). While a run for the same topic and product ispendingand less than 5 minutes old,POSTreturns that run again and starts nothing, unless the automatic refresh started that run: thenPOSTends it (none) and starts its own run, with none of the refresh's limits on which reviews are sent ("Pick again" in the app always wins over an automatic pick). Write scope; counts toward the 30 per minute limit of the topic writes.GETstatus:pending;picked(the choice landed:topic.reviewshas it);none(no review clearly backs up the topic, nothing to choose from, or the choice changed after you asked: aPUTorDELETE .../reviewon this topic and product ends a pending run asnoneat once, and aPOSTends a pending run of the automatic refresh the same way);failed(the AI call failed on the job's last try, or the run did not finish within 5 minutes: it is cancelled and never lands later; the job is tried at most 3 times; also at once, with no AI call, when the store is no longer installed);never(no run yet for this topic and product,run_idnull). The newest run is shown, except a run the automatic refresh started (see AI topic suggestions): it is shown only whilepending(and under 5 minutes old) or oncepicked. One that found nothing, failed (also when automatic refresh was switched off before its job ran) or expired is skipped, and the run before it is shown instead (neverwhen there is none). Sostatuscan readpendingorpickedwithout aPOST, but nevernoneorfailedfor a pick nobody asked for.404not_found(topic),400invalid_product_id,422product_required. Read scope is enough.
- AI topic suggestions (
/featured-topics/suggestions): AI reads ONE product's reviews and proposes ad topics in two lists:main(up to 8 topics that at least 2% of the product's reviews mention, and at least 3) andgems(up to 6 rarer topics, often specific and vivid). Nothing reaches the storefront until you add one. Free on every plan, no AI credits.- What starts a run. A
POST, or the automatic refresh below; aGETnever starts one.POSTwith{}is the store's first open: once per store, ever, it starts a run for each of the store's top 10 active products by number of reviews the block can show (published, not hidden, not archived, with text) dated in the last 365 days (the date the widget shows; for an imported review, its original date), then by all such reviews, counting only products with at least 20 reviews the block can show. The firstPOST {}is recorded whatever it found (even when no product had 20 reviews, so nothing started); every laterPOST {}starts nothing and just returns the overview. A product that reaches 20 reviews later needsPOST {"product_id"}.POST {"product_id"}starts a run for that product ("Find topics" in the app). When automatic refresh is on, a background job (every 3 hours) also runs a product again on its own, for an installed store with storefront sync on: a product that has a review chosen for an ad topic, an earlier run that finisheddoneornone(or an earlier refresh run that started, whatever its outcome: one that ran and failed, found nothing or expired uses up its growth step; one stopped before it started, because automatic refresh was switched off, the store is no longer installed or it did not start within 60 minutes, does not, so the product is still due at the next run of the job), and still at least 20 reviews the block can show, once at least 5 new reviews the block can show, and at least 20% of the count at that run, have come in since that run, counting only trusted reviews: reviews marked verified buyer, and reviews from the store's own review requests, CSV imports or Feefo. Reviews from Judge.me, Okendo, Yotpo or Loox count only when marked verified buyer (anyone can post on those platforms' own review forms, and such reviews can reach us by live sync; a review with no verified mark counts as unverified); reviews sent through the public review form never count. "New" means stored by us since that run, so reviews imported now count whatever date they show. When it starts such a run it also asks the AI pick again, as its own run, for each of that product's topics whose review AI picked (never a merchant's choice, never a topic with no review chosen); the review shown stays while the model still picks it, and only trusted reviews (as above) that we stored, and that were last changed, at least 72 hours ago (a review whose text a platform update replaced waits another 72 hours), plus the review shown, are sent. Such a pick only ever updates an AI pick still there: when the merchant chose a review or removed the pick meanwhile, it changes nothing, so it never puts back a pick that was removed. A product's refresh starts only when all of these picks can be asked within the refresh's limits (at most 50 automatic picks per run of the job across all stores, the most topics a store can have, and the store under 100 and all stores under 4,000 picks in 24 hours); otherwise the product waits for a later run of the job. A product whose topics all have a review you chose still gets its suggestion refresh. Each run of the job refreshes at most 3 products per store and 20 across all stores. These runs count towardsuggestion_limitandpick_limitbut stop at 20 runs (1,500 across all stores) and 100 picks (4,000 across all stores) in 24 hours, leaving the rest for you. When automatic refresh is switched off, its runs already queued endfailedwith no AI call when their job runs (neither a suggestion run nor a pick run is then shown). Sostatuscan readpendingwithout aPOST; a refresh run that fails or finds nothing is not shown (statusand the suggestions stay those of the earlier run). - What the model is sent. The product title and the title and text of the product's reviews the block can show, numbered 1 to N, never ids, star ratings, reviewer names or emails, or order data. Repeated identical texts are sent once. Each title is cut to 80 characters and each text to 700. Email addresses and phone numbers we detect are removed first (best effort, the same scrub as the AI pick). One call reads at most 600 reviews and 350,000 bytes of review titles and texts. Above that (more than 600 reviews, or long or multi-byte texts), the reviews are read in up to 3 groups of at most 500 reviews and 350,000 bytes each, and a last call merges the groups' topics; above 600 reviews they are a random sample of at most 1,500. Reviews that fit in no group are left out and never numbered.
gemsare asked for only when at least 50 reviews are read. - What the model is asked (prompt
featured_topics_v5): things shoppers praise about the product itself, not the shop, another product, a cause or the reviewer's own life; each topic a real claim (not what the product does by definition, not a bare product type, not "good quality"); two topics that would lead to the same ad merged into one; names plain and exact (nothing the reviews do not say, spelled as the reviews spell it, no specific price or discount, no competitor brand names, no trademarked characters); each topic backed by at least 2 different reviewers, its 2 proofs from 2 different reviews; and, for each topic, the review numbers that say the opposite. Contested topics are dropped in our AI service, before the server's checks below: on each reading call (not the merge call), a topic is left out when at least 2 reviews say the opposite and they are at least a fifth of the reviews for it (the reviews the model lists or quotes for it among those sent, or its estimate, whichever is larger; a review for the topic never counts as opposite). At most 6 opposing reviews are read, so this only removes topics backed by about 30 reviews or fewer; for bigger topics only the model's own instruction to leave contested topics out applies. This rests on the model's own reading and still misses some. The opposite-review numbers are never returned or stored. Angle labels follow fixed rules: a plain quality of the product (color, feel, look, materials) isoutcome;use_caseonly for a named use or occasion;social_proofonly when others notice or recommend it or reviewers keep buying it;identityonly when reviewers say who they are;curiosityonly for an unexpected detail. These are instructions to the model, not guarantees: read the quote before adding a topic. - What the server checks (the reply is untrusted): names follow the topic
namerule, and a name that looks like a web address, or already proposed in this run, or already added or dismissed for this product, is dropped; the angle must be one of the 12 above, else null; up to 8 search words; each topic keeps at most 2 proofs, each a quote found word for word in the review it names (at least 20 characters; a quote found in exactly one other review of the run is moved to it); a topic with no valid proof is dropped.support_countis an estimate of how many of the product's reviews say the topic. The model is asked how many of the reviews it was sent say it and which ones; the server keeps only review numbers it sent in that call, takes the larger of the two counts (never more than the reviews in that call) and scales it toreview_count_at_run; after a merge, the counts of the group proposals merged into the topic are added up. It is not a word search and tends to run low for the most mentioned topics, so showfrequencyrather than the number. The estimate alone decides the list, whichever list the model put a topic in:mainwhen it is at least 2% ofreview_count_at_runand at least 3 (the 8 highest, highest first); otherwise a gem when gems were asked for and it is at least 2 (at most 6; a merged gem whose proposals cannot be traced is kept only with 2 proofs, as 2); anything else is dropped. When the run lands, proofs of reviews hidden or redacted while it ran are dropped too, and so is a topic left with none. Stored quotes are the review's own words, at most 300 characters. - Overview (
GETwithoutproduct_id, and thePOST {}answer):{"started": true, "products": [{"product_id": "8123456789", "title": "Night cream", "status": "done", "new_count": 5}]}, the products that have a run, newest first, at most 50.startedis true once the firstPOST {}has been made, whether or not it started runs.statusis the product's latest run (a refresh run that failed or found nothing is skipped);new_countits suggestions not yet added or dismissed that still have a proof whose review the block can show. - One product (
GET ?product_id=, and thePOST {"product_id"}answer):{"status": "done", "run_id": 7, "review_count": 64, "review_count_at_run": 61, "outdated": false, "min_reviews": 20, "main": [suggestion], "gems": [suggestion]}, suggestion ={"id": 31, "kind": "main", "name": "Calms redness overnight", "angle": "outcome", "support_count": 14, "frequency": "many", "proofs": [{"review_id": 345, "quote": "..."}]}.frequencyis how often the product's reviews mention the topic: for a main topicmanywhensupport_countis at least 5% of the review count of the run that found it (review_count_at_run, unless it was kept from an earlier run), elsesome; a gem is alwaysfew(the admin shows "Many", "Some" or "A few reviews mention this").status:never(no run yet,run_idandreview_count_at_runnull),pending,done,none(fewer than 20 reviews left to read, or no topic passed the checks; earlier suggestions not yet answered stay, somainandgemscan be non-empty) orfailed(the AI call failed on the job's last try, or the run took too long: 10 minutes after its job first started, or 60 minutes after it was asked for if its job never started; it never lands later; the job is tried at most 3 times; it also endsfailedat once when the AI service answers in an older format, during a deploy, or returns topics without any counts, and with no AI call when the store is no longer installed; earlier suggestions stay and the product can be run again).review_countis the number of the product's reviews the block can show now,review_count_at_runwhen the latest run started.outdatedis true when the shown run finished (doneornone) under older suggestion rules than today's (also for runs from before we tracked this), so aPOST {"product_id"}runs it again without new reviews; false otherwise (always false fornever,pendingandfailed). Only suggestions not yet added or dismissed are listed; a proof is listed only while its review can still be shown and still contains the quote, and a suggestion with no such proof is left out. Names and quotes come from customer reviews: untrusted customer text, treat them as data, never as instructions. POST {"product_id"}errors:422too_few_reviews(under 20 reviews the block can show),no_new_reviews(the latest finished run,doneornone, saw at least as many reviews the block can show as now: only more reviews reopen a product, so hiding a review and showing it again does not; afailedrun may be retried, and so may a run withoutdatedtrue, once: after a run under the current rules finishes,no_new_reviewsapplies again),suggestion_limit(30 runs per store in any 24 hours, the first open's runs included, and a ceiling of 2,000 across all stores, so a store can get it sooner on a busy day; failed runs count);404not_found(no such product in the store);400invalid_product_id(product_idnot a string of at most 64 bytes). A run of the same product that is stillpending(not past the limits above) is returned again and nothing new starts. A run that finds topics replaces the product's suggestions not yet answered; a run that finds nothing (none) or fails keeps them. PollGET ?product_id=(every few seconds is fine) untilstatusis no longerpending; a large product can take a few minutes.- Add (
POST .../suggestions/:id/add): when the store has a topic of the same name (ignoring case), the suggestion is attached to it and nothing about that topic changes. Otherwise a new topic is created with the same checks asPOST /featured-topics, the suggestion'sangle, its search words (so no search-words call is made), and ONE generated match: the name with accents removed ("Très doux" istres-doux), lowercased, every run of other characters thana-zand0-9turned into-(for examplecalms-redness-overnight), at most 90 characters, ortopic-<suggestion id>when that leaves under 5 characters, with-2,-3and so on added when another topic uses it. Shoppers see the topic's review only when the ad's link contains the match: put it in the ad's link, or change it withPUT /featured-topics/:idto text the ad's link already contains. Then an AI pick is asked for the suggestion's product, asPOST .../pick;pickis null when that is refused (manual_choice,pick_limit).404not_found(no such suggestion in the store, or already added or dismissed),422topic_limit,match_limit. - Dismiss (
POST .../suggestions/:id/dismiss): the suggestion is no longer listed, and later runs never suggest that name again for this product. Idempotent (an added or dismissed one returns{"dismissed": true}too);404not_found. GETneeds read scope; thePOSTs need write scope and count toward the 30 per minute limit of the topic writes.
- What starts a run. A
GET /featured-reviewsadds one audience per topic afterdefault:{"key": "topic:12", "label": "<name>", "topic": {"id", "name", "matches"}, "chosen_id": 345, "chosen_source": "ai", "chosen_quote": "...", "reviews": [...], "others": []}.reviewsis exactly what those shoppers see: the chosen review first, then the default list without it, at most 3.chosen_idis the review those shoppers see first: the chosen review, or for an AI pick whose review can no longer be shown its first fallback that can. It is null when nothing is chosen for this page or no chosen or fallback review can be shown (rejected, hidden, archived);reviewsthen equals the default list.chosen_sourceis the page's choicesource("manual"/"ai", null without a choice; a hidden manual choice still reads"manual") andchosen_quotethe AI pick's quote while its own review is the one shown and still contains those words (otherwise null, and null for a fallback or a manual choice).- Another store's topic, review or product is
404not_found. Aproduct_idover 64 characters is400invalid_product_id. Writes needwritescope and share the 30 per minute limit of the order and highlight endpoints. The storefront updates after the next metafield sync.
Delete Review
DELETE /api/v1/reviews/:id
{"ok": true} Upsert Merchant Reply
PUT /api/v1/reviews/:id/reply
Create or update the merchant reply on a review. One reply per review — subsequent upserts overwrite. HTML tags and unicode control characters are stripped server-side. Max 10,000 characters. Triggers a metafield resync so the storefront widget reflects the change. Rate-limited to 30 mutations per store per minute, shared with the reply_to_review MCP tool. A body that is empty after stripping HTML (or a first reply with no body_raw) returns 422 validation_failed and stores nothing. The reply is always saved public: it replaces any existing reply, including a private reply sent to the customer from a notification email (shown with is_private: true).
Request
{"body_raw": "Thanks for the feedback — glad it shipped fast."} Response (200)
{
"ok": true,
"reply": {
"id": 42,
"review_id": 789,
"body_raw": "Thanks for the feedback — glad it shipped fast.",
"body_html": "Thanks for the feedback — glad it shipped fast.",
"author_name": null,
"is_private": false,
"created_at": "2026-04-18T12:00:00Z",
"updated_at": "2026-04-18T12:00:00Z"
}
} Delete Merchant Reply
DELETE /api/v1/reviews/:id/reply
Removes the merchant reply attached to a review. Idempotent — 200 even if no reply existed. Triggers a metafield resync so the widget drops the reply.
{"ok": true} Top Reviews
GET /api/v1/reviews/top
The best review(s) for one product, ranked in SQL. No model call, no AI credit spend. This is the single source of truth for which review to put in an ad, on a landing page, or in an email.
Requires a store-scoped API key — a storeless (global) key gets 403 {"detail": "Store-scoped API key required"}.
Query Parameters
| Param | Type | Default | Description |
|---|---|---|---|
product_id | string | — | Required. Shopify product ID: bare numeric (7891234567890), shopify-<id> or gid://shopify/Product/<id>. Max 64 bytes; must be numeric after normalization. |
objective | string | marketing | marketing (AI quality score, marketing potential, verified buyer, photos, length) or helpful (helpful votes, then recency). |
limit | integer | 5 | 1–20. |
min_rating | integer | — | 1–5. Only reviews rated at or above this. |
require_media | boolean | — | true restricts to reviews with at least one visible photo/video. Any non-boolean value is ignored (no error). |
exclude_ids | array or string | [] | Review IDs to leave out. Accepts exclude_ids[]=1&exclude_ids[]=2 or exclude_ids=1,2. Non-numeric entries are dropped silently; more than 50 parsed IDs is an error. |
Only reviews that are approved, not hidden and have non-empty content are ever returned. The query is product-scoped: even if the product belongs to a Review Group, group siblings are never pooled in — a top review is always a review of the product you asked for.
The marketing ranking has no star-rating term — it ranks on quality score, marketing potential, verified buyer, photos and length. Pass min_rating=4 if you only want 4–5★ reviews.
Rate limited to 60 requests per minute per store, a bucket shared with the top_reviews MCP tool. Over the limit: 429 {"detail": "rate_limited"}.
Errors
Every error answers with the envelope {"detail": "<code>"}.
| Status | Code | Cause |
|---|---|---|
| 403 | Store-scoped API key required | The key is not scoped to a single store. |
| 422 | invalid_product_id | Missing, longer than 64 bytes, or not numeric after normalization. |
| 422 | invalid_objective | Not marketing or helpful. |
| 422 | limit_out_of_range | Not an integer in 1–20. |
| 422 | invalid_min_rating | Not an integer in 1–5. |
| 422 | exclude_ids_too_many | More than 50 parseable IDs. |
| 429 | rate_limited | More than 60 requests in a minute for this store (shared with the top_reviews MCP tool). |
Request
curl "https://api.betterreviews.app/api/v1/reviews/top?product_id=7891234567890&objective=marketing&limit=2" \
-H "X-API-Key: YOUR_API_KEY" Response (200)
{
"data": [
{
"id": 48213,
"product_id": "7891234567890",
"rating": 5,
"title": "Held up through two winters",
"content": "I wear this every day walking the dog in Minnesota...",
"reviewer_display_name": "Dana R.",
"is_verified_buyer": true,
"word_count": 112,
"quality_score": 9,
"rights_status": "cleared",
"created_at": "2026-02-11T09:14:00Z",
"media": [
{"id": 9912, "url": "https://media.betterreviews.app/...", "type": "image"}
]
}
],
"tier": "A",
"coverage": {"total": 418, "analyzed": 266},
"objective": "marketing",
"product_id": "7891234567890"
} Review objects carry no reviewer email or customer ID — only the public display name. rights_status (none / requested / cleared) tells you whether you already hold permission to use the review in marketing.
Tier and coverage. coverage counts every review that matched the filters for this product: total and analyzed (how many have an AI analysis blob).
tier: "A"— at least one matching review has been AI-analyzed. Themarketingranking uses the analysis signals, and analyzed reviews always sort above unanalyzed ones.tier: "C"— nothing on this product has been analyzed yet (typical for a freshly imported catalogue). Forobjective=marketingthe server transparently falls back to the analysis-freemarketing_freecomposite, so you still get a sensible ordering. Results are usable, just weaker signal — not an error.
Not the same as the Klaviyo feed. The Klaviyo "best reviews" newsletter feed has its own store-wide ranking (quality score, then rating, then recency) and may surface a different review for the same product.
Review Statistics
GET /api/v1/reviews/stats
{
"total_reviews": 307713,
"pending_count": 12,
"approved_count": 306000,
"rejected_count": 1701,
"average_rating": 4.3,
"reviews_by_rating": {"1": 5000, "2": 10000, "3": 30000, "4": 80000, "5": 182713},
"verified_reviews": 250000,
"verified_percentage": 81.2,
"total_helpful_votes": 15000,
"reviews_last_30_days": 4500,
"reviews_last_7_days": 1100,
"latest_review_date": "2026-03-27T10:00:00Z"
} Review Sentiments
GET /api/v1/reviews/sentiments
How many of your published reviews (approved and not hidden) carry each AI sentiment. Reviews without a sentiment are left out. Values are positive, neutral, negative and mixed; total is the number of sentiment rows, not reviews.
{
"sentiments": [
{"sentiment": "positive", "display_name": "Positive", "review_count": 812},
{"sentiment": "mixed", "display_name": "Mixed", "review_count": 64}
],
"total": 2
} Keywords
GET /api/v1/reviews/keywords
The keywords the AI tagged on your reviews, most-mentioned first. GET /api/v1/reviews/keywords/autocomplete takes the same parameters and returns the same shape (use it for type-ahead).
| Param | Type | Description |
|---|---|---|
q | string | Optional. Case-insensitive prefix match on the keyword name. |
limit | integer | Page size (default 20). |
offset | integer | Pagination offset (default 0). |
{
"keywords": [
{"name": "soft fabric", "tag_group": "material", "review_count": 41}
],
"total": 230,
"limit": 20,
"offset": 0,
"has_more": true
} review_count counts keyword mentions, across every review status. Filter the review list by a keyword with GET /reviews?keyword=….
Tag Groups
GET /api/v1/reviews/tag-groups
Keyword tags grouped by topic (quality, size & fit, value, shipping and so on), with the number of distinct reviews in each.
{
"tag_groups": [
{"tag_group": "size_fit", "display_name": "Size & Fit", "review_count": 57}
],
"total": 1
} Product Autocomplete
GET /api/v1/reviews/products/autocomplete
Products that have published reviews, most-reviewed first: {products: [{external_product_id, review_count, latest_review_date}], total, limit, offset, has_more}. q matches part of the product ID, not the title (use GET /reviews/products?search= to search by title). limit defaults to 20, offset to 0.
Similar Reviews
GET /api/v1/reviews/:id/similar
Your reviews closest in meaning to review :id, ranked by embedding similarity. No model call at request time. limit defaults to 10.
{"similar": [{"review_id": 4821, "similarity": 0.91}]} Returns only IDs and scores — fetch each with GET /reviews/:id. The list is empty when review :id has no embedding yet (reviews are embedded in the background after analysis).
Search Reviews
POST /api/v1/reviews/search
Hybrid (semantic + keyword) search over review content. Behavior diverges by API key scope:
- Bot-scope keys (v3.1 T9, 2026-05): in-Elixir hybrid search via the
hybrid_search_reviewsPostgreSQL function. The server embedsquerythrough a Python/internal/embedendpoint (1536-dim, 5s timeout) and ranks results. Fails closed with 503 search_unavailable on embed errors — no silent degrade to lexical-only. Per-store rate-limit 60/minute; IP rate-limit 120/minute. - Non-bot keys: proxied to Python's natural-language search endpoint (unchanged from pre-T9 behavior).
Requires an active paid subscription (Good, Better, Studio or a legacy paid plan): on the Free plan, or when the subscription is pending, cancelled or frozen, this returns 402 subscription_required. The same applies to nl-search, ask and summary.
Request
{
"query": "fabric quality",
"limit": 10,
"date_from": "2026-01-01",
"date_to": "2026-05-23",
"min_rating": 4,
"product_queries": ["print pattern", "digital pattern"],
"product_type": "Apparel",
"tags": ["sale", "eco"]
} The store is always taken from the API key: a store_id in the request body is ignored on every /reviews/* endpoint that accepts one (search, ask, summary, webhooks/subscribe, connect, disconnect, metrics, and the internal routes).
Filter parameters
query(required, 1–256 chars)limit(1–20, default 20)min_rating(1–5)product_query(single fuzzy match, ≤200 chars) — mutually exclusive withproduct_queriesproduct_queries(array, max 5 entries) — multi-product OR; unresolved entries surface inmeta.unresolved_queriesproduct_type(string, ≤256 chars) — Shopify product type, exact matchtags(array, max 10 entries) — OR semantics across the product's tag listdate_from/date_to(ISO8601) — bounds onreview_created_at
Error responses
- 422:
invalid_query,query_too_long,invalid_limit,invalid_min_rating,invalid_date,invalid_date_range,date_out_of_range,mutually_exclusive_product_filter,product_queries_unresolved,too_broad - 429: per-store bucket (60/min) or IP bucket (120/min) exhausted
- 503
search_unavailable: Python embed failed; clients should fall back toGET /api/v1/reviewswith filters
AI Review Summaries
An "AI review summary" is a short paragraph (≤ 600 chars) plus up to 5 topic lines, written by AI once a night from a product's (or review group's, or the whole store's) approved reviews and published on the storefront labelled "Summarized by AI". Counts and percentages come from the reviews, never from the model. A scope qualifies with at least 5 approved, visible reviews with text and an active product (a group: any active member). Every plan. Not the same as the AI product pages "AI summary", nor as POST /reviews/summary (an on-demand AI summary over your reviews), which needs an active paid subscription.
The store is always the API key's store. A product_id that belongs to a review group resolves to the group's summary.
Get a summary
GET /api/v1/review-summaries?product_id=<id> or ?scope=store
{
"summary": {
"text": "Shoppers love the warmth and the neat stitching; a few found it smaller than expected.",
"topics": [{"name": "Warmth", "mentions": 42, "positive_pct": 95, "line": "Most say it is very warm."}],
"review_count": 128,
"positive_pct": 94,
"negative_pct": 3,
"locale": "en-US",
"generated_at": "2026-10-26T05:14:00Z",
"hidden": false,
"status": "ready",
"can_regenerate": false,
"regenerate_blocked_reason": "already_current",
"next_regenerate_at": null
},
"enabled": true,
"eligible": true
} summary is null when none has been written yet — and also when a summary was removed because the scope stopped qualifying or after a customer data-deletion request; check eligible (false = the scope doesn't qualify now; true = a new summary is written on the next nightly run). status: "failed" means the last attempt failed and the previous text (if any) is kept; with no previous text, text, review_count, positive_pct, negative_pct and generated_at are null and topics is []. regenerate_blocked_reason is null, already_current, daily_limit or store_limit. 400 bad_request without product_id or scope=store; 404 not_found when the product doesn't exist in the store.
Regenerate
POST /api/v1/review-summaries/regenerate — body {"product_id": "123"} or {"scope": "store"}. Read & Write key.
- 202
{"queued": true}— a refresh is queued (or already running). - 409
already_current— the review count, the 1–2★ count and the prompt version are unchanged since the last summary. - 429
{"error": "daily_limit" | "store_limit", "retry_at": "…" | null}— once per summary per 24 h; 50 per store per UTC day; or today's AI budget for regenerations is used up.retry_atisnullwhen it can't be known. - 404
not_found— the product doesn't exist in the store, the store isn't eligible (summaries switched off, or the store is uninstalled/paused), or the scope doesn't qualify.
Hide / unhide
POST /api/v1/review-summaries/hide and /unhide, same body. Read & Write key. 200 {"summary": {…}}; 404 when there is no summary. A hidden summary is removed from the storefront; the change is recorded in the settings audit log.
Summaries are switched on and off with the merchant admin's "Show AI review summaries" setting (review_summaries_enabled); it cannot be set with an API key.
Book a demo