Review answers

GET /review-answers

List the questions shoppers have asked about your products, most recently asked first, each with the answer that was generated from the product's reviews. One row per product per question; asking again bumps the ask count rather than adding a row. No shopper identity is stored with a question.

Requires the reviews:read permission.

Query Parameters

limitnumber

The number of records to return.

cursorstring

A pagination cursor. Fetch the next page by passing the nextCursor value from the previous response.

Request
curl \
  "https://api.cascade.dev/review-answers" \
  -H "Authorization: Bearer sk_YOUR_SECRET_KEY"
Response
{
  "data": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "productId": "550e8400-e29b-41d4-a716-446655440000",
      "productTitle": "string",
      "productSlug": "string",
      "question": "string",
      "answered": true,
      "answer": "string",
      "citedReviewIds": ["..."],
      "reviewCount": 0,
      "modelId": "string",
      "generatedAt": "2025-01-15T09:30:00Z",
      "hidden": true,
      "askCount": 0,
      "lastAskedAt": "2025-01-15T09:30:00Z"
    }
  ],
  "nextCursor": "string"
}

PATCH /review-answers/{id}

Hide a question's answer from shoppers, or show it again. A hidden answer keeps serving from cache as "the reviews do not say", so hiding one never costs a model call.

Requires the reviews:write permission.

Path Parameters

idstring (uuid)required

The ID of the question.

Body Parameters

hiddenbooleanrequired

True hides this answer: shoppers asking the question are told the reviews do not say, and no new answer is generated for it. False shows the cached answer again.

Request
curl \
  -X PATCH \
  "https://api.cascade.dev/review-answers/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer sk_YOUR_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "hidden": true
}'
Response
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "productId": "550e8400-e29b-41d4-a716-446655440000",
  "productTitle": "string",
  "productSlug": "string",
  "question": "string",
  "answered": true,
  "answer": "string",
  "citedReviewIds": ["string"],
  "reviewCount": 0,
  "modelId": "string",
  "generatedAt": "2025-01-15T09:30:00Z",
  "hidden": true,
  "askCount": 0,
  "lastAskedAt": "2025-01-15T09:30:00Z"
}