API reference · Lead searches
Wait for a lead search
Wait until a lead search finishes (up to 50 seconds)
https://api.signalvan.com/v1/searches/{search_id}/waitHolds the request until the lead search is done or stopped with an error, or until seconds pass (1 to 50, default 30), then answers the lead search with finished. While finished is false, call it again. One call replaces many polls of GET /searches/{search_id}.
Credits: none.
PathPart of the address. Always required.
search_idstringrequiredA lead search id (GET /searches) Example: 3f6d2a8e-9b1c-4e57-8a20-6c4b1d9e7f35
QueryAdded to the address after ?. Optional unless marked required.
secondsintegerThe most seconds to wait, 1 to 50 Example: 50
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/jsonidstringrequiredThe lead search id
statusstringrequiredWhere the lead search is
queuedrunningdoneerrorprogressstring | nullThe latest progress line in plain words (null before it starts)
titlestring | nullThe list's name, in the words of the request (or the name the user gave it)
created_atstring | nullWhen it was started
updated_atstring | nullWhen it last changed
leads_totalinteger | nullThe likely customers it found (null until done). The leads list also holds partners and leads to check, so its total can be higher
countsobject | nullBreakdowns when done (by_country, by_segment, kinds and more), null until then
outcomestring | nulldone or done_with_problems when the lead search is done, else null
errorstring | nullWhy it stopped, in plain words, when status is error
app_urlstringrequiredOpen the lead search in SignalVan
finishedbooleanrequiredtrue when the lead search is done or stopped with an error; false: call wait again