curl --request GET \
--url https://backend.overtenai.com/api/v1/sales/runs/{run_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://backend.overtenai.com/api/v1/sales/runs/{run_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://backend.overtenai.com/api/v1/sales/runs/{run_id}', 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://backend.overtenai.com/api/v1/sales/runs/{run_id}",
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-API-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://backend.overtenai.com/api/v1/sales/runs/{run_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-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://backend.overtenai.com/api/v1/sales/runs/{run_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.overtenai.com/api/v1/sales/runs/{run_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"run_id": "<string>",
"status": "<string>",
"prompt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"stop_reason": "<string>",
"search_mode": "<string>",
"answer": "<string>",
"evidence": [
{
"platform": "<string>",
"kind": "<string>",
"url": "<string>",
"parent_url": "<string>",
"author": "<string>",
"published_at": "2023-11-07T05:31:56Z",
"text": "<string>",
"seen_before": true
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Get a sales run
Read a sales run belonging to the API key’s organization. Returns its current status, answer (when available), and collected evidence. Evidence is raw source material; use the answer for the agent’s qualification of potential buyers. Polling does not start another search or deduct credits.
curl --request GET \
--url https://backend.overtenai.com/api/v1/sales/runs/{run_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://backend.overtenai.com/api/v1/sales/runs/{run_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://backend.overtenai.com/api/v1/sales/runs/{run_id}', 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://backend.overtenai.com/api/v1/sales/runs/{run_id}",
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-API-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://backend.overtenai.com/api/v1/sales/runs/{run_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-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://backend.overtenai.com/api/v1/sales/runs/{run_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.overtenai.com/api/v1/sales/runs/{run_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"run_id": "<string>",
"status": "<string>",
"prompt": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"stop_reason": "<string>",
"search_mode": "<string>",
"answer": "<string>",
"evidence": [
{
"platform": "<string>",
"kind": "<string>",
"url": "<string>",
"parent_url": "<string>",
"author": "<string>",
"published_at": "2023-11-07T05:31:56Z",
"text": "<string>",
"seen_before": true
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
Send X-API-Key: sk_live_<your_key>. Keys are issued via POST /signup or via the dashboard. Legacy callers may also use Authorization: Bearer sk_live_<your_key>.
Path Parameters
Response
Successful Response
queued, running, completed, paused_budget, failed, or cancelled.
Reason execution stopped, when available. A completed run can still have bounded or incomplete coverage.
Search mode this run used: economy (default) or quality. Set per organization; null until the run starts.
The agent's written findings and buyer qualification; null until available.
Collected public source material, including items the agent may reject as leads. Read answer for its judgment; an empty list does not prove there are no buyers.
Show child attributes
Show child attributes
