Skip to the content

API reference · Lead searches

Get a plan

A plan made earlier, with its credits (spends nothing)

GEThttps://api.signalvan.com/v1/searches/plan/{plan_id}
Step 5 of 9: Confirm with the user
Needs leads:readUses no credits300 a minute

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.

Path

  • plan_idstringrequired

    A plan_id from POST /searches/plan Example: 8c1e4b7a-52d9-4f0e-b6a3-91d7e2f4c058

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_...

  • 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

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
403scope_missingThe key lacks the permission (scope_missing)
404not_foundNot found, or not yours
429rate_limitedToo many requests: wait Retry-After seconds
503unavailableTemporarily unavailable: retry with backoff