Fetch AI reply suggestion for reviews
curl --request GET \
--url https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index} \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 820459,
"index": 1,
"review_id": 34,
"content": "Dear Client, thanks for your kind feedback.",
"report": {
"id": 3587,
"user_id": "52e10f004ee65a020",
"created_at": "2025-05-12T12:57:21.895170Z"
}
}{
"errors": {
"json": {}
}
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}Reviews
Fetch AI reply suggestion for reviews
The AI reply suggestion is a service that generates a response to a review based on the review content.
⚠️ 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 endpoint ⚠️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_suggestionrequest body when calling the reply to a review service to link the response to the suggestion.
GET
/
reviews
/
fetch-suggestion
/
{review_id}
/
{index}
Fetch AI reply suggestion for reviews
curl --request GET \
--url https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index} \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}"
headers = {"x-APIKey": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-APIKey': '<api-key>'}};
fetch('https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-APIKey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-APIKey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/reviews/fetch-suggestion/{review_id}/{index}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-APIKey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": 820459,
"index": 1,
"review_id": 34,
"content": "Dear Client, thanks for your kind feedback.",
"report": {
"id": 3587,
"user_id": "52e10f004ee65a020",
"created_at": "2025-05-12T12:57:21.895170Z"
}
}{
"errors": {
"json": {}
}
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}Authorizations
Path Parameters
Response
OK
Review's reply suggestion
Was this page helpful?