Search for feedback results
curl --request GET \
--url https://api.partoo.co/v2/feedback/feedback_result \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/feedback/feedback_result"
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/feedback/feedback_result', 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/feedback/feedback_result",
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/feedback/feedback_result"
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/feedback/feedback_result")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/feedback/feedback_result")
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{
"page": 1,
"max_page": 10,
"count": 287,
"items": [
{
"id": 1,
"business_id": "5409c35a97bbc544d8e26737",
"store_code": "FR-0042",
"firstname": "John",
"lastname": "Doe",
"nps": 9,
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vulputate efficitur augue, ac auctor nibh scelerisque at. Nulla facilisi. Maecenas luctus efficitur sem sit amet ullamcorper. Donec tempor augue lorem, vitae convallis sapien aliquam id. Maecenas eu odio non est pretium eleifend. Nullam at odio eu ligula ultrices tincidunt. Nulla euismod aliquet ex eget efficitur.",
"state": "treated",
"optin": true,
"created": "2024-10-25T15:12:11+00:00",
"feedback_form": {
"id": "674d791c13c9d976e20001b1",
"display_name": "Global Satisfaction",
"custom_hidden_fields": {
"field_1": "Campaign"
}
},
"feedback_result_fields": [
{
"rating": 4,
"content": null,
"choices": null,
"feedback_form_field": {
"id": "674d7aaa13e599deae0001b2",
"field_type": "CSAT",
"field_label": "How would you rate our service?",
"field_choices": null
}
}
],
"comments": [
{
"id": 1,
"created": "2024-11-15T10:00:15+00:00",
"author_name": "Jane Doe",
"content": "Thank you for your feedback",
"feedback_result_id": 1,
"user_id": "5309c3a237bbc544d8e26737",
"is_reply_suggestion": false
}
],
"extra": {
"extra_field": "value",
"extra_field_2": "value_2"
},
"issues": null
}
]
}{
"errors": {
"json": {}
}
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}Feedback Management
Search for feedback results
The Feedback Management API is currently in BETA, therefore the following endpoints are subject to modification, given a 2 week notice.
If you are planning to use any of them, please notify us so we will be able to keep you informed about upcoming changes.
This endpoint lets you search for the feedback results of your businesses.
The response is paginated (30 results per page).
GET
/
feedback
/
feedback_result
Search for feedback results
curl --request GET \
--url https://api.partoo.co/v2/feedback/feedback_result \
--header 'x-APIKey: <api-key>'import requests
url = "https://api.partoo.co/v2/feedback/feedback_result"
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/feedback/feedback_result', 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/feedback/feedback_result",
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/feedback/feedback_result"
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/feedback/feedback_result")
.header("x-APIKey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.partoo.co/v2/feedback/feedback_result")
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{
"page": 1,
"max_page": 10,
"count": 287,
"items": [
{
"id": 1,
"business_id": "5409c35a97bbc544d8e26737",
"store_code": "FR-0042",
"firstname": "John",
"lastname": "Doe",
"nps": 9,
"content": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse vulputate efficitur augue, ac auctor nibh scelerisque at. Nulla facilisi. Maecenas luctus efficitur sem sit amet ullamcorper. Donec tempor augue lorem, vitae convallis sapien aliquam id. Maecenas eu odio non est pretium eleifend. Nullam at odio eu ligula ultrices tincidunt. Nulla euismod aliquet ex eget efficitur.",
"state": "treated",
"optin": true,
"created": "2024-10-25T15:12:11+00:00",
"feedback_form": {
"id": "674d791c13c9d976e20001b1",
"display_name": "Global Satisfaction",
"custom_hidden_fields": {
"field_1": "Campaign"
}
},
"feedback_result_fields": [
{
"rating": 4,
"content": null,
"choices": null,
"feedback_form_field": {
"id": "674d7aaa13e599deae0001b2",
"field_type": "CSAT",
"field_label": "How would you rate our service?",
"field_choices": null
}
}
],
"comments": [
{
"id": 1,
"created": "2024-11-15T10:00:15+00:00",
"author_name": "Jane Doe",
"content": "Thank you for your feedback",
"feedback_result_id": 1,
"user_id": "5309c3a237bbc544d8e26737",
"is_reply_suggestion": false
}
],
"extra": {
"extra_field": "value",
"extra_field_2": "value_2"
},
"issues": null
}
]
}{
"errors": {
"json": {}
}
}{
"errors": {
"authentication": "User not authenticated"
}
}{
"errors": {
"authorization": "Operation not allowed"
}
}Authorizations
Query Parameters
Was this page helpful?