Meet Toki Operator

Docs/Manage API

Reviews

Product reviews, replies, review groups, product groups and the Google Shopping feed.

Every review belongs to a review group, which sets its moderation rule, review form and eligibility rules. Only approved reviews appear on your storefront, and Toki refreshes the affected product pages in Shopify shortly after a review, reply, photo or product group changes. Queries work on any plan; mutations need a plan that includes Reviews.

Operations12 queries · 17 mutations

reviews#

Lists reviews from all your stores, newest first, in every status. Filter by review group, product, status, rating or member, and use sortKey to sort by rating or to put reviews with media or verified purchases first.

Arguments

  • reverseBoolean

    Reverse the sort order.

  • reviewGroupIdID

    Only reviews in this review group.

  • productIds[String!]

    Only reviews of these products, by numeric Shopify product ID. An empty list matches no reviews.

  • searchString

    Text to look for in the review's headline, text, pros and cons, custom question answers, product ID, order ID and external review ID, and in the reviewer's name and email. Several plain words match reviews that contain any of them. Searches shorter than 3 characters are ignored.

  • questionFilters[TokiReviewQuestionFiltersInput!]

    Only reviews with these custom question answers; a review must match every filter. Each filter names a form, a question and an answer option by the IDs used in content.forms. At most 30.

  • withMediaBoolean

    true returns only reviews with at least one photo or video, including hidden ones. false doesn't filter.

  • withDeletedBoolean

    Include deleted reviews. Defaults to false.

  • shopIdID

    Only items whose shopId equals this value.

  • productIdString

    Only items whose productId equals this value.

  • ratingFloat

    Only items whose rating equals this value. null matches items without one.

  • userIdID

    Only items whose userId equals this value. null matches items without one.

  • statusString

    Only items whose status equals this value.

  • sortKeyTokiReviewSortKey

    The field to sort by.

    CREATED_ATOLDESTRATINGLOWEST_RATINGWITH_MEDIAVERIFIED_PURCHASE

Returns

TokiReviewConnection!

A page of TokiReview in nodes, with pageInfo for the next page. Each item:

A product review by a member, collected by Toki or imported from another platform.

  • reviewIdID!
  • createdAtString!

    When the review was submitted. Imported reviews keep the date from the import file, if it has one.

  • updatedAtString!
  • deletedAtString

    When the review was deleted. Deleted reviews are only listed with withDeleted: true.

  • shopIdID!

    The store the review belongs to.

  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • productIdString!

    The reviewed product's numeric Shopify product ID.

  • productVariantIdString

    The numeric Shopify ID of the reviewed variant, when known.

  • ratingFloat

    Star rating from 1 to 5; null when the review has none.

  • contentTokiReviewContent!

    The content of the review: headline, review text, pros and cons, the reviewer's country and answers to custom questions.

  • reviewGroupIdID!

    The review group the review belongs to.

  • authorTokiReviewAuthor!

    The reviewer's name, and whether they posted anonymously.

  • userIdID

    The member who wrote the review; null when the review isn't linked to a member.

  • userTokiReviewUser

    The member who wrote the review, with their email and name.

  • orderIdString

    The order the review is linked to, which marks it as a verified purchase. Imported reviews keep the order ID or number from the import file.

  • statusString!

    pending, approved or rejected. Only approved reviews appear on your storefront.

  • sourceString

    Where the review came from: reviews:toki for reviews collected by Toki, or reviews:yotpo, reviews:judgeme, reviews:stamped or reviews:klaviyo for imported ones.

  • externalReviewIdString

    For imported reviews, the review's ID on the platform it came from.

  • collectionMethodTokiReviewCollectionMethod

    Where a review was submitted. Toki sets storefront_widget for the reviews widget on your product pages, review_page for the page a review link opens, and import for imported reviews.

    storefront_widgetwalletreview_pagemerchant_portalimport
  • metadataTokiJSON

    Extra data stored with the review. For imported reviews, import holds details from the import file, such as the platform and the product name.

  • productTitleString

    The product's title in your store; null when Toki can't find the product.

  • productImageUrlString

    URL of the product's image; null when unknown.

  • incentiveTokiReviewIncentive

    The reward the member earned for writing this review, if any. In incentiveType, points are loyalty_points, discounts and free shipping are coupon, and free gifts are free_product.

  • votesSummaryTokiReviewVotesSummary!

    How members voted on whether a review is helpful. Each member has one vote per review.

  • viewerVoteTokiReviewViewerVote

    The requester's own vote on this review, so usually null for API requests.

    upvotedownvote
  • repliesCountInt!

    Number of replies, not counting deleted ones.

  • media[TokiReviewMediaSummary!]!

    Photos and videos attached to the review, in display order, including ones hidden from the storefront.

query Reviews($first: Int) {
  reviews(first: $first) {
    nodes {
      reviewId
      createdAt
      deletedAt
      status
      content {
        headline
        body
        pros
        cons
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "reviews": {
      "nodes": [
        {
          "reviewId": "2810793e-2910-4ad1-a610-7618271077ab",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "deletedAt": "2026-10-14T09:30:00.000Z",
          "status": "active",
          "content": {
            "headline": "Headline",
            "body": "Body",
            "pros": "Pros",
            "cons": "Cons"
          }
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}
query

review#

Returns a review, or null if it doesn't exist or was deleted.

Arguments

  • reviewIdID!Required

Returns

TokiReview

A product review by a member, collected by Toki or imported from another platform.

  • reviewIdID!
  • createdAtString!

    When the review was submitted. Imported reviews keep the date from the import file, if it has one.

  • updatedAtString!
  • deletedAtString

    When the review was deleted. Deleted reviews are only listed with withDeleted: true.

  • shopIdID!

    The store the review belongs to.

  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • productIdString!

    The reviewed product's numeric Shopify product ID.

  • productVariantIdString

    The numeric Shopify ID of the reviewed variant, when known.

  • ratingFloat

    Star rating from 1 to 5; null when the review has none.

  • contentTokiReviewContent!

    The content of the review: headline, review text, pros and cons, the reviewer's country and answers to custom questions.

  • reviewGroupIdID!

    The review group the review belongs to.

  • authorTokiReviewAuthor!

    The reviewer's name, and whether they posted anonymously.

  • userIdID

    The member who wrote the review; null when the review isn't linked to a member.

  • userTokiReviewUser

    The member who wrote the review, with their email and name.

  • orderIdString

    The order the review is linked to, which marks it as a verified purchase. Imported reviews keep the order ID or number from the import file.

  • statusString!

    pending, approved or rejected. Only approved reviews appear on your storefront.

  • sourceString

    Where the review came from: reviews:toki for reviews collected by Toki, or reviews:yotpo, reviews:judgeme, reviews:stamped or reviews:klaviyo for imported ones.

  • externalReviewIdString

    For imported reviews, the review's ID on the platform it came from.

  • collectionMethodTokiReviewCollectionMethod

    Where a review was submitted. Toki sets storefront_widget for the reviews widget on your product pages, review_page for the page a review link opens, and import for imported reviews.

    storefront_widgetwalletreview_pagemerchant_portalimport
  • metadataTokiJSON

    Extra data stored with the review. For imported reviews, import holds details from the import file, such as the platform and the product name.

  • productTitleString

    The product's title in your store; null when Toki can't find the product.

  • productImageUrlString

    URL of the product's image; null when unknown.

  • incentiveTokiReviewIncentive

    The reward the member earned for writing this review, if any. In incentiveType, points are loyalty_points, discounts and free shipping are coupon, and free gifts are free_product.

  • votesSummaryTokiReviewVotesSummary!

    How members voted on whether a review is helpful. Each member has one vote per review.

  • viewerVoteTokiReviewViewerVote

    The requester's own vote on this review, so usually null for API requests.

    upvotedownvote
  • repliesCountInt!

    Number of replies, not counting deleted ones.

  • media[TokiReviewMediaSummary!]!

    Photos and videos attached to the review, in display order, including ones hidden from the storefront.

query Review($reviewId: ID!) {
  review(reviewId: $reviewId) {
    reviewId
    createdAt
    deletedAt
    shopId
    merchantId
    productId
    status
    content {
      headline
      body
      pros
      cons
    }
  }
}
Variables
{
  "reviewId": "e96c23d6-ea6c-4569-a76c-20b0e86c2243"
}
Response
{
  "data": {
    "review": {
      "reviewId": "e96c23d6-ea6c-4569-a76c-20b0e86c2243",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "shopId": "12ed790e-13ed-4aa1-a0ed-75e811ed777b",
      "merchantId": "1c370dd2-1d37-4f65-aa37-0aac1b370c3f",
      "productId": "251f6bdb-241f-4a48-a71f-6f01261f6d6e",
      "status": "active",
      "content": {
        "headline": "Headline",
        "body": "Body",
        "pros": "Pros",
        "cons": "Cons"
      }
    }
  }
}
query

reviewDetails#

Returns a review with all its photos and videos, including hidden ones, and its replies. Pass a media item's reviewMediaId to reviewMediaUpdateVisibility to show or hide it. Returns an error if the review doesn't exist or was deleted.

Arguments

  • reviewIdID!Required

Returns

TokiReviewDetailsPayload!

A review with all its photos and videos, including hidden ones, and its replies, oldest first.

  • reviewTokiReviewResult!

    A review as returned by reviewDetails and the review mutations. Unlike TokiReview, its media lists only the photos and videos shown on your storefront.

  • media[TokiReviewMedia!]!

    All of the review's photos and videos, including hidden ones, in display order.

  • replies[TokiReviewReply!]!

    The review's replies, oldest first. Deleted replies are left out.

query ReviewDetails($reviewId: ID!) {
  reviewDetails(reviewId: $reviewId) {
    review {
      reviewId
      createdAt
      deletedAt
      status
      content {
        headline
        body
        pros
        cons
      }
    }
    media {
      reviewMediaId
      createdAt
      deletedAt
      reviewId
      file {
        fileKey
        publicUrl
      }
    }
    replies {
      reviewReplyId
      createdAt
      deletedAt
      reviewId
      content {
        body
      }
    }
  }
}
Variables
{
  "reviewId": "136fa11e-146f-42b1-a16f-9df8126f9f8b"
}
Response
{
  "data": {
    "reviewDetails": {
      "review": {
        "reviewId": "6dd1e846-6ed1-49d9-abd1-e5206cd1e6b3",
        "createdAt": "2026-10-14T09:30:00.000Z",
        "deletedAt": "2026-10-14T09:30:00.000Z",
        "status": "active",
        "content": {
          "headline": "Headline",
          "body": "Body",
          "pros": "Pros",
          "cons": "Cons"
        }
      },
      "media": [
        {
          "reviewMediaId": "c2310a92-c331-4c25-a031-076cc13108ff",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "deletedAt": "2026-10-14T09:30:00.000Z",
          "reviewId": "19a94c1c-1aa9-4daf-aba9-4f421ca950d5",
          "file": {
            "fileKey": "File key",
            "publicUrl": "https://example.com/toki/webhooks"
          }
        }
      ],
      "replies": [
        {
          "reviewReplyId": "330cef4e-340c-40e1-a10c-ec28320cedbb",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "deletedAt": "2026-10-14T09:30:00.000Z",
          "reviewId": "31fbc7b0-32fb-4943-a3fb-cad634fbcc69",
          "content": {
            "body": "Body"
          }
        }
      ]
    }
  }
}
query

reviewPendingCountsByGroup#

Counts the reviews waiting for moderation (pending) in each review group, in the current store. Groups without any are left out.

Returns

[TokiReviewPendingCountsByGroupPayload!]!

The number of pending reviews in one review group.

  • reviewGroupIdID!
  • countFloat!

    How many of the group's reviews are pending.

query ReviewPendingCountsByGroup {
  reviewPendingCountsByGroup {
    reviewGroupId
    count
  }
}
Response
{
  "data": {
    "reviewPendingCountsByGroup": [
      {
        "reviewGroupId": "e2c81ae4-e3c8-4c77-a4c8-1e0ae5c81f9d",
        "count": 1.5
      }
    ]
  }
}
query

memberOrderReviewInsights#

Returns, for each order you pass, the member's reviews of its products and whether memberOrderReviewLinkCreate can create a review link for it. Orders that don't belong to the member are left out; the rest keep the order of orderIds.

Arguments

  • userIdString!Required

    The member whose orders to check.

  • orderIds[String!]!Required

    IDs of the member's orders, as in TokiOrder.id. From 1 to 50.

Returns

[TokiMemberOrderReviewInsightsPayload!]!

One of the member's orders, with their reviews of its products.

  • orderIdString!

    The order, as in TokiOrder.id.

  • reviews[TokiMemberOrderReviewInsightsPayloadReviews!]!

    The member's reviews of products in this order, newest first, in any status and review group.

  • canCreateReviewLinkBoolean!

    Whether memberOrderReviewLinkCreate can create a link for this order: it isn't cancelled and has a product the member can still review.

query MemberOrderReviewInsights($userId: String!, $orderIds: [String!]!) {
  memberOrderReviewInsights(userId: $userId, orderIds: $orderIds) {
    orderId
    canCreateReviewLink
    reviews {
      reviewId
      productId
      productTitle
      status
    }
  }
}
Variables
{
  "userId": "43c2a096-44c2-4229-a1c2-9d7042c29f03",
  "orderIds": [
    "41b1089a-42b1-4a2d-afb1-057440b10707"
  ]
}
Response
{
  "data": {
    "memberOrderReviewInsights": [
      {
        "orderId": "b274cc6f-b174-4adc-a474-cf95b374ce02",
        "canCreateReviewLink": false,
        "reviews": [
          {
            "reviewId": "7bdaa6e6-7cda-4879-a9da-a3c07adaa553",
            "productId": "43371aeb-4237-4958-a537-1e1144371c7e",
            "productTitle": "Product title",
            "status": "active"
          }
        ]
      }
    ]
  }
}

reviewProductSummaries#

Lists the AI-written review summaries of your products, most recently updated first. Toki writes and refreshes them for products in review groups with product summaries turned on.

Arguments

  • reverseBoolean

    Reverse the sort order.

  • searchString

    Text to find in the product ID or the summary, ignoring case.

Returns

TokiProductReviewSummaryConnection!

A page of TokiProductReviewSummary in nodes, with pageInfo for the next page. Each item:

An AI-written summary of what customers say about a product, built from its approved reviews.

  • productReviewSummaryIdID!
  • createdAtString!
  • updatedAtString!
  • deletedAtString

    Always null: deleted summaries aren't listed.

  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • shopIdID!

    The store the product is in.

  • productIdString!

    The numeric Shopify product ID.

  • summaryString!

    The summary, one paragraph. Empty when Toki skipped the product because it no longer exists in Shopify.

  • lastSummarizedAtString!

    When the summary was last written or refreshed.

  • lastReviewCreatedAtString!

    When the newest review counted in reviewCount was submitted.

  • reviewCountInt!

    How many approved reviews the product had in review groups with summaries turned on when the summary was written, including rating-only reviews and reviews pooled through a product group.

  • summarizedReviewsCountInt!

    How many reviews with text were used to write the summary, at most 50.

  • modelString!

    The AI model that wrote the summary.

  • metadataTokiJSON!

    Details of the run that wrote the summary, such as the product title it used. skipReason explains an empty summary.

query ReviewProductSummaries($first: Int) {
  reviewProductSummaries(first: $first) {
    nodes {
      productReviewSummaryId
      createdAt
      deletedAt
      merchantId
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "reviewProductSummaries": {
      "nodes": [
        {
          "productReviewSummaryId": "535a54b1-525a-431e-a15a-518b505a4ff8",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "deletedAt": "2026-10-14T09:30:00.000Z",
          "merchantId": "87823878-8882-4a0b-a982-3b9e8a823d31"
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}

reviewPreviousImports#

Lists your CSV imports of reviews from other platforms, newest first, with row counts that show their progress.

Arguments

  • reverseBoolean

    Reverse the sort order.

  • idID

    Only items whose id equals this value.

Returns

TokiReviewImportConnection!

A page of TokiReviewImport in nodes, with pageInfo for the next page. Each item:

A CSV import of reviews from another platform into a review group.

  • idID!
  • errorString

    The latest import error; null when no error has been recorded.

  • failures[TokiReviewImportFailures!]

    Recorded row failures; null when none have been stored. Older imports can have failed rows without stored details.

  • createdAtString!

    When the file was uploaded.

  • platformString!

    The platform the file came from: yotpo, judgeme, stamped or klaviyo.

  • statusString!

    queued, processing while rows are being imported, or completed once every row is imported, skipped or failed.

  • reviewGroupIdID!

    The review group the reviews go into.

  • reviewGroupNameString

    Name of the review group the reviews go into.

  • totalRowsInt!

    Rows in the file.

  • queuedRowsInt!

    Rows that passed validation and were queued for import.

  • processedRowsInt!

    Queued rows imported so far, each creating or updating a review.

  • failedRowsInt!

    Rows that failed validation or failed to import.

  • skippedRowsInt!

    Rows skipped without an error, such as Judge.me rows without a product ID.

  • createdRowsInt!

    Rows that created a new review. processedRows minus createdRows is the number of existing reviews updated.

query ReviewPreviousImports($first: Int) {
  reviewPreviousImports(first: $first) {
    nodes {
      id
      error
      createdAt
      status
      failures {
        rowNumber
        externalReviewId
        productId
        error
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "reviewPreviousImports": {
      "nodes": [
        {
          "id": "96a444c2-97a4-4655-a4a4-419c95a4432f",
          "error": "Error",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "status": "active",
          "failures": [
            {
              "rowNumber": 3,
              "externalReviewId": "fa7c8fe2-fb7c-4175-a87c-8cbcf97c8e4f",
              "productId": "aa9af8a6-ab9a-4a39-a89a-f580a99af713",
              "error": "Error"
            }
          ]
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}
mutation

reviewUpdate#

Updates a review; fields you leave out keep their values, content replaces the whole content, and productId and userId are ignored. Changing status to approved triggers review activities and rewards as with reviewUpdateStatus; editing an already approved review does not trigger them again. Requires a plan that includes Reviews.

Input

TokiReviewUpdateInput!
  • reviewIdString!Required
  • ratingFloat
  • contentTokiReviewUpdateContentInput

    Replaces the review's whole content. Fields you leave out are cleared, including forms.

  • productIdString
  • productVariantIdString
  • userIdString
  • orderIdString
  • statusString

Returns

TokiReviewResult

A review as returned by reviewDetails and the review mutations. Unlike TokiReview, its media lists only the photos and videos shown on your storefront.

  • reviewIdString!
  • createdAtString!

    When the review was submitted. Imported reviews keep the date from the import file, if it has one.

  • updatedAtString!
  • deletedAtString

    When the review was deleted. Only reviewDelete returns deleted reviews.

  • shopIdString!

    The store the review belongs to.

  • merchantIdString!
  • productIdString!

    The reviewed product's numeric Shopify product ID.

  • productVariantIdString

    The numeric Shopify ID of the reviewed variant, when known.

  • ratingFloat

    Star rating from 1 to 5; null when the review has none.

  • contentTokiReviewContent!

    The content of the review: headline, review text, pros and cons, the reviewer's country and answers to custom questions.

  • reviewGroupIdString!

    The review group the review belongs to.

  • authorTokiReviewAuthor!

    The reviewer's name, and whether they posted anonymously.

  • userIdString

    The member who wrote the review; null when the review isn't linked to a member.

  • userTokiReviewUser

    Who wrote a review or a reply: the member who wrote the review, or whoever the reply is credited to.

  • orderIdString

    The order the review is linked to, which marks it as a verified purchase. Imported reviews keep the order ID or number from the import file.

  • statusString!

    pending, approved or rejected. Only approved reviews appear on your storefront.

  • sourceString

    Where the review came from: reviews:toki for reviews collected by Toki, or reviews:yotpo, reviews:judgeme, reviews:stamped or reviews:klaviyo for imported ones.

  • externalReviewIdString

    For imported reviews, the review's ID on the platform it came from.

  • collectionMethodTokiReviewCollectionMethod

    Where a review was submitted. Toki sets storefront_widget for the reviews widget on your product pages, review_page for the page a review link opens, and import for imported reviews.

    storefront_widgetwalletreview_pagemerchant_portalimport
  • metadataTokiJSON

    Extra data stored with the review. For imported reviews, import holds details from the import file.

  • incentiveTokiJSON

    The reward the member earned for this review, as { incentiveType, rewardType }; null if none.

  • votesSummaryTokiReviewVotesSummary!

    How members voted on whether a review is helpful. Each member has one vote per review.

  • viewerVoteTokiReviewViewerVote

    The requester's own vote on this review, so usually null for API requests.

    upvotedownvote
  • repliesCountFloat

    Number of replies, not counting deleted ones.

  • media[TokiReviewResultMedia!]

    The photos and videos shown on your storefront, in display order.

  • productTitleString

    Always null in this type; TokiReview.productTitle has the product's title.

  • productImageUrlString

    Always null in this type; TokiReview.productImageUrl has the product's image.

mutation ReviewUpdate($input: TokiReviewUpdateInput!) {
  reviewUpdate(input: $input) {
    reviewId
    createdAt
    deletedAt
    shopId
    merchantId
    productId
    status
    content {
      headline
      body
      pros
      cons
    }
  }
}
Variables
{
  "input": {
    "reviewId": "f8b81c1b-f7b8-4a88-aab8-1f41f9b81dae"
  }
}
Response
{
  "data": {
    "reviewUpdate": {
      "reviewId": "253a17bd-243a-462a-a33a-1497223a1304",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "shopId": "2fa1d9d9-2ea1-4846-ada1-d6b32ca1d520",
      "merchantId": "1b074329-1a07-4196-a907-400318073e70",
      "productId": "eb312996-ec31-4b29-a931-2670ea312803",
      "status": "active",
      "content": {
        "headline": "Headline",
        "body": "Body",
        "pros": "Pros",
        "cons": "Cons"
      }
    }
  }
}
mutation

reviewUpdateStatus#

Sets a review's status: pending, approved or rejected. When a member's review becomes approved, Toki completes your Reviews activities for them, which can earn them a reward; a change to approved or rejected also sends a Toki Review Approved or Toki Review Rejected event to your connected integrations. Requires a plan that includes Reviews.

Input

TokiReviewUpdateStatusInput!
  • reviewIdString!Required
  • statusString!Required

Returns

TokiReviewResult

A review as returned by reviewDetails and the review mutations. Unlike TokiReview, its media lists only the photos and videos shown on your storefront.

  • reviewIdString!
  • createdAtString!

    When the review was submitted. Imported reviews keep the date from the import file, if it has one.

  • updatedAtString!
  • deletedAtString

    When the review was deleted. Only reviewDelete returns deleted reviews.

  • shopIdString!

    The store the review belongs to.

  • merchantIdString!
  • productIdString!

    The reviewed product's numeric Shopify product ID.

  • productVariantIdString

    The numeric Shopify ID of the reviewed variant, when known.

  • ratingFloat

    Star rating from 1 to 5; null when the review has none.

  • contentTokiReviewContent!

    The content of the review: headline, review text, pros and cons, the reviewer's country and answers to custom questions.

  • reviewGroupIdString!

    The review group the review belongs to.

  • authorTokiReviewAuthor!

    The reviewer's name, and whether they posted anonymously.

  • userIdString

    The member who wrote the review; null when the review isn't linked to a member.

  • userTokiReviewUser

    Who wrote a review or a reply: the member who wrote the review, or whoever the reply is credited to.

  • orderIdString

    The order the review is linked to, which marks it as a verified purchase. Imported reviews keep the order ID or number from the import file.

  • statusString!

    pending, approved or rejected. Only approved reviews appear on your storefront.

  • sourceString

    Where the review came from: reviews:toki for reviews collected by Toki, or reviews:yotpo, reviews:judgeme, reviews:stamped or reviews:klaviyo for imported ones.

  • externalReviewIdString

    For imported reviews, the review's ID on the platform it came from.

  • collectionMethodTokiReviewCollectionMethod

    Where a review was submitted. Toki sets storefront_widget for the reviews widget on your product pages, review_page for the page a review link opens, and import for imported reviews.

    storefront_widgetwalletreview_pagemerchant_portalimport
  • metadataTokiJSON

    Extra data stored with the review. For imported reviews, import holds details from the import file.

  • incentiveTokiJSON

    The reward the member earned for this review, as { incentiveType, rewardType }; null if none.

  • votesSummaryTokiReviewVotesSummary!

    How members voted on whether a review is helpful. Each member has one vote per review.

  • viewerVoteTokiReviewViewerVote

    The requester's own vote on this review, so usually null for API requests.

    upvotedownvote
  • repliesCountFloat

    Number of replies, not counting deleted ones.

  • media[TokiReviewResultMedia!]

    The photos and videos shown on your storefront, in display order.

  • productTitleString

    Always null in this type; TokiReview.productTitle has the product's title.

  • productImageUrlString

    Always null in this type; TokiReview.productImageUrl has the product's image.

mutation ReviewUpdateStatus($input: TokiReviewUpdateStatusInput!) {
  reviewUpdateStatus(input: $input) {
    reviewId
    createdAt
    deletedAt
    shopId
    merchantId
    productId
    status
    content {
      headline
      body
      pros
      cons
    }
  }
}
Variables
{
  "input": {
    "reviewId": "8c049355-8b04-41c2-aa04-902f89048e9c",
    "status": "active"
  }
}
Response
{
  "data": {
    "reviewUpdateStatus": {
      "reviewId": "809f7487-7f9f-42f4-a29f-77ad819f761a",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "shopId": "60bd5e47-5fbd-4cb4-a2bd-616d61bd5fda",
      "merchantId": "8a8a22d3-898a-4140-ac8a-25f98b8a2466",
      "productId": "46413bdc-4741-4d6f-a841-3f0249414095",
      "status": "active",
      "content": {
        "headline": "Headline",
        "body": "Body",
        "pros": "Pros",
        "cons": "Cons"
      }
    }
  }
}
mutation

reviewBulkUpdateStatus#

Sets the same status on several reviews, with the same effects as reviewUpdateStatus for each one. Deleted reviews and IDs that aren't yours are skipped. Requires a plan that includes Reviews.

Input

TokiReviewBulkUpdateStatusInput!
  • reviewIds[String!]!Required
  • statusString!Required

Returns

TokiReviewBulkUpdateStatusPayload!

The result of a bulk status change.

  • updatedCountFloat!

    How many reviews were updated. Deleted reviews and IDs that aren't yours don't count.

mutation ReviewBulkUpdateStatus($input: TokiReviewBulkUpdateStatusInput!) {
  reviewBulkUpdateStatus(input: $input) {
    updatedCount
  }
}
Variables
{
  "input": {
    "reviewIds": [
      "5e91005e-5f91-41f1-ac90-fd385d90fecb"
    ],
    "status": "active"
  }
}
Response
{
  "data": {
    "reviewBulkUpdateStatus": {
      "updatedCount": 1.5
    }
  }
}
mutation

reviewDelete#

Deletes a review. It disappears from your storefront and from reviews unless you pass withDeleted: true; rewards the member already earned for it are kept. Requires a plan that includes Reviews.

Input

TokiReviewDeleteInput!
  • reviewIdID!Required

Returns

TokiReviewResult

A review as returned by reviewDetails and the review mutations. Unlike TokiReview, its media lists only the photos and videos shown on your storefront.

  • reviewIdString!
  • createdAtString!

    When the review was submitted. Imported reviews keep the date from the import file, if it has one.

  • updatedAtString!
  • deletedAtString

    When the review was deleted. Only reviewDelete returns deleted reviews.

  • shopIdString!

    The store the review belongs to.

  • merchantIdString!
  • productIdString!

    The reviewed product's numeric Shopify product ID.

  • productVariantIdString

    The numeric Shopify ID of the reviewed variant, when known.

  • ratingFloat

    Star rating from 1 to 5; null when the review has none.

  • contentTokiReviewContent!

    The content of the review: headline, review text, pros and cons, the reviewer's country and answers to custom questions.

  • reviewGroupIdString!

    The review group the review belongs to.

  • authorTokiReviewAuthor!

    The reviewer's name, and whether they posted anonymously.

  • userIdString

    The member who wrote the review; null when the review isn't linked to a member.

  • userTokiReviewUser

    Who wrote a review or a reply: the member who wrote the review, or whoever the reply is credited to.

  • orderIdString

    The order the review is linked to, which marks it as a verified purchase. Imported reviews keep the order ID or number from the import file.

  • statusString!

    pending, approved or rejected. Only approved reviews appear on your storefront.

  • sourceString

    Where the review came from: reviews:toki for reviews collected by Toki, or reviews:yotpo, reviews:judgeme, reviews:stamped or reviews:klaviyo for imported ones.

  • externalReviewIdString

    For imported reviews, the review's ID on the platform it came from.

  • collectionMethodTokiReviewCollectionMethod

    Where a review was submitted. Toki sets storefront_widget for the reviews widget on your product pages, review_page for the page a review link opens, and import for imported reviews.

    storefront_widgetwalletreview_pagemerchant_portalimport
  • metadataTokiJSON

    Extra data stored with the review. For imported reviews, import holds details from the import file.

  • incentiveTokiJSON

    The reward the member earned for this review, as { incentiveType, rewardType }; null if none.

  • votesSummaryTokiReviewVotesSummary!

    How members voted on whether a review is helpful. Each member has one vote per review.

  • viewerVoteTokiReviewViewerVote

    The requester's own vote on this review, so usually null for API requests.

    upvotedownvote
  • repliesCountFloat

    Number of replies, not counting deleted ones.

  • media[TokiReviewResultMedia!]

    The photos and videos shown on your storefront, in display order.

  • productTitleString

    Always null in this type; TokiReview.productTitle has the product's title.

  • productImageUrlString

    Always null in this type; TokiReview.productImageUrl has the product's image.

mutation ReviewDelete($input: TokiReviewDeleteInput!) {
  reviewDelete(input: $input) {
    reviewId
    createdAt
    deletedAt
    shopId
    merchantId
    productId
    status
    content {
      headline
      body
      pros
      cons
    }
  }
}
Variables
{
  "input": {
    "reviewId": "a6f74331-a5f7-419e-a4f7-400ba3f73e78"
  }
}
Response
{
  "data": {
    "reviewDelete": {
      "reviewId": "b0c6d083-afc6-4ef0-a2c6-d3a9b1c6d216",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "shopId": "404f49ab-3f4f-4818-a24f-4cd1414f4b3e",
      "merchantId": "a32dc86f-a22d-46dc-a52d-cb95a42dca02",
      "productId": "1b38b8d0-1c38-4a63-ad38-bbf61e38bd89",
      "status": "active",
      "content": {
        "headline": "Headline",
        "body": "Body",
        "pros": "Pros",
        "cons": "Cons"
      }
    }
  }
}
mutation

reviewAddReply#

Adds a public reply to a review, shown with the review on your storefront. Toki doesn't notify the member, and the reply is credited to you unless you pass a userId belonging to a customer or team member of your merchant. Requires a plan that includes Reviews.

Input

TokiReviewAddReplyInput!
  • reviewIdString!Required
  • contentTokiReviewReplyContentInput!Required

    The content of a reply.

  • userIdString

    Author's user ID. Must belong to a customer or team member of your merchant. Omit or pass null to use the current user.

Returns

TokiReviewReply

A reply to a review. Your storefront shows it under the review, signed with the reply author name from the review group's settings, or Brand representative.

  • reviewReplyIdString!

    Pass it to reviewDeleteReply to delete the reply.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the reply was deleted. Only reviewDeleteReply returns deleted replies.

  • reviewIdString!
  • contentTokiReviewReplyContent!

    The content of a reply.

  • userIdString

    Who the reply is credited to: whoever added it, or the userId given to reviewAddReply; null for imported replies. Shoppers don't see it.

  • userTokiReviewUser

    Who wrote a review or a reply: the member who wrote the review, or whoever the reply is credited to.

mutation ReviewAddReply($input: TokiReviewAddReplyInput!) {
  reviewAddReply(input: $input) {
    reviewReplyId
    createdAt
    updatedAt
    deletedAt
    reviewId
    userId
    content {
      body
    }
  }
}
Variables
{
  "input": {
    "reviewId": "19c66b0f-18c6-497c-abc6-6e351ac66ca2",
    "content": {
      "body": "Body"
    },
    "userId": "9dcd8818-9ecd-49ab-afcd-8b3ea0cd8cd1"
  }
}
Response
{
  "data": {
    "reviewAddReply": {
      "reviewReplyId": "6fce2a3d-6ece-48aa-adce-27176cce2584",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "updatedAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "reviewId": "8488cec1-8388-4d2e-a288-cb9b8188ca08",
      "userId": "05a2f906-06a2-4a99-a3a2-f5e004a2f773",
      "content": {
        "body": "Body"
      }
    }
  }
}
mutation

reviewDeleteReply#

Deletes a reply from a review. Returns null if it was already deleted. Requires a plan that includes Reviews.

Input

TokiReviewDeleteReplyInput!
  • reviewIdString!Required
  • reviewReplyIdString!Required

Returns

TokiReviewReply

A reply to a review. Your storefront shows it under the review, signed with the reply author name from the review group's settings, or Brand representative.

  • reviewReplyIdString!

    Pass it to reviewDeleteReply to delete the reply.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the reply was deleted. Only reviewDeleteReply returns deleted replies.

  • reviewIdString!
  • contentTokiReviewReplyContent!

    The content of a reply.

  • userIdString

    Who the reply is credited to: whoever added it, or the userId given to reviewAddReply; null for imported replies. Shoppers don't see it.

  • userTokiReviewUser

    Who wrote a review or a reply: the member who wrote the review, or whoever the reply is credited to.

mutation ReviewDeleteReply($input: TokiReviewDeleteReplyInput!) {
  reviewDeleteReply(input: $input) {
    reviewReplyId
    createdAt
    updatedAt
    deletedAt
    reviewId
    userId
    content {
      body
    }
  }
}
Variables
{
  "input": {
    "reviewId": "97d6a55d-96d6-43ca-a5d6-a23794d6a0a4",
    "reviewReplyId": "c0ee4801-bfee-466e-aeee-44dbbdee4348"
  }
}
Response
{
  "data": {
    "reviewDeleteReply": {
      "reviewReplyId": "db9ac88b-da9a-46f8-ad9a-cbb1dc9aca1e",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "updatedAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "reviewId": "eeb2da9f-edb2-490c-a0b2-ddc5efb2dc32",
      "userId": "8703fa28-8803-4bbb-a903-fd4e8a03fee1",
      "content": {
        "body": "Body"
      }
    }
  }
}
mutation

reviewMediaUpdateVisibility#

Shows or hides one of a review's photos or videos on your storefront; hidden ones stay visible in Toki. Take the reviewMediaId from reviewDetails. Requires a plan that includes Reviews.

Input

TokiReviewMediaUpdateVisibilityInput!
  • reviewIdString!Required
  • reviewMediaIdString!Required
  • storefrontVisibleBoolean!Required

Returns

Boolean!

true when the change was made. Anything that stops it comes back as an error.

mutation ReviewMediaUpdateVisibility($input: TokiReviewMediaUpdateVisibilityInput!) {
  reviewMediaUpdateVisibility(input: $input)
}
Variables
{
  "input": {
    "reviewId": "4aadade9-49ad-4c56-a8ad-aac347ada930",
    "reviewMediaId": "e580cdf9-e480-4c66-a380-cad3e280c940",
    "storefrontVisible": false
  }
}
Response
{
  "data": {
    "reviewMediaUpdateVisibility": true
  }
}
mutation

memberOrderReviewLinkCreate#

Creates a review link for one product from a member's order that they can still review. The link opens a review page hosted by Toki, signs the member in and works for 30 days; Toki doesn't send it, so share it with that member only. Requires a plan that includes Reviews.

Input

TokiMemberOrderReviewLinkCreateInput!
  • userIdString!Required

    The member the link is for.

  • orderIdString!Required

    One of the member's orders, as in TokiOrder.id.

Returns

TokiMemberOrderReviewLinkCreatePayload!

A review link and the product and review group it's for.

  • urlString!

    The link to the review page.

  • productIdString!

    The product the link asks the member to review.

  • productTitleString!

    The product's name on the order, or its ID if the order has no name for it.

  • reviewGroupIdID!

    The review group the review will go into.

mutation MemberOrderReviewLinkCreate($input: TokiMemberOrderReviewLinkCreateInput!) {
  memberOrderReviewLinkCreate(input: $input) {
    url
    productId
    productTitle
    reviewGroupId
  }
}
Variables
{
  "input": {
    "userId": "04a9eb4f-03a9-49bc-a6a9-ee7505a9ece2",
    "orderId": "5e97873a-5f97-48cd-ac97-84145d9785a7"
  }
}
Response
{
  "data": {
    "memberOrderReviewLinkCreate": {
      "url": "https://example.com/toki/webhooks",
      "productId": "55ea9397-54ea-4204-a7ea-96bd56ea952a",
      "productTitle": "Product title",
      "reviewGroupId": "e8553123-e755-4f90-aa55-3449e95532b6"
    }
  }
}
query

reviewGoogleProductReviewsStatus#

Returns the setup of your Google Shopping product reviews feed: which review groups are exported, and each store's feed URL and readiness checks.

Returns

TokiReviewGoogleProductReviewsStatusPayload!

The setup of your Google Shopping product reviews feed.

  • minimumReviewCountFloat!

    The minimum number of eligible reviews per store, used for hasMinimumEligibleReviews.

  • reviewGroups[TokiReviewGoogleProductReviewsStatusReviewGroups!]!

    All your review groups.

  • shops[TokiReviewGoogleProductReviewsStatusShops!]!

    One entry per store.

query ReviewGoogleProductReviewsStatus {
  reviewGoogleProductReviewsStatus {
    minimumReviewCount
    reviewGroups {
      reviewGroupId
      name
      googleProductReviewsEnabled
      moderationType
    }
  }
}
Response
{
  "data": {
    "reviewGoogleProductReviewsStatus": {
      "minimumReviewCount": 1.5,
      "reviewGroups": [
        {
          "reviewGroupId": "2dac9bba-2eac-4d4d-abac-98942cac9a27",
          "name": "Gold",
          "googleProductReviewsEnabled": true,
          "moderationType": "Moderation type"
        }
      ]
    }
  }
}
mutation

reviewGoogleProductReviewsGenerateToken#

Creates a feed token for one of your stores, which gives it a feed URL to add in Google Merchant Center. Does nothing if the store already has a token. Requires a plan that includes Reviews.

Input

TokiReviewGoogleProductReviewsGenerateTokenInput!
  • shopIdString!Required

Returns

TokiReviewGoogleProductReviewsStatusPayload!

The setup of your Google Shopping product reviews feed.

  • minimumReviewCountFloat!

    The minimum number of eligible reviews per store, used for hasMinimumEligibleReviews.

  • reviewGroups[TokiReviewGoogleProductReviewsStatusReviewGroups!]!

    All your review groups.

  • shops[TokiReviewGoogleProductReviewsStatusShops!]!

    One entry per store.

mutation ReviewGoogleProductReviewsGenerateToken($input: TokiReviewGoogleProductReviewsGenerateTokenInput!) {
  reviewGoogleProductReviewsGenerateToken(input: $input) {
    minimumReviewCount
    reviewGroups {
      reviewGroupId
      name
      googleProductReviewsEnabled
      moderationType
    }
  }
}
Variables
{
  "input": {
    "shopId": "2e39daf9-2d39-4966-ac39-d7d32b39d640"
  }
}
Response
{
  "data": {
    "reviewGoogleProductReviewsGenerateToken": {
      "minimumReviewCount": 1.5,
      "reviewGroups": [
        {
          "reviewGroupId": "09048ba4-0a04-4d37-ab04-8eca0c04905d",
          "name": "Gold",
          "googleProductReviewsEnabled": true,
          "moderationType": "Moderation type"
        }
      ]
    }
  }
}
mutation

reviewGoogleProductReviewsRegenerateToken#

Replaces a store's feed token with a new one, or creates its first. The old feed URL stops working right away, so update it in Google Merchant Center. Requires a plan that includes Reviews.

Input

TokiReviewGoogleProductReviewsRegenerateTokenInput!
  • shopIdString!Required

Returns

TokiReviewGoogleProductReviewsStatusPayload!

The setup of your Google Shopping product reviews feed.

  • minimumReviewCountFloat!

    The minimum number of eligible reviews per store, used for hasMinimumEligibleReviews.

  • reviewGroups[TokiReviewGoogleProductReviewsStatusReviewGroups!]!

    All your review groups.

  • shops[TokiReviewGoogleProductReviewsStatusShops!]!

    One entry per store.

mutation ReviewGoogleProductReviewsRegenerateToken($input: TokiReviewGoogleProductReviewsRegenerateTokenInput!) {
  reviewGoogleProductReviewsRegenerateToken(input: $input) {
    minimumReviewCount
    reviewGroups {
      reviewGroupId
      name
      googleProductReviewsEnabled
      moderationType
    }
  }
}
Variables
{
  "input": {
    "shopId": "b334fbf0-b434-4d83-a534-ff16b63500a9"
  }
}
Response
{
  "data": {
    "reviewGoogleProductReviewsRegenerateToken": {
      "minimumReviewCount": 1.5,
      "reviewGroups": [
        {
          "reviewGroupId": "5e5e2077-5d5e-4ee4-a05e-239d5f5e220a",
          "name": "Gold",
          "googleProductReviewsEnabled": true,
          "moderationType": "Moderation type"
        }
      ]
    }
  }
}
mutation

reviewGoogleProductReviewsUpdateReviewGroups#

Turns the Google feed export on or off for the review groups you list; others don't change. You can only turn it on for groups whose review form asks for a star rating (allowRating). Requires a plan that includes Reviews.

Input

TokiReviewGoogleProductReviewsUpdateReviewGroupsInput!
  • reviewGroups[TokiGoogleProductReviewsReviewGroupInput!]!Required

Returns

TokiReviewGoogleProductReviewsStatusPayload!

The setup of your Google Shopping product reviews feed.

  • minimumReviewCountFloat!

    The minimum number of eligible reviews per store, used for hasMinimumEligibleReviews.

  • reviewGroups[TokiReviewGoogleProductReviewsStatusReviewGroups!]!

    All your review groups.

  • shops[TokiReviewGoogleProductReviewsStatusShops!]!

    One entry per store.

mutation ReviewGoogleProductReviewsUpdateReviewGroups($input: TokiReviewGoogleProductReviewsUpdateReviewGroupsInput!) {
  reviewGoogleProductReviewsUpdateReviewGroups(input: $input) {
    minimumReviewCount
    reviewGroups {
      reviewGroupId
      name
      googleProductReviewsEnabled
      moderationType
    }
  }
}
Variables
{
  "input": {
    "reviewGroups": [
      {
        "reviewGroupId": "787a89cb-777a-4838-aa7a-8cf1797a8b5e",
        "enabled": true
      }
    ]
  }
}
Response
{
  "data": {
    "reviewGoogleProductReviewsUpdateReviewGroups": {
      "minimumReviewCount": 1.5,
      "reviewGroups": [
        {
          "reviewGroupId": "27014631-2601-449e-a501-430b24014178",
          "name": "Gold",
          "googleProductReviewsEnabled": true,
          "moderationType": "Moderation type"
        }
      ]
    }
  }
}

reviewGroups#

Lists your review groups, ordered by orderNumber and then oldest first. Deleted groups are left out unless you pass withDeleted: true.

Arguments

  • reverseBoolean

    Reverse the sort order.

  • ids[String!]

    Restrict results to these group IDs. An empty list returns none.

  • searchString

    Case-insensitive group name search.

  • withDeletedBoolean

    Include deleted groups. Defaults to false.

Returns

TokiReviewGroupConnection!

A page of TokiReviewGroup in nodes, with pageInfo for the next page. Each item:

A set of reviews with its own rules: moderation, the review form, eligibility and how it shows on your storefront. Every review belongs to one group.

  • reviewGroupIdID!
  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the group was deleted. Deleted groups are only listed with withDeleted: true.

  • nameString!
  • settingsTokiJSON!

    The group's settings as JSON, with the keys described under reviewGroupCreate. Missing keys use their defaults.

  • orderNumberInt

    Sort position among your review groups, lowest first. Groups without one come last.

  • reviewsTokiReviewConnection!

    Reviews in this group, newest first.

  • productGroupsTokiReviewProductGroupConnection!

    This group's product groups in the current store.

query ReviewGroups($first: Int) {
  reviewGroups(first: $first) {
    nodes {
      reviewGroupId
      merchantId
      createdAt
      name
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "reviewGroups": {
      "nodes": [
        {
          "reviewGroupId": "6a4ac326-6b4a-44b9-a84a-c000694ac193",
          "merchantId": "ca3279b5-c932-4822-a832-768fc73274fc",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "name": "Gold"
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}
query

reviewGroup#

Returns a review group, or null if it doesn't exist. Deleted groups are returned too, with deletedAt set.

Arguments

  • reviewGroupIdString!Required

Returns

TokiReviewGroup

A set of reviews with its own rules: moderation, the review form, eligibility and how it shows on your storefront. Every review belongs to one group.

  • reviewGroupIdID!
  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the group was deleted. Deleted groups are only listed with withDeleted: true.

  • nameString!
  • settingsTokiJSON!

    The group's settings as JSON, with the keys described under reviewGroupCreate. Missing keys use their defaults.

  • orderNumberInt

    Sort position among your review groups, lowest first. Groups without one come last.

  • reviewsTokiReviewConnection!

    Reviews in this group, newest first.

  • productGroupsTokiReviewProductGroupConnection!

    This group's product groups in the current store.

query ReviewGroup($reviewGroupId: String!) {
  reviewGroup(reviewGroupId: $reviewGroupId) {
    reviewGroupId
    merchantId
    createdAt
    deletedAt
    name
    settings
    orderNumber
  }
}
Variables
{
  "reviewGroupId": "baf512a2-bbf5-4435-a8f5-0f7cb9f5110f"
}
Response
{
  "data": {
    "reviewGroup": {
      "reviewGroupId": "baf512a2-bbf5-4435-a8f5-0f7cb9f5110f",
      "merchantId": "40a01671-3fa0-44de-aea0-134b3da011b8",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "name": "Gold",
      "settings": {},
      "orderNumber": 3
    }
  }
}
mutation

reviewGroupCreate#

Creates a review group. Toki then pushes your review groups to the reviews widget in your Shopify stores. Requires a plan that includes Reviews.

Input

TokiReviewGroupCreateInput!
  • nameString!Required

    The group's name. When your storefront shows more than one group, the reviews widget uses it as a tab label.

  • settingsTokiJSON!Required

    The group's settings as a JSON object; every key is optional. storefrontVisible (default true) shows the group on your storefront. moderation is { "type": "manual" } (the default) or { "type": "rating", "minRating": 4 } to approve reviews rated minRating (1 to 5) or higher when they're submitted. storefront holds the review form, widget text and custom questions, and needs allowRating, allowProsCons, allowMedia and mediaMaxCount. eligibility limits which products can be reviewed and which segments can't review, and productSummary and googleProductReviews are { "enabled": false } by default.

  • orderNumberInt

    Sort position among your review groups, lowest first. Groups without one come last.

Returns

TokiReviewGroup!

A set of reviews with its own rules: moderation, the review form, eligibility and how it shows on your storefront. Every review belongs to one group.

  • reviewGroupIdID!
  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the group was deleted. Deleted groups are only listed with withDeleted: true.

  • nameString!
  • settingsTokiJSON!

    The group's settings as JSON, with the keys described under reviewGroupCreate. Missing keys use their defaults.

  • orderNumberInt

    Sort position among your review groups, lowest first. Groups without one come last.

  • reviewsTokiReviewConnection!

    Reviews in this group, newest first.

  • productGroupsTokiReviewProductGroupConnection!

    This group's product groups in the current store.

mutation ReviewGroupCreate($input: TokiReviewGroupCreateInput!) {
  reviewGroupCreate(input: $input) {
    reviewGroupId
    merchantId
    createdAt
    deletedAt
    name
    settings
    orderNumber
  }
}
Variables
{
  "input": {
    "name": "Gold",
    "settings": {},
    "orderNumber": 3
  }
}
Response
{
  "data": {
    "reviewGroupCreate": {
      "reviewGroupId": "d5d0ae7e-d6d0-4011-a3d0-ab58d4d0aceb",
      "merchantId": "307a968d-2f7a-44fa-ae7a-93672d7a91d4",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "name": "Gold",
      "settings": {},
      "orderNumber": 3
    }
  }
}
mutation

reviewGroupUpdate#

Updates a review group; fields you leave out keep their values, but settings replaces all of the group's settings. Toki then pushes the change to the reviews widget in your Shopify stores. Requires a plan that includes Reviews.

Input

TokiReviewGroupUpdateInput!
  • reviewGroupIdString!Required
  • nameString
  • settingsTokiJSON

    Replaces all of the group's settings, so send the complete object (its keys are described under reviewGroupCreate). Leave it out to keep the current settings.

  • orderNumberInt

    Sort position among your review groups, lowest first. null removes it, and groups without one come last.

Returns

TokiReviewGroup

A set of reviews with its own rules: moderation, the review form, eligibility and how it shows on your storefront. Every review belongs to one group.

  • reviewGroupIdID!
  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the group was deleted. Deleted groups are only listed with withDeleted: true.

  • nameString!
  • settingsTokiJSON!

    The group's settings as JSON, with the keys described under reviewGroupCreate. Missing keys use their defaults.

  • orderNumberInt

    Sort position among your review groups, lowest first. Groups without one come last.

  • reviewsTokiReviewConnection!

    Reviews in this group, newest first.

  • productGroupsTokiReviewProductGroupConnection!

    This group's product groups in the current store.

mutation ReviewGroupUpdate($input: TokiReviewGroupUpdateInput!) {
  reviewGroupUpdate(input: $input) {
    reviewGroupId
    merchantId
    createdAt
    deletedAt
    name
    settings
    orderNumber
  }
}
Variables
{
  "input": {
    "reviewGroupId": "d1a7bfa1-d0a7-4e0e-afa7-bc7bcea7bae8",
    "name": "Gold",
    "settings": {},
    "orderNumber": 3
  }
}
Response
{
  "data": {
    "reviewGroupUpdate": {
      "reviewGroupId": "78cbd0b7-77cb-4f24-aacb-d3dd79cbd24a",
      "merchantId": "2e996bba-2f99-4d4d-ac99-68942d996a27",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "name": "Gold",
      "settings": {},
      "orderNumber": 3
    }
  }
}
mutation

reviewGroupDelete#

Deletes a review group. Its reviews stay in Toki, and Toki removes the group from the reviews widget in your Shopify stores. Requires a plan that includes Reviews.

Input

TokiReviewGroupDeleteInput!
  • reviewGroupIdString!Required

Returns

TokiReviewGroup

A set of reviews with its own rules: moderation, the review form, eligibility and how it shows on your storefront. Every review belongs to one group.

  • reviewGroupIdID!
  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the group was deleted. Deleted groups are only listed with withDeleted: true.

  • nameString!
  • settingsTokiJSON!

    The group's settings as JSON, with the keys described under reviewGroupCreate. Missing keys use their defaults.

  • orderNumberInt

    Sort position among your review groups, lowest first. Groups without one come last.

  • reviewsTokiReviewConnection!

    Reviews in this group, newest first.

  • productGroupsTokiReviewProductGroupConnection!

    This group's product groups in the current store.

mutation ReviewGroupDelete($input: TokiReviewGroupDeleteInput!) {
  reviewGroupDelete(input: $input) {
    reviewGroupId
    merchantId
    createdAt
    deletedAt
    name
    settings
    orderNumber
  }
}
Variables
{
  "input": {
    "reviewGroupId": "21f6c21b-20f6-4088-a3f6-c54122f6c3ae"
  }
}
Response
{
  "data": {
    "reviewGroupDelete": {
      "reviewGroupId": "08b46189-07b4-4ff6-a6b4-5e6305b45cd0",
      "merchantId": "85be1ba4-86be-4d37-a7be-1eca88be205d",
      "createdAt": "2026-10-14T09:30:00.000Z",
      "deletedAt": "2026-10-14T09:30:00.000Z",
      "name": "Gold",
      "settings": {},
      "orderNumber": 3
    }
  }
}

reviewProductGroups#

Lists the product groups of the current store, ordered by orderNumber and then oldest first. Deleted ones are left out unless you pass withDeleted: true.

Arguments

  • reverseBoolean

    Reverse the sort order.

  • reviewGroupIdString

    Only product groups of this review group.

  • withDeletedBoolean

    Include deleted product groups. Defaults to false.

Returns

TokiReviewProductGroupConnection!

A page of TokiReviewProductGroup in nodes, with pageInfo for the next page. Each item:

Products that share their reviews: on your storefront, each of them shows the reviews, review count and rating of the whole group.

  • reviewProductGroupIdID!
  • reviewGroupIdID!

    The review group the product group belongs to.

  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • shopIdID!

    The store the product group belongs to. Each store has its own product groups.

  • nameString!
  • orderNumberInt

    Sort position among your product groups, lowest first. Groups without one come last.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the product group was deleted. Deleted ones are only listed with withDeleted: true.

  • productTags[String!]!

    Shopify product tags, in alphabetical order. Every product with one of these tags belongs to the group; tags match exactly, including case.

  • productCountInt!

    How many products belong to the group: the ones added by hand plus every product carrying one of the productTags, each counted once.

  • products[TokiReviewProductGroupProduct!]!

    Products added by hand, by orderNumber. Products that belong through productTags aren't listed.

query ReviewProductGroups($first: Int) {
  reviewProductGroups(first: $first) {
    nodes {
      reviewProductGroupId
      reviewGroupId
      name
      createdAt
      products {
        reviewProductGroupProductId
        reviewProductGroupId
        createdAt
        label
      }
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "reviewProductGroups": {
      "nodes": [
        {
          "reviewProductGroupId": "6dc1f8a6-6ec1-4a39-abc1-f5806cc1f713",
          "reviewGroupId": "f11f6b91-f01f-49fe-af1f-686bee1f66d8",
          "name": "Gold",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "products": [
            {
              "reviewProductGroupProductId": "e84736df-e747-454c-aa47-3a05e9473872",
              "reviewProductGroupId": "70db56ee-71db-4881-aedb-53c86fdb555b",
              "createdAt": "2026-10-14T09:30:00.000Z",
              "label": "Summer double points"
            }
          ]
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}
query

reviewProductGroup#

Returns a product group of the current store, or null if it doesn't exist or was deleted.

Arguments

  • reviewProductGroupIdString!Required

Returns

TokiReviewProductGroup

Products that share their reviews: on your storefront, each of them shows the reviews, review count and rating of the whole group.

  • reviewProductGroupIdID!
  • reviewGroupIdID!

    The review group the product group belongs to.

  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • shopIdID!

    The store the product group belongs to. Each store has its own product groups.

  • nameString!
  • orderNumberInt

    Sort position among your product groups, lowest first. Groups without one come last.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the product group was deleted. Deleted ones are only listed with withDeleted: true.

  • productTags[String!]!

    Shopify product tags, in alphabetical order. Every product with one of these tags belongs to the group; tags match exactly, including case.

  • productCountInt!

    How many products belong to the group: the ones added by hand plus every product carrying one of the productTags, each counted once.

  • products[TokiReviewProductGroupProduct!]!

    Products added by hand, by orderNumber. Products that belong through productTags aren't listed.

query ReviewProductGroup($reviewProductGroupId: String!) {
  reviewProductGroup(reviewProductGroupId: $reviewProductGroupId) {
    reviewProductGroupId
    reviewGroupId
    merchantId
    shopId
    name
    orderNumber
    createdAt
    products {
      reviewProductGroupProductId
      reviewProductGroupId
      createdAt
      label
    }
  }
}
Variables
{
  "reviewProductGroupId": "a947fc4e-aa47-4de1-a747-f928a847fabb"
}
Response
{
  "data": {
    "reviewProductGroup": {
      "reviewProductGroupId": "a947fc4e-aa47-4de1-a747-f928a847fabb",
      "reviewGroupId": "aaee7f39-a9ee-4da6-a8ee-7c13a7ee7a80",
      "merchantId": "048977b4-0589-4947-a689-7ada07897c6d",
      "shopId": "7145185c-7245-49ef-a345-1b8274451d15",
      "name": "Gold",
      "orderNumber": 3,
      "createdAt": "2026-10-14T09:30:00.000Z",
      "products": [
        {
          "reviewProductGroupProductId": "7bbea967-7abe-47d4-adbe-ac8d7cbeaafa",
          "reviewProductGroupId": "0255dfd6-0355-4169-a055-dcb00155de43",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "label": "Summer double points"
        }
      ]
    }
  }
}
mutation

reviewProductGroupCreate#

Creates a product group in the current store, so its products share their reviews on your storefront. Pass at least two products or one product tag; Toki then refreshes the reviews on the affected product pages. Requires a plan that includes Reviews.

Input

TokiReviewProductGroupCreateInput!
  • reviewGroupIdString!Required

    The review group whose reviews the products share.

  • nameString!Required

    The product group's name. Shoppers don't see it.

  • orderNumberInt

    Sort position among your product groups, lowest first. Groups without one come last.

  • products[TokiReviewProductGroupProductInput!]!Required

    Products to add by hand.

  • productTags[String!]

    Shopify product tags. Every product with one of these tags belongs to the group; tags match exactly, including case. Defaults to none.

Returns

TokiReviewProductGroup

Products that share their reviews: on your storefront, each of them shows the reviews, review count and rating of the whole group.

  • reviewProductGroupIdID!
  • reviewGroupIdID!

    The review group the product group belongs to.

  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • shopIdID!

    The store the product group belongs to. Each store has its own product groups.

  • nameString!
  • orderNumberInt

    Sort position among your product groups, lowest first. Groups without one come last.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the product group was deleted. Deleted ones are only listed with withDeleted: true.

  • productTags[String!]!

    Shopify product tags, in alphabetical order. Every product with one of these tags belongs to the group; tags match exactly, including case.

  • productCountInt!

    How many products belong to the group: the ones added by hand plus every product carrying one of the productTags, each counted once.

  • products[TokiReviewProductGroupProduct!]!

    Products added by hand, by orderNumber. Products that belong through productTags aren't listed.

mutation ReviewProductGroupCreate($input: TokiReviewProductGroupCreateInput!) {
  reviewProductGroupCreate(input: $input) {
    reviewProductGroupId
    reviewGroupId
    merchantId
    shopId
    name
    orderNumber
    createdAt
    products {
      reviewProductGroupProductId
      reviewProductGroupId
      createdAt
      label
    }
  }
}
Variables
{
  "input": {
    "reviewGroupId": "8a0e07bb-890e-4628-ac0e-0ae18b0e094e",
    "name": "Gold",
    "orderNumber": 3,
    "products": [
      {
        "productId": "a635bb73-a535-49e0-a835-be99a735bd06"
      }
    ],
    "productTags": [
      "Product tags"
    ]
  }
}
Response
{
  "data": {
    "reviewProductGroupCreate": {
      "reviewProductGroupId": "82db729e-83db-4431-a0db-6f7881db710b",
      "reviewGroupId": "fc24eb29-fb24-4996-aa24-e803f924e670",
      "merchantId": "8a314284-8b31-4417-ac31-45aa8d31473d",
      "shopId": "d2f448ac-d3f4-4a3f-a4f4-4bd2d5f44d65",
      "name": "Gold",
      "orderNumber": 3,
      "createdAt": "2026-10-14T09:30:00.000Z",
      "products": [
        {
          "reviewProductGroupProductId": "6edf1497-6ddf-4304-a0df-17bd6fdf162a",
          "reviewProductGroupId": "7f2c26a6-802c-4839-ad2c-23807e2c2513",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "label": "Summer double points"
        }
      ]
    }
  }
}
mutation

reviewProductGroupUpdate#

Updates a product group and refreshes the reviews on the affected product pages. Fields you leave out keep their values; products and productTags replace the whole list, and the group must keep at least two products or one tag. Requires a plan that includes Reviews.

Input

TokiReviewProductGroupUpdateInput!
  • reviewProductGroupIdString!Required
  • nameString
  • orderNumberInt

    Sort position among your product groups, lowest first. null removes it.

  • products[TokiReviewProductGroupProductInput!]

    Replaces all the products added by hand.

  • productTags[String!]

    Replaces all the product tags.

Returns

TokiReviewProductGroup

Products that share their reviews: on your storefront, each of them shows the reviews, review count and rating of the whole group.

  • reviewProductGroupIdID!
  • reviewGroupIdID!

    The review group the product group belongs to.

  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • shopIdID!

    The store the product group belongs to. Each store has its own product groups.

  • nameString!
  • orderNumberInt

    Sort position among your product groups, lowest first. Groups without one come last.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the product group was deleted. Deleted ones are only listed with withDeleted: true.

  • productTags[String!]!

    Shopify product tags, in alphabetical order. Every product with one of these tags belongs to the group; tags match exactly, including case.

  • productCountInt!

    How many products belong to the group: the ones added by hand plus every product carrying one of the productTags, each counted once.

  • products[TokiReviewProductGroupProduct!]!

    Products added by hand, by orderNumber. Products that belong through productTags aren't listed.

mutation ReviewProductGroupUpdate($input: TokiReviewProductGroupUpdateInput!) {
  reviewProductGroupUpdate(input: $input) {
    reviewProductGroupId
    reviewGroupId
    merchantId
    shopId
    name
    orderNumber
    createdAt
    products {
      reviewProductGroupProductId
      reviewProductGroupId
      createdAt
      label
    }
  }
}
Variables
{
  "input": {
    "reviewProductGroupId": "50d6663f-4fd6-44ac-a2d6-696551d667d2",
    "name": "Gold",
    "orderNumber": 3,
    "productTags": [
      "Product tags"
    ]
  }
}
Response
{
  "data": {
    "reviewProductGroupUpdate": {
      "reviewProductGroupId": "6a42bff1-6942-4e5e-a842-bccb6742bb38",
      "reviewGroupId": "927fbf6c-937f-40ff-a47f-c292957fc425",
      "merchantId": "6ea77563-6da7-43d0-a0a7-78896fa776f6",
      "shopId": "9f49ec17-9e49-4a84-a149-ef3da049edaa",
      "name": "Gold",
      "orderNumber": 3,
      "createdAt": "2026-10-14T09:30:00.000Z",
      "products": [
        {
          "reviewProductGroupProductId": "aa97e68a-ab97-481d-a897-e364a997e4f7",
          "reviewProductGroupId": "ec9d19f1-eb9d-485e-aa9d-16cbe99d1538",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "label": "Summer double points"
        }
      ]
    }
  }
}
mutation

reviewProductGroupDelete#

Deletes a product group: its products stop sharing reviews, and Toki refreshes the reviews on their product pages. Requires a plan that includes Reviews.

Input

TokiReviewProductGroupDeleteInput!
  • reviewProductGroupIdString!Required

Returns

TokiReviewProductGroup

Products that share their reviews: on your storefront, each of them shows the reviews, review count and rating of the whole group.

  • reviewProductGroupIdID!
  • reviewGroupIdID!

    The review group the product group belongs to.

  • merchantIdID!

    Your merchant ID, shown under Settings in the Toki app.

  • shopIdID!

    The store the product group belongs to. Each store has its own product groups.

  • nameString!
  • orderNumberInt

    Sort position among your product groups, lowest first. Groups without one come last.

  • createdAtString!
  • updatedAtString!
  • deletedAtString

    When the product group was deleted. Deleted ones are only listed with withDeleted: true.

  • productTags[String!]!

    Shopify product tags, in alphabetical order. Every product with one of these tags belongs to the group; tags match exactly, including case.

  • productCountInt!

    How many products belong to the group: the ones added by hand plus every product carrying one of the productTags, each counted once.

  • products[TokiReviewProductGroupProduct!]!

    Products added by hand, by orderNumber. Products that belong through productTags aren't listed.

mutation ReviewProductGroupDelete($input: TokiReviewProductGroupDeleteInput!) {
  reviewProductGroupDelete(input: $input) {
    reviewProductGroupId
    reviewGroupId
    merchantId
    shopId
    name
    orderNumber
    createdAt
    products {
      reviewProductGroupProductId
      reviewProductGroupId
      createdAt
      label
    }
  }
}
Variables
{
  "input": {
    "reviewProductGroupId": "84c0ef4d-83c0-4dba-a2c0-ec2781c0ea94"
  }
}
Response
{
  "data": {
    "reviewProductGroupDelete": {
      "reviewProductGroupId": "80481fe7-7f48-4e54-a248-230d8148217a",
      "reviewGroupId": "aa84bdca-ab84-4f5d-a884-baa4a984bc37",
      "merchantId": "31cae6b9-30ca-4526-afca-e3932ecae200",
      "shopId": "9bfe48a9-9afe-4716-a9fe-458398fe43f0",
      "name": "Gold",
      "orderNumber": 3,
      "createdAt": "2026-10-14T09:30:00.000Z",
      "products": [
        {
          "reviewProductGroupProductId": "fd787bf0-fe78-4d83-af78-7f16007880a9",
          "reviewProductGroupId": "483bac17-473b-4a84-aa3b-af3d493badaa",
          "createdAt": "2026-10-14T09:30:00.000Z",
          "label": "Summer double points"
        }
      ]
    }
  }
}