Export an analysis (ideas-json)
curl --request GET \
--url https://preuve.ai/api/agent/analyses/{id}/export \
--header 'x-preuve-key: <api-key>'import requests
url = "https://preuve.ai/api/agent/analyses/{id}/export"
headers = {"x-preuve-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-preuve-key': '<api-key>'}};
fetch('https://preuve.ai/api/agent/analyses/{id}/export', 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}/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://preuve.ai/api/agent/analyses/{id}/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-preuve-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://preuve.ai/api/agent/analyses/{id}/export")
.header("x-preuve-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preuve.ai/api/agent/analyses/{id}/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-preuve-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"schemaVersion": 123,
"exportType": "analysis",
"exportedAt": "2023-11-07T05:31:56Z",
"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>"
},
"idea": {
"rank": 123,
"verdict": "<string>",
"score": 123,
"title": "<string>",
"risk": "<string>",
"quote": "<string>",
"evidence": "<string>",
"domains": [
"<string>"
],
"reportId": "<string>",
"reportUrl": "<string>",
"shareUrl": "<string>",
"details": {}
}
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}{
"error": "<string>",
"code": "<string>",
"details": "<unknown>"
}Analyses
Export an analysis (ideas-json)
Structured JSON export (schemaVersion 2) for one COMPLETED, export-ready analysis. Deep runs include full sections, pivots, citations, and generated module payloads.
GET
/
api
/
agent
/
analyses
/
{id}
/
export
Export an analysis (ideas-json)
curl --request GET \
--url https://preuve.ai/api/agent/analyses/{id}/export \
--header 'x-preuve-key: <api-key>'import requests
url = "https://preuve.ai/api/agent/analyses/{id}/export"
headers = {"x-preuve-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-preuve-key': '<api-key>'}};
fetch('https://preuve.ai/api/agent/analyses/{id}/export', 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}/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://preuve.ai/api/agent/analyses/{id}/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-preuve-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://preuve.ai/api/agent/analyses/{id}/export")
.header("x-preuve-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preuve.ai/api/agent/analyses/{id}/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-preuve-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"schemaVersion": 123,
"exportType": "analysis",
"exportedAt": "2023-11-07T05:31:56Z",
"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>"
},
"idea": {
"rank": 123,
"verdict": "<string>",
"score": 123,
"title": "<string>",
"risk": "<string>",
"quote": "<string>",
"evidence": "<string>",
"domains": [
"<string>"
],
"reportId": "<string>",
"reportUrl": "<string>",
"shareUrl": "<string>",
"details": {}
}
}{
"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.
Query Parameters
Available options:
ideas-json Response
The export payload.
ideas-json export, schemaVersion 2. Deep-only fields are null on free runs. See the Scans and Enrichment guide for the field-by-field contract.
⌘I