Submit CSAT from webchat widget (tiered auth)
curl --request POST \
--url https://your-instance.example.com/api/conversation/csat \
--header 'Content-Type: application/json' \
--data '
{
"webchatId": "67d3a0b0c0d0e0f0a0b0c0d0",
"rating": 5,
"feedback": "Great help!"
}
'import requests
url = "https://your-instance.example.com/api/conversation/csat"
payload = {
"webchatId": "67d3a0b0c0d0e0f0a0b0c0d0",
"rating": 5,
"feedback": "Great help!"
}
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({webchatId: '67d3a0b0c0d0e0f0a0b0c0d0', rating: 5, feedback: 'Great help!'})
};
fetch('https://your-instance.example.com/api/conversation/csat', 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://your-instance.example.com/api/conversation/csat",
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([
'webchatId' => '67d3a0b0c0d0e0f0a0b0c0d0',
'rating' => 5,
'feedback' => 'Great help!'
]),
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://your-instance.example.com/api/conversation/csat"
payload := strings.NewReader("{\n \"webchatId\": \"67d3a0b0c0d0e0f0a0b0c0d0\",\n \"rating\": 5,\n \"feedback\": \"Great help!\"\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://your-instance.example.com/api/conversation/csat")
.header("Content-Type", "application/json")
.body("{\n \"webchatId\": \"67d3a0b0c0d0e0f0a0b0c0d0\",\n \"rating\": 5,\n \"feedback\": \"Great help!\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/conversation/csat")
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 \"webchatId\": \"67d3a0b0c0d0e0f0a0b0c0d0\",\n \"rating\": 5,\n \"feedback\": \"Great help!\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"conversationId": "65d3e0f0a0b0c0d0e0f0a0b0",
"csatRating": 5,
"csatSubmittedAt": "2026-05-18T14:00:00.000Z"
}{
"error": "Attachment not found",
"message": "Attachment not found"
}{
"error": "Attachment not found",
"message": "Attachment not found"
}{
"error": "Attachment not found",
"message": "Attachment not found"
}Conversations
Submit CSAT from webchat widget (tiered auth)
Public endpoint used by the webchat widget to submit a CSAT rating for a conversation identified by webchatId. Auth is tiered — if no bearer token is present, the request is gated by the visitor session.
POST
/
api
/
conversation
/
csat
Submit CSAT from webchat widget (tiered auth)
curl --request POST \
--url https://your-instance.example.com/api/conversation/csat \
--header 'Content-Type: application/json' \
--data '
{
"webchatId": "67d3a0b0c0d0e0f0a0b0c0d0",
"rating": 5,
"feedback": "Great help!"
}
'import requests
url = "https://your-instance.example.com/api/conversation/csat"
payload = {
"webchatId": "67d3a0b0c0d0e0f0a0b0c0d0",
"rating": 5,
"feedback": "Great help!"
}
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({webchatId: '67d3a0b0c0d0e0f0a0b0c0d0', rating: 5, feedback: 'Great help!'})
};
fetch('https://your-instance.example.com/api/conversation/csat', 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://your-instance.example.com/api/conversation/csat",
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([
'webchatId' => '67d3a0b0c0d0e0f0a0b0c0d0',
'rating' => 5,
'feedback' => 'Great help!'
]),
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://your-instance.example.com/api/conversation/csat"
payload := strings.NewReader("{\n \"webchatId\": \"67d3a0b0c0d0e0f0a0b0c0d0\",\n \"rating\": 5,\n \"feedback\": \"Great help!\"\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://your-instance.example.com/api/conversation/csat")
.header("Content-Type", "application/json")
.body("{\n \"webchatId\": \"67d3a0b0c0d0e0f0a0b0c0d0\",\n \"rating\": 5,\n \"feedback\": \"Great help!\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/conversation/csat")
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 \"webchatId\": \"67d3a0b0c0d0e0f0a0b0c0d0\",\n \"rating\": 5,\n \"feedback\": \"Great help!\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"conversationId": "65d3e0f0a0b0c0d0e0f0a0b0",
"csatRating": 5,
"csatSubmittedAt": "2026-05-18T14:00:00.000Z"
}{
"error": "Attachment not found",
"message": "Attachment not found"
}{
"error": "Attachment not found",
"message": "Attachment not found"
}{
"error": "Attachment not found",
"message": "Attachment not found"
}⌘I