REVIEW (POST)
curl --request POST \
--url https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key} \
--header 'Content-Type: application/json' \
--data '
{
"q_id": "3333",
"text": "I am very satisfied because the features meet all my needs.",
"s_text_length": "50",
"sn_ud": "T_test",
"sy_nr": "test",
"question": "How satisfied are you with the current product features?"
}
'import requests
url = "https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}"
payload = {
"q_id": "3333",
"text": "I am very satisfied because the features meet all my needs.",
"s_text_length": "50",
"sn_ud": "T_test",
"sy_nr": "test",
"question": "How satisfied are you with the current product features?"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
q_id: '3333',
text: 'I am very satisfied because the features meet all my needs.',
s_text_length: '50',
sn_ud: 'T_test',
sy_nr: 'test',
question: 'How satisfied are you with the current product features?'
})
};
fetch('https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}', 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://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q_id' => '3333',
'text' => 'I am very satisfied because the features meet all my needs.',
's_text_length' => '50',
'sn_ud' => 'T_test',
'sy_nr' => 'test',
'question' => 'How satisfied are you with the current product features?'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}"
payload := strings.NewReader("{\n \"q_id\": \"3333\",\n \"text\": \"I am very satisfied because the features meet all my needs.\",\n \"s_text_length\": \"50\",\n \"sn_ud\": \"T_test\",\n \"sy_nr\": \"test\",\n \"question\": \"How satisfied are you with the current product features?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}")
.header("Content-Type", "application/json")
.body("{\n \"q_id\": \"3333\",\n \"text\": \"I am very satisfied because the features meet all my needs.\",\n \"s_text_length\": \"50\",\n \"sn_ud\": \"T_test\",\n \"sy_nr\": \"test\",\n \"question\": \"How satisfied are you with the current product features?\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"q_id\": \"3333\",\n \"text\": \"I am very satisfied because the features meet all my needs.\",\n \"s_text_length\": \"50\",\n \"sn_ud\": \"T_test\",\n \"sy_nr\": \"test\",\n \"question\": \"How satisfied are you with the current product features?\"\n}"
response = http.request(request)
puts response.read_body{
"model": {
"rw_context_risk_score": 12,
"rw_context_risk_level": "low",
"rw_context_description": "Yes, contextually correct",
"rw_llm_risk_score": 1,
"rw_llm_risk_level": "low",
"rw_llm_description": "LLM not detected"
},
"input": {
"sy_nr": "test",
"q_id": "3333",
"question": "How satisfied are you with the current product features?",
"sn_ud": "T_test",
"text": "I am very satisfied because the features meet all my needs.",
"similarity_text_length": "50"
},
"score": {
"garbage_words_score": 0,
"pasted_response_score": 0,
"typed_response_time": 0,
"page_view_time": 0,
"profanity_check_score": 0,
"composite_score": 0,
"garbage_words": 0,
"language_detected_score": 0.01,
"engagement_score": 1,
"similarity_text": 1,
"profanity_check": 0,
"language_detected": "English",
"pasted_response": 0
}
}REVIEW
REVIEW (POST)
POST
/
api
/
v4
/
respondents
/
review
/
{publishable_key}
REVIEW (POST)
curl --request POST \
--url https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key} \
--header 'Content-Type: application/json' \
--data '
{
"q_id": "3333",
"text": "I am very satisfied because the features meet all my needs.",
"s_text_length": "50",
"sn_ud": "T_test",
"sy_nr": "test",
"question": "How satisfied are you with the current product features?"
}
'import requests
url = "https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}"
payload = {
"q_id": "3333",
"text": "I am very satisfied because the features meet all my needs.",
"s_text_length": "50",
"sn_ud": "T_test",
"sy_nr": "test",
"question": "How satisfied are you with the current product features?"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
q_id: '3333',
text: 'I am very satisfied because the features meet all my needs.',
s_text_length: '50',
sn_ud: 'T_test',
sy_nr: 'test',
question: 'How satisfied are you with the current product features?'
})
};
fetch('https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}', 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://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q_id' => '3333',
'text' => 'I am very satisfied because the features meet all my needs.',
's_text_length' => '50',
'sn_ud' => 'T_test',
'sy_nr' => 'test',
'question' => 'How satisfied are you with the current product features?'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}"
payload := strings.NewReader("{\n \"q_id\": \"3333\",\n \"text\": \"I am very satisfied because the features meet all my needs.\",\n \"s_text_length\": \"50\",\n \"sn_ud\": \"T_test\",\n \"sy_nr\": \"test\",\n \"question\": \"How satisfied are you with the current product features?\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}")
.header("Content-Type", "application/json")
.body("{\n \"q_id\": \"3333\",\n \"text\": \"I am very satisfied because the features meet all my needs.\",\n \"s_text_length\": \"50\",\n \"sn_ud\": \"T_test\",\n \"sy_nr\": \"test\",\n \"question\": \"How satisfied are you with the current product features?\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.rtymgt.com/api/v4/respondents/review/{publishable_key}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"q_id\": \"3333\",\n \"text\": \"I am very satisfied because the features meet all my needs.\",\n \"s_text_length\": \"50\",\n \"sn_ud\": \"T_test\",\n \"sy_nr\": \"test\",\n \"question\": \"How satisfied are you with the current product features?\"\n}"
response = http.request(request)
puts response.read_body{
"model": {
"rw_context_risk_score": 12,
"rw_context_risk_level": "low",
"rw_context_description": "Yes, contextually correct",
"rw_llm_risk_score": 1,
"rw_llm_risk_level": "low",
"rw_llm_description": "LLM not detected"
},
"input": {
"sy_nr": "test",
"q_id": "3333",
"question": "How satisfied are you with the current product features?",
"sn_ud": "T_test",
"text": "I am very satisfied because the features meet all my needs.",
"similarity_text_length": "50"
},
"score": {
"garbage_words_score": 0,
"pasted_response_score": 0,
"typed_response_time": 0,
"page_view_time": 0,
"profanity_check_score": 0,
"composite_score": 0,
"garbage_words": 0,
"language_detected_score": 0.01,
"engagement_score": 1,
"similarity_text": 1,
"profanity_check": 0,
"language_detected": "English",
"pasted_response": 0
}
}Text analysis of an open-ended survey response, submitted as a JSON body. POST supports a higher number of characters than the GET method.
Send
q_id, text, and s_text_length (plus sn_ud, sy_nr, and question) in the request body with Content-Type: application/json.
For full parameter definitions, response fields, and the copy/paste JS library, see the REVIEW guide.Path Parameters
Your Research Defender publishable key (client-side).
Was this page helpful?
⌘I