Concepts
Authentication
Every call carries an API key. A key acts as the person who made it, and only for what they let it do.
Send the key
Put the key in the Authorization header as a bearer token. A key in the address is refused (400 invalid), so it never lands in logs or browser history.
curl https://api.signalvan.com/v1/me \
-H "Authorization: Bearer $SIGNALVAN_API_KEY"Keys look like sv_live_ followed by 36 letters and digits. The last six are a checksum, so a mistyped key is refused at once. SignalVan keeps only a fingerprint of the key: it is shown once, when it is made.
What a key can do
| Permission | Lets it |
|---|---|
leads:read | See your websites, credits, what SignalVan knows, the intent signals, lead searches, leads and companies, and the API description. Every key has it. |
leads:write | Plan and start lead searches. Starting uses credits, always after a plan and confirm: true. |
Outreach, billing, members and keys are managed in the SignalVan app.
Which website
A key opens the websites its maker can open today. Most calls work on one website, chosen in this order:
- the
website_idquery parameter, or theX-Website-Idheader; - else the website the key was made for;
- else the only website, when there is just one. With several, the call asks for
website_id(400).
GET /me, GET /websites and GET /credits work on the whole account and need no website. Start with GET /websites to list the ids.
When a key is refused
A missing, mistyped, unknown, revoked or expired key, and a key whose maker has left the account, all answer the same 401 unauthorized. A revoked key stops within 30 seconds. After 20 refused keys in a minute from one address, that address waits (429).