API reference · Lead searches
Get a plan
A plan made earlier, with its credits (spends nothing)
https://api.signalvan.com/v1/searches/plan/{plan_id}The plan POST /searches/plan made, read back exactly as it answered then (summary, settings, what is missing, ready and the credits with their range), with the live balance and expires_at, and started with the lead search's search_id once the plan was started (a plan starts one lead search only). Use it to show the user the plan and its credits again before they confirm. A plan is kept 15 minutes, for the key and website that made it: an older plan, another key's or another website's answers 404.
Credits: none.
PathPart of the address. Always required.
plan_idstringrequiredA plan_id from POST /searches/plan Example: 8c1e4b7a-52d9-4f0e-b6a3-91d7e2f4c058
QueryAdded to the address after ?. Optional unless marked required.
website_idstringThe website to act on (GET /websites). Left out: the key's default website, else its only one; a key that opens several websites and has no default must send it Example: 6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14
HeadersSent with every request. Authorization always; Content-Type and Idempotency-Key with POST.
AuthorizationstringrequiredBearer and your API key. Keys are made in SignalVan: Account, API keys. Example: Bearer sv_live_...
X-Website-IdstringThe same as website_id, as a header (the query parameter wins when both are sent) Example: 6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14
Response · 200The fields of a successful answer. Answers may carry more fields than listed; ignore the ones you do not use.
application/jsonplan_idstringrequiredStart it with POST /searches {plan_id, confirm: true} within 15 minutes
expires_atstring | nullrequiredWhen the plan expires
kindstringrequiredThe kind of lead search planned
signalsdirectorysummarystring | nullrequiredWhat will run, in one or two plain sentences: show it to the user
use_casestring | nullrequiredWho to reach and why, as the lead search will read it
intent_signalsPlanSignal[]requiredThe intent signals that will run (empty for the directory)
Show 2 fields
keystringrequiredIts key (GET /intent-signals)
labelstringrequiredIts name in the app
settingsobject | nullrequiredEvery setting the lead search will run with (signals: keywords, job_titles, competitors, country...; directory: segments, regions, buyer_roles, exclude...)
missingobjectrequiredSettings still needed, per intent signal ({} when none). Plan again with them before starting
readybooleanrequiredtrue when nothing is missing and the credits have no problem
creditsSignalsCredits | DirectoryCreditsrequiredThe credits, before anything is used
Show 9 fields
rangeCreditRangerequiredNeeds at least, usually uses, stops at: show its sentence
max_creditsinteger | nullrequiredThe most credits the lead search may use: your max_credits, else the suggested amount
suggestedinteger | nullrequiredThe credits we suggest for these intent signals and settings
minimuminteger | nullrequiredThe fewest credits that let every intent signal try once
contact_reserveinteger | nullrequiredCredits set aside for the contact details asked for (contact), 0 when none
splitSplitShare[]requiredHow max_credits is shared between the intent signals
notesstring[]requiredPlain sentences about the split (up to 10)
problemstring | nullrequiredWhy these credits will not work (for example not enough available), null when they will. The plan is not ready while set
balanceCreditsrequiredThe live balance
nextstringrequiredWhat to do next, in plain words
startedboolean | nullOn GET /searches/plan/{plan_id}: true once the plan started its lead search (a plan starts one only)
search_idstring | nullWith started: the lead search it started
app_urlstringrequiredThe lead searches in SignalVan