curl --request POST \
--url https://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>",
"scorecard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"replace": false
}
'import requests
url = "https://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations"
payload = {
"reason": "<string>",
"scorecard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"replace": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reason: '<string>',
scorecard_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
replace: false
})
};
fetch('https://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations', 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://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations",
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([
'reason' => '<string>',
'scorecard_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'replace' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations"
payload := strings.NewReader("{\n \"reason\": \"<string>\",\n \"scorecard_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"replace\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\",\n \"scorecard_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"replace\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\",\n \"scorecard_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"replace\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"new_call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scorecard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_replacement": true,
"status": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}Re-score a call
Re-scores a call with the same scorecard or another one, as “Change scorecard” does in the app. By default the new evaluation is added next to the existing one; send replace: true to replace it. Scoring runs in the background: read GET /calls/{new_call_id} until its status is complete. Re-scoring uses one credit of the call’s owner. Send an Idempotency-Key header so a retry never re-scores twice. Requires calls.write.
curl --request POST \
--url https://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "<string>",
"scorecard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"replace": false
}
'import requests
url = "https://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations"
payload = {
"reason": "<string>",
"scorecard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"replace": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reason: '<string>',
scorecard_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
replace: false
})
};
fetch('https://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations', 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://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations",
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([
'reason' => '<string>',
'scorecard_id' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'replace' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations"
payload := strings.NewReader("{\n \"reason\": \"<string>\",\n \"scorecard_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"replace\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"<string>\",\n \"scorecard_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"replace\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.triplesession.com/api/public/v2/calls/{callId}/re-evaluations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"reason\": \"<string>\",\n \"scorecard_id\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"replace\": false\n}"
response = http.request(request)
puts response.read_body{
"data": {
"call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"new_call_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scorecard_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"is_replacement": true,
"status": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}{
"error": {
"message": "<string>"
}
}Authorizations
Headers
Query Parameters
Body
The scorecard to score the call with. Omit it to re-score with the call's current scorecard. It must be a scorecard the key's company can use, and not archived. A key limited to some workspaces can only use custom scorecards of those workspaces. A scored call cannot be moved to an unscored scorecard (403).
Was this page helpful?

