---
title: "Fetch AI reply suggestion for reviews"
method: GET
path: "/reviews/fetch-suggestion/{review_id}/{index}"
tags: ["Reviews"]
---

# Fetch AI reply suggestion for reviews

`GET /reviews/fetch-suggestion/{review_id}/{index}`

## Request

- Base URL: `https://api.partoo.co/v2`
- URL: `https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}`
- Auth: API key in header `x-APIKey`
- TypeScript: <https://skmtc.dev/partoo/apis/partoo-rest-api/docs/reviews/fetch-suggestion/:review_id/:index/get.ts> (a function with typed inputs; its response is checked against the schema)

The AI reply suggestion is a service that generates a response to a review based on the review content.

<b>⚠️ This feature provides reply SUGGESTIONS, NOT AUTOMATIC REPLIES. 
It is NOT designed for fully automating conversations. Similar to the app, 
a human reviewer is expected to validate the suggestion before selecting it
in order to use [reply to a review](/api-reference/reviews/post-a-reply-to-a-review) endpoint ⚠️</b>

**How does the AI reply suggestion work?**

- First, call the Fetch AI reply suggestion service.
- Then retrieve the values and store them on the caller's side. It is possible to request up to 3 suggestions per reply, 
and after that, it's no longer possible; the suggestions are retained once they're made, and that they can be found at the `index` (0, 1, or 2) of the parameters
- Finally, use the suggestion ID and pass it to `reply_suggestion` request body when calling the [reply to a review](/api-reference/reviews/post-a-reply-to-a-review) service to link the response to the suggestion.

## Path parameters

- `review_id` integer, required: ID of the review for which we want an AI suggestion
- `index` integer, required: Index of the reply suggestion (0, 1, or 2)

## Response `200`

OK

- ReplySuggestion: Review's reply suggestion
  - `id` integer: Reply suggestion id
  - `index` integer: Index of the reply suggestion
  - `review_id` integer: Review id
  - `content` string: The content of the reply suggestion
  - `report` object: Report details if the suggestion was reported (can be null)
    - `id` integer: Report id
    - `user_id` string: User id of the user who reported the suggestion
    - `created_at` string, datetime: Date the review suggestion report was created on

## Other responses

- `400`: Your request is incorrect
- `401`: You are not authenticated
- `403`: You are not allowed to perform this action

---

[API](https://skmtc.dev/partoo/apis/partoo-rest-api.md) - [All operations](https://skmtc.dev/partoo/apis/partoo-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/partoo/apis/partoo-rest-api/revisions/dcb8190f5a29?raw)
