curl --request POST \
--url https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report', 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.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Build Result Report
Build the full deliverable set for one already-researched company.
This is the “promote a scored lead” path: the shortlist gate only exists while a run is paused, so after a run finishes there was previously no way to build a report for a company that wasn’t picked at the time. Reuses the persisted research/score, so it renders deliverables without re-researching.
refresh_people=true is the “look again” action behind an empty
decision-makers list: it re-runs research for this one company even when the
row claims nobody was found, then rebuilds the stakeholder brief off whatever
that finds. Scoped to the brief on purpose — the people are what the caller is
asking about, and widening it to the full set would re-bill every artifact that
is already fine.
gaps_only=true fills what is missing instead of redoing what is there: a
plain rebuild forces every deep phase to re-run, which would pay for a fresh
enrichment and research pass to reproduce answers already on the row. Same
behaviour as the hourly sweep.
curl --request POST \
--url https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report', 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.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/customer-intelligence/runs/{run_id}/results/{result_id}/build-report")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Response
Successful Response
The response is of type Response Build Result Report Customer Intelligence Runs Run Id Results Result Id Build Report Post · object.