# Quickstart

> Your first call in five minutes, then a whole lead search: planned, confirmed, started and read.

Web page: https://www.signalvan.com/developers/quickstart

## 1. Create a key

In SignalVan, open **Account**, then **API keys**, then **Create key**. Name it after where it will run. *Read leads* lets it read; add *Start lead searches* to let it plan and start lead searches.

> Only owners and Managers make keys. A key is shown once and acts as the person who made it: it opens the websites they can open, and stops working when they leave the account.

## 2. Save it

Keep the key in an environment variable on the machine that calls the API. Do not paste it into a chat, a shared file or a browser.

Shell:

```bash
export SIGNALVAN_API_KEY=sv_live_••••••••••••••••••••
```

## 3. Make your first call

`GET /me` returns your account, the websites the key can open and your credits.

Get me (cURL):

```bash
curl "https://api.signalvan.com/v1/me" \
  -H "Authorization: Bearer $SIGNALVAN_API_KEY"
```

Get me (Python):

```python
import os, requests

r = requests.get(
    "https://api.signalvan.com/v1/me",
    headers={"Authorization": f"Bearer {os.environ['SIGNALVAN_API_KEY']}"},
    timeout=70,
)
r.raise_for_status()
print(r.json())
```

Get me (Node.js):

```javascript
const r = await fetch("https://api.signalvan.com/v1/me", {
  headers: {
    Authorization: `Bearer ${process.env.SIGNALVAN_API_KEY}`,
  },
})
if (!r.ok) throw new Error((await r.json()).detail)
console.log(await r.json())
```

Response · 200:

```json
{
  "account_id": "5b0c8f3e-2d4a-4c11-9a57-3f1e8d2c6b90",
  "key": {
    "prefix": "sv_live_7Hq2",
    "scopes": [
      "leads:read",
      "leads:write"
    ]
  },
  "websites": [
    {
      "id": "6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14",
      "domain": "leedsdentallab.co.uk",
      "name": "Leeds Dental Lab",
      "default": true,
      "added_at": "2026-10-02T09:14:00Z",
      "lead_generation": {
        "lead_searches": 6,
        "leads": 214,
        "people": 388,
        "last_lead_search_at": "2026-11-19T16:40:12Z"
      }
    }
  ],
  "website_needed": false,
  "credits": {
    "available": 2350,
    "balance": 2500,
    "held": 150,
    "low": false
  }
}
```

## 4. Plan and start a lead search

Plan first: the answer says what will run and the credits it needs. Show that to the person, then start it with the `plan_id` and `confirm: true`. Send an `Idempotency-Key` so a retry never starts a second lead search.

Plan a lead search (cURL):

```bash
curl -X POST "https://api.signalvan.com/v1/searches/plan?website_id=6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14" \
  -H "Authorization: Bearer $SIGNALVAN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "intent_signals": [
      "topic_engagers"
    ]
  }'
```

Plan a lead search (Python):

```python
import os, uuid, requests

r = requests.post(
    "https://api.signalvan.com/v1/searches/plan?website_id=6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14",
    headers={
        "Authorization": f"Bearer {os.environ['SIGNALVAN_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "intent_signals": ["topic_engagers"]
    },
    timeout=70,
)
r.raise_for_status()
print(r.json())
```

Plan a lead search (Node.js):

```javascript
const r = await fetch("https://api.signalvan.com/v1/searches/plan?website_id=6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SIGNALVAN_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    "intent_signals": [
      "topic_engagers"
    ]
  }),
})
if (!r.ok) throw new Error((await r.json()).detail)
console.log(await r.json())
```

Start a lead search (cURL):

```bash
curl -X POST "https://api.signalvan.com/v1/searches?website_id=6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14" \
  -H "Authorization: Bearer $SIGNALVAN_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "plan_id": "8c1e4b7a-52d9-4f0e-b6a3-91d7e2f4c058",
    "confirm": true
  }'
```

Start a lead search (Python):

```python
import os, uuid, requests

r = requests.post(
    "https://api.signalvan.com/v1/searches?website_id=6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14",
    headers={
        "Authorization": f"Bearer {os.environ['SIGNALVAN_API_KEY']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "plan_id": "8c1e4b7a-52d9-4f0e-b6a3-91d7e2f4c058",
        "confirm": True
    },
    timeout=70,
)
r.raise_for_status()
print(r.json())
```

Start a lead search (Node.js):

```javascript
const r = await fetch("https://api.signalvan.com/v1/searches?website_id=6f1c2b9e-4d3a-4b8e-9c21-7a5e0d3f8b14", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SIGNALVAN_API_KEY}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    "plan_id": "8c1e4b7a-52d9-4f0e-b6a3-91d7e2f4c058",
    "confirm": true
  }),
})
if (!r.ok) throw new Error((await r.json()).detail)
console.log(await r.json())
```

## 5. Read the leads

Wait for the lead search to finish (each call holds up to 50 seconds), then page through its leads, hottest first with `tier=hot`.

Wait and read (cURL):

```bash
curl "https://api.signalvan.com/v1/searches/$SEARCH_ID/wait?seconds=50" \
  -H "Authorization: Bearer $SIGNALVAN_API_KEY"

curl "https://api.signalvan.com/v1/searches/$SEARCH_ID/leads?tier=hot&limit=50" \
  -H "Authorization: Bearer $SIGNALVAN_API_KEY"
```

## Give your assistant the API description

The API description (OpenAPI 3.1) opens with the lead generation flow and covers every operation, field and example. It is for key holders: `GET https://api.signalvan.com/v1/openapi.json` needs `Authorization: Bearer <key>`. Download it with your key.

Download the API description (cURL):

```bash
curl -H "Authorization: Bearer $SIGNALVAN_API_KEY" https://api.signalvan.com/v1/openapi.json -o signalvan-openapi.json
```

Then give the file to your assistant with this prompt:

Prompt (Prompt):

```text
Read signalvan-openapi.json in full, starting with 'Start here: the lead generation flow'. Then follow that flow to find leads for me. Plan each lead search and show me the credits; start it only after I confirm.
```

## Next steps

- [Use with AI](https://www.signalvan.com/developers/use-with-ai): Let your assistant run this for you
- [Errors and limits](https://www.signalvan.com/developers/errors-and-limits): Every code and how to recover
- [API reference](https://www.signalvan.com/developers/reference/plan-search): Every endpoint and field
