Brand & Content API

Last updated: November 17, 2026

ENTITLEMENT REQUIRED

AI-powered brand analysis and content generation from your review data.

Availability: the brand analysis, content generation, and question generation endpoints in this section are entitlement-gated; without the required AI content entitlement they return 403 entitlement_required. The Better and Studio plans include these entitlements; the Good plan does not. On legacy plans (no longer sold), they are available on Growth and above, and on legacy Pro and Enterprise; stores on the legacy Starter plan do not have them. The review Q&A endpoints (POST /reviews/ask, POST /reviews/summary) are not entitlement-gated, but like every LLM-backed endpoint in this section they require an active paid subscription — Good, Better, Studio or a legacy paid plan (402 subscription_required otherwise). The Free plan does not include them, and neither does a cancelled store (cancelling returns the store to Free), so those stores get 403 entitlement_required on the gated endpoints on top of the 402 above. Keyword-research status reads are available to any authenticated store. See Pricing.

All three generation endpoints (/content/features, /content/seo-description, /questions/generate) take the store from the API key: whatever store_id you send in the body is overwritten with the authenticated store, so a request can never read another store's reviews. Sending it alongside external_product_id is still what opts the request into review-grounded generation — omit both to generate from the topic alone. A key that is not bound to a single store never gets past the entitlement gate on these three endpoints: it receives 403 {"error": "entitlement_required", "feature": "product_pages"}.

Like every POST that is not a pure read, those same three endpoints need a Read & Write key — they run a paid AI model on your behalf — so a Read-only key gets 403 {"detail": "Insufficient scope. This endpoint requires 'write' scope."} even though nothing is written. The same applies to POST /brand/analyze-brand and POST /seo/keyword-research. Only POST /reviews/ask and POST /reviews/summary are read-shaped and accept a Read-only key; so does the keyword-research status read, which is a GET.

Every request body on the synchronous endpoints on this page is validated by schema: a missing or out-of-range field answers 422 with the offending field named, before any model is called. POST /seo/keyword-research is the exception: it answers 202 immediately — the row it inserts validates only the job id — and its own constraints (a parseable url, at most 20 seed_keywords) are enforced later by the job, so a bad body surfaces as a failed job rather than a 422.

Analyze Brand

POST /api/v1/brand/analyze-brand · Read & Write key required

Crawls your storefront and extracts brand positioning, tone of voice, target customer, and visual style.

Request fields

FieldTypeRequiredNotes
shop_urlstring (URL)yesAbsolute http/https URL of the storefront to analyze.

Request

{
  "shop_url": "https://yourstore.com"
}

Response (200)

{
  "brand_analysis": {
    "tone_of_voice": {
      "formality": "casual",
      "enthusiasm": "enthusiastic",
      "respect": "respectful",
      "humor": "balanced",
      "consistency": "Highly consistent across all pages",
      "examples": ["We're obsessed with quality!", "Your new favorite tee is waiting"],
      "description": "Friendly, enthusiastic brand voice that balances professionalism with approachability"
    },
    "target_customer": {
      "demographics": "Women 25-40, urban professionals, middle to upper-middle income",
      "psychographics": "Value quality and sustainability, seek timeless style over fast fashion",
      "pain_points": [
        "Difficulty finding high-quality basics",
        "Want sustainable options without compromising style"
      ]
    },
    "brand_values": ["Sustainability", "Quality craftsmanship", "Timeless design"],
    "price_positioning": "premium",
    "visual_style": ["Minimalist aesthetic", "Neutral color palette", "Clean product photography"],
    "unique_selling_points": [
      "Made from organic cotton",
      "Lifetime warranty on all products",
      "Carbon-neutral shipping"
    ]
  },
  "metadata": {
    "pages_analyzed": 5,
    "page_types": ["homepage", "about", "product"],
    "analysis_confidence": "high",
    "timestamp": "2026-10-16T09:12:00Z"
  }
}

formality is one of casual / neutral / formal, enthusiasm one of matter-of-fact / balanced / enthusiastic, respect one of irreverent / balanced / respectful, humor one of serious / balanced / funny. price_positioning is one of budget / mid-range / premium / luxury, analysis_confidence one of low / medium / high.


Generate Features

POST /api/v1/content/features · Read & Write key required

Generates up to 5 short feature/benefit lines for one product, best first.

Request fields

FieldTypeRequiredNotes
product_titlestringyes1–500 chars, non-blank after trimming.
product_descriptionstringnoMax 5000 chars.
product_typestringnoMax 200 chars.
brand_voicestringnoMax 100 chars. Defaults to "professional".
store_idintegernoIgnored as an identity — always overwritten with the authenticated store. Send it together with external_product_id to opt into review-grounded generation.
external_product_idstringnoProduct to read reviews for. Bare numeric ("7421334290"), a shopify--prefixed value, or a product GID all work — the review search strips the shopify- / gid://shopify/Product/ prefix on both the value you send and the stored one. A value that matches no review is not an error: you get 200 with source: "product_only", reviews_used: 0 and source_review_ids: [], generated from the product fields alone. Sending it without store_id is 422.
feedbackstringnoMax 1000 chars. What to change on a regeneration.
previous_featuresstring[]noPreviously generated lines, so the regeneration differs.
content_intelligenceobjectnoContent-intelligence payload from the optimizer's prepare step.
existing_allocationsobjectnoAllocations already used by other widgets, to avoid duplicate copy.

Request

{
  "product_title": "Merino Wool Crew Sock",
  "product_type": "Socks",
  "brand_voice": "casual",
  "store_id": 89712787790,
  "external_product_id": "shopify-7421334290"
}

Response (200)

{
  "success": true,
  "data": {
    "version": "0.1",
    "features": [
      "Premium materials for lasting durability",
      "Ergonomic design for all-day comfort",
      "Easy to clean and maintain"
    ],
    "source": "review_enhanced",
    "reviews_used": 12,
    "source_review_ids": [48213, 48190, 47755]
  },
  "meta": {"request_id": "req_abc123", "processing_time_ms": 850}
}

source is product_only or review_enhanced. reviews_used is 0 and source_review_ids is [] whenever the request was not review-grounded (or the review search returned nothing). On a review-grounded request the search retrieves at most 15 reviews (20 on /questions/generate) and only whole reviews that fit a 20,000-character review-block budget are passed to the model: reviews_used counts exactly those and source_review_ids names exactly those — the reviews whose text actually reached the model — so both can be lower than the number of reviews the search found. Each review's own text is additionally truncated to its first 2,000 characters before it reaches the model.


Generate SEO Description

POST /api/v1/content/seo-description · Read & Write key required

Generates an SEO title plus an HTML description that works your keywords in.

Request fields

FieldTypeRequiredNotes
product_titlestringyes1–500 chars, non-blank after trimming.
keywordsstring[]yes1–20 entries. Blank strings are dropped; an all-blank list is 422.
product_descriptionstringnoMax 5000 chars — the current description.
product_typestringnoMax 200 chars.
store_id / external_product_idinteger / stringnoSame review-grounding opt-in as /content/features.
feedbackstringnoMax 1000 chars.
previous_titlestringnoMax 500 chars.
previous_contentstringnoMax 10000 chars.
content_intelligence, existing_allocationsobjectnoAs above.

Request

{
  "product_title": "Merino Wool Crew Sock",
  "keywords": ["merino wool socks", "cushioned crew sock", "odor resistant"],
  "store_id": 89712787790,
  "external_product_id": "shopify-7421334290"
}

Response (200)

{
  "success": true,
  "data": {
    "version": "0.1",
    "keywords": ["merino wool socks", "cushioned crew sock", "odor resistant"],
    "title": "Merino Wool Crew Socks — Cushioned, Odor Resistant",
    "content": "<p>Experience all-day comfort with our merino wool crew socks...</p>",
    "sections": [
      {"heading": "Superior Comfort", "content": "<p>Designed with your comfort in mind...</p>"}
    ],
    "keywords_used": ["merino wool socks", "odor resistant"],
    "source": "review_enhanced",
    "reviews_used": 8,
    "source_review_ids": [48213, 48190]
  },
  "meta": {"request_id": "req_def456", "processing_time_ms": 1200}
}

content and every sections[].content contain HTML, which the consumer must sanitize before rendering it. keywords echoes your input; keywords_used is the subset that actually made it into the copy.


Generate Questions

POST /api/v1/questions/generate · Read & Write key required

Generates related questions for a topic — for FAQ blocks, content planning, or subtopic discovery.

Request fields

FieldTypeRequiredNotes
topicstringyes1–500 chars, non-blank after trimming.
languagestringnoISO 639-1, 2–5 chars. Defaults to "en".
options.countintegerno1–20. Defaults to 10.
options.include_answersbooleannoDefaults to false.
store_id / external_product_idinteger / stringnoSame review-grounding opt-in as /content/features. When set, questions are generated from what this product's reviews actually answer.
feedbackstringnoMax 1000 chars. Bypasses the cache (see below).
previous_questionsstring[]noQuestions not to repeat. Bypasses the cache.

Request

{
  "topic": "merino wool socks",
  "language": "en",
  "options": {"count": 5, "include_answers": true},
  "store_id": 89712787790,
  "external_product_id": "shopify-7421334290"
}

Response (200)

{
  "success": true,
  "data": {
    "topic": "merino wool socks",
    "language": "en",
    "questions": [
      {
        "question": "Do merino wool socks shrink in the wash?",
        "category": "what",
        "answer": "Reviewers consistently report no shrinkage on a cold wash and low-heat dry."
      }
    ],
    "generated_at": "2026-10-16T14:30:00Z",
    "source": "gpt4o_mini_reviews",
    "cached": false,
    "store_id": 89712787790,
    "external_product_id": "shopify-7421334290",
    "reviews_used": 14,
    "source_review_ids": [48213, 48190, 47755]
  },
  "meta": {"request_id": "req_abc123", "processing_time_ms": 850}
}

category is one of what, how, why, comparison, list. answer is null unless options.include_answers was true. source is the opaque literal gpt4o_mini for topic-only generations and gpt4o_mini_reviews when reviews were read — treat both as labels, not as a promise about which model ran.

Caching. Topic-only generations are cached in a shared server-side cache and replayed with "cached": true. Review-grounded generations never touch that cache at all — when store_id and external_product_id are both present the cache is neither read nor written, so a non-empty source_review_ids always names reviews read on that same request and can never be a stale list from an earlier generation. Sending feedback or previous_questions also skips the cache on both read and write.


Ask Questions About Reviews

POST /api/v1/reviews/ask · Read-only key accepted

Natural language Q&A over your review data. Needs an active paid subscription (Good, Better, Studio or a legacy paid plan); the Free plan gets 402 subscription_required.

Request fields

FieldTypeRequiredNotes
querystringyes1–1000 chars, non-blank after trimming.
store_idintegeryesMust be a positive integer to pass validation, but the value is ignored — the authenticated store always wins. Send your own store id.
external_product_idstringnoNarrows the question to one product.
response_formatstringno"text" (default) or "json". Anything else is 422.

Request

{
  "query": "What do customers say about the sizing?",
  "store_id": 89712787790,
  "response_format": "text"
}

Response (200)

{
  "answer": "Based on 23 reviews mentioning sizing, most customers (18 out of 23) say the product runs true to size. However, 5 customers mentioned it runs slightly small and recommend sizing up if you're between sizes.",
  "sources_used": ["search_reviews"],
  "confidence": 0.89,
  "data": null
}

data is populated only when response_format is "json".


Summarize Reviews

POST /api/v1/reviews/summary · Read-only key accepted

Generates the review-summary widget sections for one product. Needs an active paid subscription (Good, Better, Studio or a legacy paid plan); the Free plan gets 402 subscription_required.

Request fields

FieldTypeRequiredNotes
store_idintegeryesPositive integer required by validation, value ignored — the authenticated store always wins.
external_product_idstringyesThe product to summarize.
limitintegerno1–100 reviews analyzed per section. Defaults to 25.
sectionsobjectnoWhich sections to generate, each optionally with regeneration config. Keys: summary, best_features, quality_feedback, top_quotes, top_review. Omit the whole field to generate all five.
sections.<name>.previous_valuestring or string[]noThe previous value, for a regeneration. String for summary, list for the others.
sections.<name>.feedbackstringnoWhat to change.
sections.<name>.review_idsinteger[]noForce these reviews instead of retrieval.
sections.<name>.exclude_review_idsinteger[]noReviews already shown, to be avoided.
featured_review_idintegernoPin one review as the hero. Bypasses retrieval entirely; an ineligible id yields an empty top_review with top_review_reason: "requested_review_invalid".
content_intelligence, existing_allocationsobjectnoOptimizer payloads; existing_allocations prevents duplicate quotes across widgets.

Request

{
  "store_id": 89712787790,
  "external_product_id": "shopify-7421334290",
  "limit": 40,
  "sections": {"summary": null, "top_quotes": null}
}

Response (200)

{
  "summary": "Customers describe the socks as warm without being bulky, and several mention wearing them on multi-day hikes without blisters.",
  "best_features": ["Cushioned heel", "No bunching in boots", "Stays odor-free for days"],
  "quality_feedback": ["Holds shape after repeated washes", "Thick but not stiff"],
  "top_quotes": [
    {
      "content": "Four days on trail and they never bunched once.",
      "author": "Marta K.",
      "verified": true,
      "rating": 5,
      "review_id": 48213
    }
  ],
  "top_review": {
    "review_content": "I bought these for a week in the Tatras...",
    "review_title": "Finally, socks that survive a long hike",
    "reviewer_name": "Marta K.",
    "is_verified_buyer": true,
    "rating": 5,
    "review_id": 48213
  },
  "top_review_reason": null,
  "source_review_ids": [48213, 48190, 47755],
  "allocations": null
}

best_features and quality_feedback are truncated to 5 entries on this endpoint. top_review_reason is null on success, or no_candidates / requested_review_invalid when top_review is empty. source_review_ids lists every review actually retrieved for the generated sections. allocations is populated only when content_intelligence was supplied.


Keyword Research

POST /api/v1/seo/keyword-research · Read & Write key required

Runs keyword research with optional Google Search Console integration. Async — returns 202.

Request fields

FieldTypeRequiredNotes
urlstringnoPage to research. Without it, the Search Console lookup is skipped.
seed_keywordsstring[]noStarting keywords, max 20.
locationstringnoCountry code (e.g. US, GB, DE). Defaults to "US".
languagestringnoLanguage code. Defaults to "en".

Any other field in the request body is ignored.

Request

{
  "url": "https://yourstore.com/products/merino-crew-sock",
  "seed_keywords": ["merino wool socks", "hiking socks"],
  "location": "US",
  "language": "en"
}

Response (202)

{
  "job_id": "uuid",
  "status": "pending"
}

Poll: GET /api/v1/seo/keyword-research/:job_id → {"id": "uuid", "status": "completed", "result": {...}, "error": null}. A store without the AI content entitlement gets {"id": "uuid", "status": "...", "available_on_pro": true} and no result.


Competitor Analysis

POST /api/v1/prospect/analyze

Analyze competitor review data for positioning insights.

POST /api/v1/prospect/scrape-reviews

Scrape publicly available competitor reviews for comparison.