Create Scorecard Result
curl --request POST \
--url https://api.attention.tech/v2/createScorecardResult \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"scorecard_uuid": "sc-uuid-123",
"summary": "Excellent discovery process, identified 3 key pain points",
"conversation_uuid": "conv-uuid-789",
"items": [
{
"scorecard_item_uuid": "si-uuid-1",
"numeric_result": 95,
"description": "Outstanding listening skills"
},
{
"scorecard_item_uuid": "si-uuid-2",
"numeric_result": 85,
"description": "Good closing technique"
}
]
}
'import requests
url = "https://api.attention.tech/v2/createScorecardResult"
payload = {
"scorecard_uuid": "sc-uuid-123",
"summary": "Excellent discovery process, identified 3 key pain points",
"conversation_uuid": "conv-uuid-789",
"items": [
{
"scorecard_item_uuid": "si-uuid-1",
"numeric_result": 95,
"description": "Outstanding listening skills"
},
{
"scorecard_item_uuid": "si-uuid-2",
"numeric_result": 85,
"description": "Good closing technique"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scorecard_uuid: 'sc-uuid-123',
summary: 'Excellent discovery process, identified 3 key pain points',
conversation_uuid: 'conv-uuid-789',
items: [
{
scorecard_item_uuid: 'si-uuid-1',
numeric_result: 95,
description: 'Outstanding listening skills'
},
{
scorecard_item_uuid: 'si-uuid-2',
numeric_result: 85,
description: 'Good closing technique'
}
]
})
};
fetch('https://api.attention.tech/v2/createScorecardResult', 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.attention.tech/v2/createScorecardResult",
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([
'scorecard_uuid' => 'sc-uuid-123',
'summary' => 'Excellent discovery process, identified 3 key pain points',
'conversation_uuid' => 'conv-uuid-789',
'items' => [
[
'scorecard_item_uuid' => 'si-uuid-1',
'numeric_result' => 95,
'description' => 'Outstanding listening skills'
],
[
'scorecard_item_uuid' => 'si-uuid-2',
'numeric_result' => 85,
'description' => 'Good closing technique'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.attention.tech/v2/createScorecardResult"
payload := strings.NewReader("{\n \"scorecard_uuid\": \"sc-uuid-123\",\n \"summary\": \"Excellent discovery process, identified 3 key pain points\",\n \"conversation_uuid\": \"conv-uuid-789\",\n \"items\": [\n {\n \"scorecard_item_uuid\": \"si-uuid-1\",\n \"numeric_result\": 95,\n \"description\": \"Outstanding listening skills\"\n },\n {\n \"scorecard_item_uuid\": \"si-uuid-2\",\n \"numeric_result\": 85,\n \"description\": \"Good closing technique\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://api.attention.tech/v2/createScorecardResult")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"scorecard_uuid\": \"sc-uuid-123\",\n \"summary\": \"Excellent discovery process, identified 3 key pain points\",\n \"conversation_uuid\": \"conv-uuid-789\",\n \"items\": [\n {\n \"scorecard_item_uuid\": \"si-uuid-1\",\n \"numeric_result\": 95,\n \"description\": \"Outstanding listening skills\"\n },\n {\n \"scorecard_item_uuid\": \"si-uuid-2\",\n \"numeric_result\": 85,\n \"description\": \"Good closing technique\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/createScorecardResult")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scorecard_uuid\": \"sc-uuid-123\",\n \"summary\": \"Excellent discovery process, identified 3 key pain points\",\n \"conversation_uuid\": \"conv-uuid-789\",\n \"items\": [\n {\n \"scorecard_item_uuid\": \"si-uuid-1\",\n \"numeric_result\": 95,\n \"description\": \"Outstanding listening skills\"\n },\n {\n \"scorecard_item_uuid\": \"si-uuid-2\",\n \"numeric_result\": 85,\n \"description\": \"Good closing technique\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Scorecard
Create Scorecard Result
Create Scorecard Result for a conversation
POST
/
createScorecardResult
Create Scorecard Result
curl --request POST \
--url https://api.attention.tech/v2/createScorecardResult \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"scorecard_uuid": "sc-uuid-123",
"summary": "Excellent discovery process, identified 3 key pain points",
"conversation_uuid": "conv-uuid-789",
"items": [
{
"scorecard_item_uuid": "si-uuid-1",
"numeric_result": 95,
"description": "Outstanding listening skills"
},
{
"scorecard_item_uuid": "si-uuid-2",
"numeric_result": 85,
"description": "Good closing technique"
}
]
}
'import requests
url = "https://api.attention.tech/v2/createScorecardResult"
payload = {
"scorecard_uuid": "sc-uuid-123",
"summary": "Excellent discovery process, identified 3 key pain points",
"conversation_uuid": "conv-uuid-789",
"items": [
{
"scorecard_item_uuid": "si-uuid-1",
"numeric_result": 95,
"description": "Outstanding listening skills"
},
{
"scorecard_item_uuid": "si-uuid-2",
"numeric_result": 85,
"description": "Good closing technique"
}
]
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scorecard_uuid: 'sc-uuid-123',
summary: 'Excellent discovery process, identified 3 key pain points',
conversation_uuid: 'conv-uuid-789',
items: [
{
scorecard_item_uuid: 'si-uuid-1',
numeric_result: 95,
description: 'Outstanding listening skills'
},
{
scorecard_item_uuid: 'si-uuid-2',
numeric_result: 85,
description: 'Good closing technique'
}
]
})
};
fetch('https://api.attention.tech/v2/createScorecardResult', 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.attention.tech/v2/createScorecardResult",
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([
'scorecard_uuid' => 'sc-uuid-123',
'summary' => 'Excellent discovery process, identified 3 key pain points',
'conversation_uuid' => 'conv-uuid-789',
'items' => [
[
'scorecard_item_uuid' => 'si-uuid-1',
'numeric_result' => 95,
'description' => 'Outstanding listening skills'
],
[
'scorecard_item_uuid' => 'si-uuid-2',
'numeric_result' => 85,
'description' => 'Good closing technique'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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://api.attention.tech/v2/createScorecardResult"
payload := strings.NewReader("{\n \"scorecard_uuid\": \"sc-uuid-123\",\n \"summary\": \"Excellent discovery process, identified 3 key pain points\",\n \"conversation_uuid\": \"conv-uuid-789\",\n \"items\": [\n {\n \"scorecard_item_uuid\": \"si-uuid-1\",\n \"numeric_result\": 95,\n \"description\": \"Outstanding listening skills\"\n },\n {\n \"scorecard_item_uuid\": \"si-uuid-2\",\n \"numeric_result\": 85,\n \"description\": \"Good closing technique\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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://api.attention.tech/v2/createScorecardResult")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"scorecard_uuid\": \"sc-uuid-123\",\n \"summary\": \"Excellent discovery process, identified 3 key pain points\",\n \"conversation_uuid\": \"conv-uuid-789\",\n \"items\": [\n {\n \"scorecard_item_uuid\": \"si-uuid-1\",\n \"numeric_result\": 95,\n \"description\": \"Outstanding listening skills\"\n },\n {\n \"scorecard_item_uuid\": \"si-uuid-2\",\n \"numeric_result\": 85,\n \"description\": \"Good closing technique\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/createScorecardResult")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scorecard_uuid\": \"sc-uuid-123\",\n \"summary\": \"Excellent discovery process, identified 3 key pain points\",\n \"conversation_uuid\": \"conv-uuid-789\",\n \"items\": [\n {\n \"scorecard_item_uuid\": \"si-uuid-1\",\n \"numeric_result\": 95,\n \"description\": \"Outstanding listening skills\"\n },\n {\n \"scorecard_item_uuid\": \"si-uuid-2\",\n \"numeric_result\": 85,\n \"description\": \"Good closing technique\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"success": true
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}{
"id": "not_found_error",
"status": "404",
"code": "404",
"title": "Not Found Error",
"detail": "The requested resource was not found",
"source": {
"pointer": "/data/attributes/id"
}
}Authorizations
Body
application/jsonapplication/vnd.api+json
Scorecard result creation request containing the conversation UUID, scorecard UUID, and scorecard result details
Response
Scorecard result successfully created
Was this page helpful?
⌘I