Enrich an analysis
curl --request POST \
--url https://preuve.ai/api/agent/analyses/{id}/enrich \
--header 'Content-Type: application/json' \
--header 'x-preuve-key: <api-key>' \
--data '
{
"modules": [
"founderFit",
"playbook"
],
"founderProfile": {
"hoursPerWeek": 20,
"runwayMonths": 6,
"domainYears": 3,
"shippedBefore": "side_project",
"audienceSize": "under_1k",
"teamStatus": "solo"
}
}
'import requests
url = "https://preuve.ai/api/agent/analyses/{id}/enrich"
payload = {
"modules": ["founderFit", "playbook"],
"founderProfile": {
"hoursPerWeek": 20,
"runwayMonths": 6,
"domainYears": 3,
"shippedBefore": "side_project",
"audienceSize": "under_1k",
"teamStatus": "solo"
}
}
headers = {
"x-preuve-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-preuve-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
modules: ['founderFit', 'playbook'],
founderProfile: {
hoursPerWeek: 20,
runwayMonths: 6,
domainYears: 3,
shippedBefore: 'side_project',
audienceSize: 'under_1k',
teamStatus: 'solo'
}
})
};
fetch('https://preuve.ai/api/agent/analyses/{id}/enrich', 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://preuve.ai/api/agent/analyses/{id}/enrich",
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([
'modules' => [
'founderFit',
'playbook'
],
'founderProfile' => [
'hoursPerWeek' => 20,
'runwayMonths' => 6,
'domainYears' => 3,
'shippedBefore' => 'side_project',
'audienceSize' => 'under_1k',
'teamStatus' => 'solo'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-preuve-key: <api-key>"
],
]);
$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://preuve.ai/api/agent/analyses/{id}/enrich"
payload := strings.NewReader("{\n \"modules\": [\n \"founderFit\",\n \"playbook\"\n ],\n \"founderProfile\": {\n \"hoursPerWeek\": 20,\n \"runwayMonths\": 6,\n \"domainYears\": 3,\n \"shippedBefore\": \"side_project\",\n \"audienceSize\": \"under_1k\",\n \"teamStatus\": \"solo\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-preuve-key", "<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://preuve.ai/api/agent/analyses/{id}/enrich")
.header("x-preuve-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"modules\": [\n \"founderFit\",\n \"playbook\"\n ],\n \"founderProfile\": {\n \"hoursPerWeek\": 20,\n \"runwayMonths\": 6,\n \"domainYears\": 3,\n \"shippedBefore\": \"side_project\",\n \"audienceSize\": \"under_1k\",\n \"teamStatus\": \"solo\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://preuve.ai/api/agent/analyses/{id}/enrich")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-preuve-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"modules\": [\n \"founderFit\",\n \"playbook\"\n ],\n \"founderProfile\": {\n \"hoursPerWeek\": 20,\n \"runwayMonths\": 6,\n \"domainYears\": 3,\n \"shippedBefore\": \"side_project\",\n \"audienceSize\": \"under_1k\",\n \"teamStatus\": \"solo\"\n }\n}"
response = http.request(request)
puts response.read_body{
"analysis": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clientRunId": "<string>",
"readyForExport": true,
"enrichment": {
"required": [
"<string>"
],
"completed": [
"<string>"
]
},
"modules": {
"proofOfDemand": {},
"founderFit": {},
"playbook": {},
"trends": {}
},
"reportUrl": "<string>",
"shareUrl": "<string>"
},
"enrichment": {
"required": [
"<string>"
],
"completed": [
"<string>"
]
},
"failures": [
{}
],
"modules": {}
}{
"analysis": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clientRunId": "<string>",
"readyForExport": true,
"enrichment": {
"required": [
"<string>"
],
"completed": [
"<string>"
]
},
"modules": {
"proofOfDemand": {},
"founderFit": {},
"playbook": {},
"trends": {}
},
"reportUrl": "<string>",
"shareUrl": "<string>"
},
"enrichment": {
"required": [
"<string>"
],
"completed": [
"<string>"
]
},
"failures": [
{}
],
"modules": {}
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Analyses
Enrich an analysis
Idempotently generates the missing core export sections for a COMPLETED run. Optionally starts deep-only modules via body.modules (one successful generation per module per report). founderFit requires founderProfile and runs inline; the other modules run async - poll get. Partial failures return HTTP 207 with a success-shaped body.
POST
/
api
/
agent
/
analyses
/
{id}
/
enrich
Enrich an analysis
curl --request POST \
--url https://preuve.ai/api/agent/analyses/{id}/enrich \
--header 'Content-Type: application/json' \
--header 'x-preuve-key: <api-key>' \
--data '
{
"modules": [
"founderFit",
"playbook"
],
"founderProfile": {
"hoursPerWeek": 20,
"runwayMonths": 6,
"domainYears": 3,
"shippedBefore": "side_project",
"audienceSize": "under_1k",
"teamStatus": "solo"
}
}
'import requests
url = "https://preuve.ai/api/agent/analyses/{id}/enrich"
payload = {
"modules": ["founderFit", "playbook"],
"founderProfile": {
"hoursPerWeek": 20,
"runwayMonths": 6,
"domainYears": 3,
"shippedBefore": "side_project",
"audienceSize": "under_1k",
"teamStatus": "solo"
}
}
headers = {
"x-preuve-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-preuve-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
modules: ['founderFit', 'playbook'],
founderProfile: {
hoursPerWeek: 20,
runwayMonths: 6,
domainYears: 3,
shippedBefore: 'side_project',
audienceSize: 'under_1k',
teamStatus: 'solo'
}
})
};
fetch('https://preuve.ai/api/agent/analyses/{id}/enrich', 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://preuve.ai/api/agent/analyses/{id}/enrich",
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([
'modules' => [
'founderFit',
'playbook'
],
'founderProfile' => [
'hoursPerWeek' => 20,
'runwayMonths' => 6,
'domainYears' => 3,
'shippedBefore' => 'side_project',
'audienceSize' => 'under_1k',
'teamStatus' => 'solo'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-preuve-key: <api-key>"
],
]);
$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://preuve.ai/api/agent/analyses/{id}/enrich"
payload := strings.NewReader("{\n \"modules\": [\n \"founderFit\",\n \"playbook\"\n ],\n \"founderProfile\": {\n \"hoursPerWeek\": 20,\n \"runwayMonths\": 6,\n \"domainYears\": 3,\n \"shippedBefore\": \"side_project\",\n \"audienceSize\": \"under_1k\",\n \"teamStatus\": \"solo\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-preuve-key", "<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://preuve.ai/api/agent/analyses/{id}/enrich")
.header("x-preuve-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"modules\": [\n \"founderFit\",\n \"playbook\"\n ],\n \"founderProfile\": {\n \"hoursPerWeek\": 20,\n \"runwayMonths\": 6,\n \"domainYears\": 3,\n \"shippedBefore\": \"side_project\",\n \"audienceSize\": \"under_1k\",\n \"teamStatus\": \"solo\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://preuve.ai/api/agent/analyses/{id}/enrich")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-preuve-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"modules\": [\n \"founderFit\",\n \"playbook\"\n ],\n \"founderProfile\": {\n \"hoursPerWeek\": 20,\n \"runwayMonths\": 6,\n \"domainYears\": 3,\n \"shippedBefore\": \"side_project\",\n \"audienceSize\": \"under_1k\",\n \"teamStatus\": \"solo\"\n }\n}"
response = http.request(request)
puts response.read_body{
"analysis": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clientRunId": "<string>",
"readyForExport": true,
"enrichment": {
"required": [
"<string>"
],
"completed": [
"<string>"
]
},
"modules": {
"proofOfDemand": {},
"founderFit": {},
"playbook": {},
"trends": {}
},
"reportUrl": "<string>",
"shareUrl": "<string>"
},
"enrichment": {
"required": [
"<string>"
],
"completed": [
"<string>"
]
},
"failures": [
{}
],
"modules": {}
}{
"analysis": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"clientRunId": "<string>",
"readyForExport": true,
"enrichment": {
"required": [
"<string>"
],
"completed": [
"<string>"
]
},
"modules": {
"proofOfDemand": {},
"founderFit": {},
"playbook": {},
"trends": {}
},
"reportUrl": "<string>",
"shareUrl": "<string>"
},
"enrichment": {
"required": [
"<string>"
],
"completed": [
"<string>"
]
},
"failures": [
{}
],
"modules": {}
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Authorizations
API key id. Requests are additionally signed with x-preuve-timestamp, x-preuve-nonce, and x-preuve-signature (HMAC-SHA256) - see the Authentication guide.
Path Parameters
Run id (returned by create) or report id.
Body
application/json
Response
Enrichment (and any inline module) completed.
⌘I