Skip to the content

API reference · Lead searches

Plan a lead search

Plan a lead search and see its credits (spends nothing)

POSThttps://api.signalvan.com/v1/searches/plan
Step 4 of 9: Plan a lead search
Needs leads:writeUses no creditsIdempotency-Key60 a minute

Works out a lead search exactly as the SignalVan chat does and keeps it 15 minutes behind a plan_id: what will run (summary, intent_signals, settings), the settings still missing, and the credits (suggested, minimum, the split per intent signal, the live balance and the problem when they are not enough). ready is true when it can start.

  • kind: signals (the default): one or more intent_signals from GET /intent-signals, with optional settings. Left out, the settings are drafted from what SignalVan knows about the website (GET /knowledge).
  • kind: directory: the Business directory, by segments (kinds of business), countries and cities.

Show the user the summary and the credits; when they agree, start it with POST /searches.

Credits: none. It may make a small AI call to read your use_case. Start the lead search with POST /searches. Send an Idempotency-Key to retry safely.

Query

  • website_idstring

    The 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

Headers

  • Authorizationstringrequired

    Bearer and your API key. Keys are made in SignalVan: Account, API keys. Example: Bearer sv_live_...

  • Content-Typestringrequired

    The body is JSON. Example: application/json

  • X-Website-Idstring

    The same as website_id, as a header (the query parameter wins when both are sent) Example: 6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14

  • Idempotency-Keystring

    Send the same key to retry safely: the first answer comes back (24 hours) Example: plan-2026-11-20-leeds-01

Body

application/json
  • kindstring

    signals: intent signals from GET /v1/intent-signals; directory: the Business directory

    signalsdirectory
  • use_casestring

    Who you want to reach and why, in your words

  • intent_signalsstring[]

    signals: intent signal keys from GET /v1/intent-signals

  • settingsobject

    signals: the settings of the picked intent signals (GET /v1/intent-signals lists each one with its limits and an example). Left out: drafted from what SignalVan knows. A setting the picked intent signals do not use, or a value outside its limits, answers 400 with every problem listed

  • max_creditsinteger | null

    The most credits the lead search may use (left out: the suggested amount, shown in the plan). For the Business directory it is the same as credit_limit

  • max_leadsinteger | null

    stop after this many likely customers

  • executionstring

    signals, several intent signals: run them together, or one by one (the next only after the one before finishes)

    togetherone_by_one
  • contactstring

    signals: contact details to look up for the likely customers in the same lead search

    noneemailphoneboth
  • segmentsstring[]

    directory: the kinds of business to find (left out: drafted from what SignalVan knows)

  • countriesstring[]

    directory: country codes to look in (gb, us...)

  • citiesstring[]

    directory: cities to look in

  • buyer_rolesstring[]

    directory: the roles of the people to reach at each business

  • company_sizestring

    directory: the size of business (small, mid, any...)

  • exclude_domainsstring[]

    directory: websites to leave out (your own customers, partners...)

  • credit_limitinteger | null

    directory: the most credits it may use

Response · 200

application/json
  • plan_idstringrequired

    Start it with POST /searches {plan_id, confirm: true} within 15 minutes

  • expires_atstring | nullrequired

    When the plan expires

  • kindstringrequired

    The kind of lead search planned

    signalsdirectory
  • summarystring | nullrequired

    What will run, in one or two plain sentences: show it to the user

  • use_casestring | nullrequired

    Who to reach and why, as the lead search will read it

  • intent_signalsPlanSignal[]required

    The intent signals that will run (empty for the directory)

    Show 2 fields
    • keystringrequired

      Its key (GET /intent-signals)

    • labelstringrequired

      Its name in the app

  • settingsobject | nullrequired

    Every setting the lead search will run with (signals: keywords, job_titles, competitors, country...; directory: segments, regions, buyer_roles, exclude...)

  • missingobjectrequired

    Settings still needed, per intent signal ({} when none). Plan again with them before starting

  • readybooleanrequired

    true when nothing is missing and the credits have no problem

  • creditsSignalsCredits | DirectoryCreditsrequired

    The credits, before anything is used

    Show 9 fields
    • rangeCreditRangerequired

      Needs at least, usually uses, stops at: show its sentence

    • max_creditsinteger | nullrequired

      The most credits the lead search may use: your max_credits, else the suggested amount

    • suggestedinteger | nullrequired

      The credits we suggest for these intent signals and settings

    • minimuminteger | nullrequired

      The fewest credits that let every intent signal try once

    • contact_reserveinteger | nullrequired

      Credits set aside for the contact details asked for (contact), 0 when none

    • splitSplitShare[]required

      How max_credits is shared between the intent signals

    • notesstring[]required

      Plain sentences about the split (up to 10)

    • problemstring | nullrequired

      Why these credits will not work (for example not enough available), null when they will. The plan is not ready while set

    • balanceCreditsrequired

      The live balance

  • nextstringrequired

    What to do next, in plain words

  • startedboolean | null

    On GET /searches/plan/{plan_id}: true once the plan started its lead search (a plan starts one only)

  • search_idstring | null

    With started: the lead search it started

  • app_urlstringrequired

    The lead searches in SignalVan

Responses

200The plan, its credits and what is still missing
400invalidA field is not valid (the detail names it)
401unauthorizedNo API key, or the key is not valid
402Not enough credits, or above the limit (spending routes)
403scope_missingThe key lacks the permission (scope_missing)
404not_foundNot found, or not yours
409idempotency_conflictplan_expired, busy or idempotency_conflict (spending routes)
422needs_inputneeds_input: the plan still needs settings (spending routes)
429rate_limitedToo many requests: wait Retry-After seconds
503unavailableTemporarily unavailable: retry with backoff