curl --request POST \
--url https://backend.overtenai.com/api/v1/sales/runs \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": "<string>",
"idempotency_key": "<string>",
"wait_seconds": 0
}
'import requests
url = "https://backend.overtenai.com/api/v1/sales/runs"
payload = {
"prompt": "<string>",
"idempotency_key": "<string>",
"wait_seconds": 0
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', idempotency_key: '<string>', wait_seconds: 0})
};
fetch('https://backend.overtenai.com/api/v1/sales/runs', 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",
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([
'prompt' => '<string>',
'idempotency_key' => '<string>',
'wait_seconds' => 0
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.overtenai.com/api/v1/sales/runs"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"wait_seconds\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-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://backend.overtenai.com/api/v1/sales/runs")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"wait_seconds\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.overtenai.com/api/v1/sales/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"wait_seconds\": 0\n}"
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
}
]
}{
"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": {}
}
]
}Find potential buyers
Submit a business description and buyer-finding instructions to the sales agent. The run executes in the background. Returns 202 while queued or running, or 200 if it reaches a terminal status within wait_seconds (0–25). Inspect status and stop_reason even on HTTP 200. Poll GET /sales/runs/ for the answer and collected public evidence. Reusing an idempotency_key within the same organization returns the original run, including its original prompt.
curl --request POST \
--url https://backend.overtenai.com/api/v1/sales/runs \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"prompt": "<string>",
"idempotency_key": "<string>",
"wait_seconds": 0
}
'import requests
url = "https://backend.overtenai.com/api/v1/sales/runs"
payload = {
"prompt": "<string>",
"idempotency_key": "<string>",
"wait_seconds": 0
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({prompt: '<string>', idempotency_key: '<string>', wait_seconds: 0})
};
fetch('https://backend.overtenai.com/api/v1/sales/runs', 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",
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([
'prompt' => '<string>',
'idempotency_key' => '<string>',
'wait_seconds' => 0
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://backend.overtenai.com/api/v1/sales/runs"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"wait_seconds\": 0\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-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://backend.overtenai.com/api/v1/sales/runs")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"wait_seconds\": 0\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://backend.overtenai.com/api/v1/sales/runs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"prompt\": \"<string>\",\n \"idempotency_key\": \"<string>\",\n \"wait_seconds\": 0\n}"
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
}
]
}{
"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>.
Body
What you sell and who you want to find, as you would tell the sales agent in chat.
1 - 10000Reuse this key within your organization to retrieve the original run, even if the prompt changes. Use a new key for each fresh search. Omit it to create a new run on every POST.
1 - 200Wait up to this many seconds for the background run to finish. A 202 response does not cancel the run; poll GET /sales/runs/{run_id}.
0 <= x <= 25Response
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
