curl --request POST \
--url https://api.tamtam.ai/api/v2/lead-scores/title-only \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"candidates": [
{
"job_title": "VP Sales",
"custom": {},
"full_name": "Jane Doe"
}
]
}
'import requests
url = "https://api.tamtam.ai/api/v2/lead-scores/title-only"
payload = { "candidates": [
{
"job_title": "VP Sales",
"custom": {},
"full_name": "Jane Doe"
}
] }
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({candidates: [{job_title: 'VP Sales', custom: {}, full_name: 'Jane Doe'}]})
};
fetch('https://api.tamtam.ai/api/v2/lead-scores/title-only', 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.tamtam.ai/api/v2/lead-scores/title-only",
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([
'candidates' => [
[
'job_title' => 'VP Sales',
'custom' => [
],
'full_name' => 'Jane Doe'
]
]
]),
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.tamtam.ai/api/v2/lead-scores/title-only"
payload := strings.NewReader("{\n \"candidates\": [\n {\n \"job_title\": \"VP Sales\",\n \"custom\": {},\n \"full_name\": \"Jane Doe\"\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.tamtam.ai/api/v2/lead-scores/title-only")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"candidates\": [\n {\n \"job_title\": \"VP Sales\",\n \"custom\": {},\n \"full_name\": \"Jane Doe\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tamtam.ai/api/v2/lead-scores/title-only")
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 \"candidates\": [\n {\n \"job_title\": \"VP Sales\",\n \"custom\": {},\n \"full_name\": \"Jane Doe\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"scores": [
{
"company_context": true,
"archetype_title": "Head of Sales",
"custom": {},
"error": "company_unknown",
"reason": "Leads the sales function; VP-level title.",
"score": 85
}
]
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Score job titles with no company
Return the Lead Score of each job title on its own: how well the role fits the account’s buyer archetypes, 0-100, with no company context at all.
This is a different question from POST /v2/lead-scores/at-company, not a fallback with a soft input: the classifier sees no company size or industry, no size band can be applied, and the score is the archetype’s best case across bands. company_context is false on every row so the two readings never get mixed in a file. Use it when the company could not be resolved to a LinkedIn ID.
Answers 422 with detail lead_score_config_in_progress while the account’s archetypes are still being generated (retry in a minute), or lead_score_not_configured when they cannot be.
Free.
curl --request POST \
--url https://api.tamtam.ai/api/v2/lead-scores/title-only \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"candidates": [
{
"job_title": "VP Sales",
"custom": {},
"full_name": "Jane Doe"
}
]
}
'import requests
url = "https://api.tamtam.ai/api/v2/lead-scores/title-only"
payload = { "candidates": [
{
"job_title": "VP Sales",
"custom": {},
"full_name": "Jane Doe"
}
] }
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({candidates: [{job_title: 'VP Sales', custom: {}, full_name: 'Jane Doe'}]})
};
fetch('https://api.tamtam.ai/api/v2/lead-scores/title-only', 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.tamtam.ai/api/v2/lead-scores/title-only",
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([
'candidates' => [
[
'job_title' => 'VP Sales',
'custom' => [
],
'full_name' => 'Jane Doe'
]
]
]),
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.tamtam.ai/api/v2/lead-scores/title-only"
payload := strings.NewReader("{\n \"candidates\": [\n {\n \"job_title\": \"VP Sales\",\n \"custom\": {},\n \"full_name\": \"Jane Doe\"\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.tamtam.ai/api/v2/lead-scores/title-only")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"candidates\": [\n {\n \"job_title\": \"VP Sales\",\n \"custom\": {},\n \"full_name\": \"Jane Doe\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.tamtam.ai/api/v2/lead-scores/title-only")
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 \"candidates\": [\n {\n \"job_title\": \"VP Sales\",\n \"custom\": {},\n \"full_name\": \"Jane Doe\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"scores": [
{
"company_context": true,
"archetype_title": "Head of Sales",
"custom": {},
"error": "company_unknown",
"reason": "Leads the sales function; VP-level title.",
"score": 85
}
]
}{
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "<string>",
"message": "<string>",
"value": "<unknown>"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}Authorizations
Account API key passed in the Authorization header
Body
Rows to score, at most 50 per call.
1 - 50 elementsShow child attributes
Show child attributes
Response
OK
One entry per request row, in the same order.
Show child attributes
Show child attributes