curl --request POST \
--url https://app.searchable.com/api/reseller/v1/prospect-reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "acme.com",
"competitors": [
"globex.com",
"initech.com"
],
"market": "US",
"language": "en-US",
"contact": {
"email": "pat@acme.com",
"name": "Pat Doe",
"company": "Acme"
},
"bookingUrl": "https://example.com/book"
}
'import requests
url = "https://app.searchable.com/api/reseller/v1/prospect-reports"
payload = {
"domain": "acme.com",
"competitors": ["globex.com", "initech.com"],
"market": "US",
"language": "en-US",
"contact": {
"email": "pat@acme.com",
"name": "Pat Doe",
"company": "Acme"
},
"bookingUrl": "https://example.com/book"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
domain: 'acme.com',
competitors: ['globex.com', 'initech.com'],
market: 'US',
language: 'en-US',
contact: {email: 'pat@acme.com', name: 'Pat Doe', company: 'Acme'},
bookingUrl: 'https://example.com/book'
})
};
fetch('https://app.searchable.com/api/reseller/v1/prospect-reports', 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://app.searchable.com/api/reseller/v1/prospect-reports",
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([
'domain' => 'acme.com',
'competitors' => [
'globex.com',
'initech.com'
],
'market' => 'US',
'language' => 'en-US',
'contact' => [
'email' => 'pat@acme.com',
'name' => 'Pat Doe',
'company' => 'Acme'
],
'bookingUrl' => 'https://example.com/book'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://app.searchable.com/api/reseller/v1/prospect-reports"
payload := strings.NewReader("{\n \"domain\": \"acme.com\",\n \"competitors\": [\n \"globex.com\",\n \"initech.com\"\n ],\n \"market\": \"US\",\n \"language\": \"en-US\",\n \"contact\": {\n \"email\": \"pat@acme.com\",\n \"name\": \"Pat Doe\",\n \"company\": \"Acme\"\n },\n \"bookingUrl\": \"https://example.com/book\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://app.searchable.com/api/reseller/v1/prospect-reports")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"acme.com\",\n \"competitors\": [\n \"globex.com\",\n \"initech.com\"\n ],\n \"market\": \"US\",\n \"language\": \"en-US\",\n \"contact\": {\n \"email\": \"pat@acme.com\",\n \"name\": \"Pat Doe\",\n \"company\": \"Acme\"\n },\n \"bookingUrl\": \"https://example.com/book\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.searchable.com/api/reseller/v1/prospect-reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"acme.com\",\n \"competitors\": [\n \"globex.com\",\n \"initech.com\"\n ],\n \"market\": \"US\",\n \"language\": \"en-US\",\n \"contact\": {\n \"email\": \"pat@acme.com\",\n \"name\": \"Pat Doe\",\n \"company\": \"Acme\"\n },\n \"bookingUrl\": \"https://example.com/book\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "pitch",
"pitchId": "<string>",
"domain": "<string>",
"status": "generating",
"reportUrl": "<string>",
"failureReason": "<string>",
"contact": {
"email": "<string>",
"name": "<string>",
"company": "<string>"
},
"prospectEmail": {
"status": "not_requested",
"reason": "opted_out"
},
"createdAt": "2023-11-07T05:31:56Z"
}{
"id": "5d0c2a52-6a1f-4c2b-9d8e-3c1f7a2b9e10",
"source": "api",
"pitchId": null,
"domain": "acme.com",
"status": "generating",
"reportUrl": null,
"failureReason": null,
"contact": {
"email": "pat@acme.com",
"name": "Pat Doe",
"company": "Acme"
},
"prospectEmail": {
"status": "not_requested",
"reason": null
},
"createdAt": "2026-11-28T10:15:00.000Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}Create a prospect report
Asks for a report on a domain. A report for the same domain that is already generating, or that was created in the last 7 days, is ready and has not been revoked, is returned as it is (200) and spends nothing; send force: true to skip a finished report and build a new one. Otherwise the monthly allowance and the daily cap are checked, and a new request is accepted (202) with a Location header. The report builds in the background: poll the request until status is ready.
curl --request POST \
--url https://app.searchable.com/api/reseller/v1/prospect-reports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domain": "acme.com",
"competitors": [
"globex.com",
"initech.com"
],
"market": "US",
"language": "en-US",
"contact": {
"email": "pat@acme.com",
"name": "Pat Doe",
"company": "Acme"
},
"bookingUrl": "https://example.com/book"
}
'import requests
url = "https://app.searchable.com/api/reseller/v1/prospect-reports"
payload = {
"domain": "acme.com",
"competitors": ["globex.com", "initech.com"],
"market": "US",
"language": "en-US",
"contact": {
"email": "pat@acme.com",
"name": "Pat Doe",
"company": "Acme"
},
"bookingUrl": "https://example.com/book"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
domain: 'acme.com',
competitors: ['globex.com', 'initech.com'],
market: 'US',
language: 'en-US',
contact: {email: 'pat@acme.com', name: 'Pat Doe', company: 'Acme'},
bookingUrl: 'https://example.com/book'
})
};
fetch('https://app.searchable.com/api/reseller/v1/prospect-reports', 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://app.searchable.com/api/reseller/v1/prospect-reports",
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([
'domain' => 'acme.com',
'competitors' => [
'globex.com',
'initech.com'
],
'market' => 'US',
'language' => 'en-US',
'contact' => [
'email' => 'pat@acme.com',
'name' => 'Pat Doe',
'company' => 'Acme'
],
'bookingUrl' => 'https://example.com/book'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://app.searchable.com/api/reseller/v1/prospect-reports"
payload := strings.NewReader("{\n \"domain\": \"acme.com\",\n \"competitors\": [\n \"globex.com\",\n \"initech.com\"\n ],\n \"market\": \"US\",\n \"language\": \"en-US\",\n \"contact\": {\n \"email\": \"pat@acme.com\",\n \"name\": \"Pat Doe\",\n \"company\": \"Acme\"\n },\n \"bookingUrl\": \"https://example.com/book\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://app.searchable.com/api/reseller/v1/prospect-reports")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"domain\": \"acme.com\",\n \"competitors\": [\n \"globex.com\",\n \"initech.com\"\n ],\n \"market\": \"US\",\n \"language\": \"en-US\",\n \"contact\": {\n \"email\": \"pat@acme.com\",\n \"name\": \"Pat Doe\",\n \"company\": \"Acme\"\n },\n \"bookingUrl\": \"https://example.com/book\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.searchable.com/api/reseller/v1/prospect-reports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"domain\": \"acme.com\",\n \"competitors\": [\n \"globex.com\",\n \"initech.com\"\n ],\n \"market\": \"US\",\n \"language\": \"en-US\",\n \"contact\": {\n \"email\": \"pat@acme.com\",\n \"name\": \"Pat Doe\",\n \"company\": \"Acme\"\n },\n \"bookingUrl\": \"https://example.com/book\"\n}"
response = http.request(request)
puts response.read_body{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"source": "pitch",
"pitchId": "<string>",
"domain": "<string>",
"status": "generating",
"reportUrl": "<string>",
"failureReason": "<string>",
"contact": {
"email": "<string>",
"name": "<string>",
"company": "<string>"
},
"prospectEmail": {
"status": "not_requested",
"reason": "opted_out"
},
"createdAt": "2023-11-07T05:31:56Z"
}{
"id": "5d0c2a52-6a1f-4c2b-9d8e-3c1f7a2b9e10",
"source": "api",
"pitchId": null,
"domain": "acme.com",
"status": "generating",
"reportUrl": null,
"failureReason": null,
"contact": {
"email": "pat@acme.com",
"name": "Pat Doe",
"company": "Acme"
},
"prospectEmail": {
"status": "not_requested",
"reason": null
},
"createdAt": "2026-11-28T10:15:00.000Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"code": "<string>",
"message": "<string>",
"error": "<string>",
"howToFix": "<string>",
"requestId": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>"
}
],
"used": 123,
"limit": 123,
"resetsAt": "2023-11-07T05:31:56Z"
}Authorizations
Headers
A client-chosen key. Repeating a request with the same key and body within 24 hours returns the first response, marked X-Idempotent-Replay: true, without a second request. Only successful responses are stored: after an error, a retry with the same key runs again. The same key with a different body is 409 idempotency_conflict; the same key while the first call is still running is 409 idempotency_in_flight.
Body
Response
An existing report answers the request (reuse). Nothing was spent.
Why a failed request failed: generation_failed (the report could not be generated), build_error (the report could not be built), build_timeout, incomplete_snapshot, sharing_policy (sharing is switched off for the workspace), feature_off or dispatch_failed (the request never started, and spent nothing). Null otherwise.