API reference
Leads
Add leads to a campaign (speed to lead), look them up, change them, opt them out.
| Endpoint | What it does |
|---|---|
POST /leads |
Add a lead (speed to lead) |
POST /leads/batch |
Add up to 60 leads |
GET /leads/{id} |
Get a lead - where it is and its calls |
GET /leads |
Find a lead by external_id, or list leads |
PATCH /leads/{id} |
Update a lead |
POST /leads/{id}/opt_out |
Opt a lead out - stop calling, add to Do Not Call |
GET /campaigns/{campaignId}/leads |
List a campaign’s leads (older list) |
POST /campaigns/{campaignId}/leads |
Add a lead (older address) |
POST /campaigns/{campaignId}/leads/batch |
Add up to 60 leads (older address) |
Every example sends your key ID and secret as CALLVIEW_KEY_ID and CALLVIEW_SECRET (see Keys and authentication). The base address is https://v2-api.callview.ai/api/v1/external.