curl --request POST \
--url https://api.attention.tech/v2/scorecards/{id}/items \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Discovery Quality",
"type": "numeric",
"weight": 25,
"metadata": {
"numericMetadata": {
"min": 0,
"middle": 50,
"max": 100,
"minCriteria": "No discovery questions asked.",
"middleCriteria": "Some discovery questions asked.",
"maxCriteria": "Thorough discovery performed."
}
}
}
'import requests
url = "https://api.attention.tech/v2/scorecards/{id}/items"
payload = {
"title": "Discovery Quality",
"type": "numeric",
"weight": 25,
"metadata": { "numericMetadata": {
"min": 0,
"middle": 50,
"max": 100,
"minCriteria": "No discovery questions asked.",
"middleCriteria": "Some discovery questions asked.",
"maxCriteria": "Thorough discovery performed."
} }
}
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({
title: 'Discovery Quality',
type: 'numeric',
weight: 25,
metadata: {
numericMetadata: {
min: 0,
middle: 50,
max: 100,
minCriteria: 'No discovery questions asked.',
middleCriteria: 'Some discovery questions asked.',
maxCriteria: 'Thorough discovery performed.'
}
}
})
};
fetch('https://api.attention.tech/v2/scorecards/{id}/items', 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/scorecards/{id}/items",
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([
'title' => 'Discovery Quality',
'type' => 'numeric',
'weight' => 25,
'metadata' => [
'numericMetadata' => [
'min' => 0,
'middle' => 50,
'max' => 100,
'minCriteria' => 'No discovery questions asked.',
'middleCriteria' => 'Some discovery questions asked.',
'maxCriteria' => 'Thorough discovery performed.'
]
]
]),
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/scorecards/{id}/items"
payload := strings.NewReader("{\n \"title\": \"Discovery Quality\",\n \"type\": \"numeric\",\n \"weight\": 25,\n \"metadata\": {\n \"numericMetadata\": {\n \"min\": 0,\n \"middle\": 50,\n \"max\": 100,\n \"minCriteria\": \"No discovery questions asked.\",\n \"middleCriteria\": \"Some discovery questions asked.\",\n \"maxCriteria\": \"Thorough discovery performed.\"\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/scorecards/{id}/items")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Discovery Quality\",\n \"type\": \"numeric\",\n \"weight\": 25,\n \"metadata\": {\n \"numericMetadata\": {\n \"min\": 0,\n \"middle\": 50,\n \"max\": 100,\n \"minCriteria\": \"No discovery questions asked.\",\n \"middleCriteria\": \"Some discovery questions asked.\",\n \"maxCriteria\": \"Thorough discovery performed.\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/scorecards/{id}/items")
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 \"title\": \"Discovery Quality\",\n \"type\": \"numeric\",\n \"weight\": 25,\n \"metadata\": {\n \"numericMetadata\": {\n \"min\": 0,\n \"middle\": 50,\n \"max\": 100,\n \"minCriteria\": \"No discovery questions asked.\",\n \"middleCriteria\": \"Some discovery questions asked.\",\n \"maxCriteria\": \"Thorough discovery performed.\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "si-uuid-123",
"scorecardId": "sc-uuid-456",
"title": "Discovery Quality",
"type": "numeric",
"position": 0,
"weight": 25,
"version": 1,
"createdAt": "2026-04-16T10:15:00Z",
"lastUpdatedAt": "2026-04-16T10:15:00Z"
}
}{
"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"
}
}{
"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"
}
}{
"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"
}
}Create Scorecard Item
Adds a single item (scoring criterion) to the given scorecard. The new item is appended at the next position. Requires an org-scoped API key.
curl --request POST \
--url https://api.attention.tech/v2/scorecards/{id}/items \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Discovery Quality",
"type": "numeric",
"weight": 25,
"metadata": {
"numericMetadata": {
"min": 0,
"middle": 50,
"max": 100,
"minCriteria": "No discovery questions asked.",
"middleCriteria": "Some discovery questions asked.",
"maxCriteria": "Thorough discovery performed."
}
}
}
'import requests
url = "https://api.attention.tech/v2/scorecards/{id}/items"
payload = {
"title": "Discovery Quality",
"type": "numeric",
"weight": 25,
"metadata": { "numericMetadata": {
"min": 0,
"middle": 50,
"max": 100,
"minCriteria": "No discovery questions asked.",
"middleCriteria": "Some discovery questions asked.",
"maxCriteria": "Thorough discovery performed."
} }
}
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({
title: 'Discovery Quality',
type: 'numeric',
weight: 25,
metadata: {
numericMetadata: {
min: 0,
middle: 50,
max: 100,
minCriteria: 'No discovery questions asked.',
middleCriteria: 'Some discovery questions asked.',
maxCriteria: 'Thorough discovery performed.'
}
}
})
};
fetch('https://api.attention.tech/v2/scorecards/{id}/items', 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/scorecards/{id}/items",
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([
'title' => 'Discovery Quality',
'type' => 'numeric',
'weight' => 25,
'metadata' => [
'numericMetadata' => [
'min' => 0,
'middle' => 50,
'max' => 100,
'minCriteria' => 'No discovery questions asked.',
'middleCriteria' => 'Some discovery questions asked.',
'maxCriteria' => 'Thorough discovery performed.'
]
]
]),
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/scorecards/{id}/items"
payload := strings.NewReader("{\n \"title\": \"Discovery Quality\",\n \"type\": \"numeric\",\n \"weight\": 25,\n \"metadata\": {\n \"numericMetadata\": {\n \"min\": 0,\n \"middle\": 50,\n \"max\": 100,\n \"minCriteria\": \"No discovery questions asked.\",\n \"middleCriteria\": \"Some discovery questions asked.\",\n \"maxCriteria\": \"Thorough discovery performed.\"\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/scorecards/{id}/items")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"title\": \"Discovery Quality\",\n \"type\": \"numeric\",\n \"weight\": 25,\n \"metadata\": {\n \"numericMetadata\": {\n \"min\": 0,\n \"middle\": 50,\n \"max\": 100,\n \"minCriteria\": \"No discovery questions asked.\",\n \"middleCriteria\": \"Some discovery questions asked.\",\n \"maxCriteria\": \"Thorough discovery performed.\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.attention.tech/v2/scorecards/{id}/items")
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 \"title\": \"Discovery Quality\",\n \"type\": \"numeric\",\n \"weight\": 25,\n \"metadata\": {\n \"numericMetadata\": {\n \"min\": 0,\n \"middle\": 50,\n \"max\": 100,\n \"minCriteria\": \"No discovery questions asked.\",\n \"middleCriteria\": \"Some discovery questions asked.\",\n \"maxCriteria\": \"Thorough discovery performed.\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "si-uuid-123",
"scorecardId": "sc-uuid-456",
"title": "Discovery Quality",
"type": "numeric",
"position": 0,
"weight": 25,
"version": 1,
"createdAt": "2026-04-16T10:15:00Z",
"lastUpdatedAt": "2026-04-16T10:15:00Z"
}
}{
"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"
}
}{
"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"
}
}{
"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
Path Parameters
Parent scorecard UUID
Body
Scorecard item creation payload
Payload for creating a single scorecard item.
Human-readable title of the item (1-128 characters, trimmed).
Scoring type for a scorecard item. Currently only numeric is supported.
numeric "numeric"
Relative weight of this item within the scorecard (0-100).
Optional position override. When omitted, the item is appended to the end of the scorecard.
Optional expert-mode prompt override (0-8000 characters).
Type-discriminated metadata for a scorecard item. Numeric items populate numericMetadata.
Show child attributes
Show child attributes
{
"numericMetadata": {
"min": 0,
"middle": 50,
"max": 100,
"minCriteria": "No discovery questions asked.",
"middleCriteria": "Some discovery questions asked.",
"maxCriteria": "Thorough discovery performed."
}
}
Response
Scorecard item successfully created
Single-resource envelope wrapping a ScorecardItem.
A single scoring criterion belonging to a scorecard template.
Show child attributes
Show child attributes
{
"id": "si-uuid-123",
"scorecardId": "sc-uuid-456",
"title": "Discovery Quality",
"type": "numeric",
"position": 0,
"weight": 25,
"version": 1,
"expertPrompt": "",
"metadata": {
"numericMetadata": {
"min": 0,
"middle": 50,
"max": 100,
"minCriteria": "No discovery questions asked.",
"middleCriteria": "Some discovery questions asked.",
"maxCriteria": "Thorough discovery performed."
}
},
"createdAt": "2026-04-16T10:15:00Z",
"lastUpdatedAt": "2026-04-16T10:15:00Z"
}
Was this page helpful?