# CallView API > CallView's AI phones your leads and your team takes over when someone wants to buy. The CallView API lets a CRM, a web form or any system hand leads to CallView and hear back what happened on each call. Every page below is plain Markdown. The whole guide in one file: https://developers.callview.ai/llms-full.txt ## Welcome - [Getting started](https://developers.callview.ai/index.md): Send leads to CallView and hear back what happened on the call. Guides, examples and the full API reference. - [Create an API key](https://developers.callview.ai/guides/create-an-api-key.md): Make a key in CallView under Settings > API, choose its campaigns and what it can do, and copy the secret. - [Quickstart](https://developers.callview.ai/quickstart.md): Make a test key, add a pretend lead, get call.completed on a request bin and check its signature. About 10 minutes. - [Keys and authentication](https://developers.callview.ai/guides/authentication.md): Test and live keys, how to send them, what a key may touch, and what to do if one leaks. - [Test mode](https://developers.callview.ai/guides/test-mode.md): Build your integration with a test key. Sample data only, magic numbers that play out real call flows with real timing, and the placeholders you'll see. - [Rate limits](https://developers.callview.ai/guides/rate-limits.md): How many requests a key can make, what happens past a limit, and the headers that tell you where you stand. - [Paging and filters](https://developers.callview.ai/guides/paging.md): Get long lists page by page, and narrow them by date, campaign, status or your own ID. - [Errors and retries](https://developers.callview.ai/guides/errors.md): The one error shape, which errors to retry and which to fix, and how to get help with one. - [Versions and changes](https://developers.callview.ai/guides/versioning.md): What we may change without warning, what we never change without notice, and how to tell. - [Downloads](https://developers.callview.ai/downloads.md): The API description (OpenAPI 3.1, JSON and YAML) and a Postman collection with the Quickstart. ## Calling leads - [Speed to lead](https://developers.callview.ai/guides/speed-to-lead.md): What happens after POST /leads. The checks, the queue, call now, held and scheduled leads, late leads, and the 5,000-lead limit. - [Outcomes](https://developers.callview.ai/guides/outcomes.md): The fixed words a call's outcome can be, what each one means, and how corrections arrive. - [Consent and calling hours](https://developers.callview.ai/guides/consent-and-calling-hours.md): Sending proof of consent, when leads get called, the Do Not Call list, and opt-outs. - [Money guards](https://developers.callview.ai/guides/money-guards.md): The spend cap on API-started calls, the day limits on one key, the numbers we won't dial, and the limit on calling one lead. - [Safe retries (Idempotency-Key)](https://developers.callview.ai/guides/idempotency.md): Send the same write twice without making two leads or two calls. ## Webhooks - [Webhooks and signatures](https://developers.callview.ai/guides/webhooks.md): Get events at your own address, check that each one came from us, and what happens when your server is down. ## Webhooks: Events - [Events](https://developers.callview.ai/reference/events.md): Every event we send: when, what it carries, and an example. - [lead.created](https://developers.callview.ai/reference/events/lead-created.md): A lead was added: through POST /leads, or one Add Lead in the app. - [lead.queued](https://developers.callview.ai/reference/events/lead-queued.md): A lead was put in the dialing queue, right after lead.created (or when POST /leads re-queued an existing lead). - [lead.interested](https://developers.callview.ai/reference/events/lead-interested.md): The AI saw buying intent. - [lead.opted_out](https://developers.callview.ai/reference/events/lead-opted_out.md): The lead's number went on the Do Not Call list. - [lead.late](https://developers.callview.ai/reference/events/lead-late.md): A speed-to-lead lead was still waiting for its call after the campaign's late minutes (default 15). - [call.started](https://developers.callview.ai/reference/events/call-started.md): A call to the lead started dialing (the call record exists). - [call.answered](https://developers.callview.ai/reference/events/call-answered.md): The far end picked up. - [call.completed](https://developers.callview.ai/reference/events/call-completed.md): The outcome is final: outcome, the note, duration, handled_by, owner, and the API paths for the recording and transcript. - [handover.accepted](https://developers.callview.ai/reference/events/handover-accepted.md): A person took the call: handled_by names them (an SDR or a closer), tth_seconds is how long it took from the intent. - [voicemail.left](https://developers.callview.ai/reference/events/voicemail-left.md): A voicemail was delivered. - [callback.booked](https://developers.callview.ai/reference/events/callback-booked.md): A day and time to call the lead back was booked. ## Recipes - [How every recipe works](https://developers.callview.ai/recipes.md): The three moves behind every CRM hook-up. Send the new lead, receive call.completed, write the outcome back. - [HubSpot](https://developers.callview.ai/recipes/hubspot.md): Send new HubSpot contacts to CallView from a workflow, and write the call's outcome back to the contact. - [GoHighLevel](https://developers.callview.ai/recipes/gohighlevel.md): Send new GoHighLevel contacts to CallView from a workflow, and update the contact when the call is over. - [Follow Up Boss](https://developers.callview.ai/recipes/follow-up-boss.md): Send new Follow Up Boss people to CallView, and log the call's outcome back on the person. - [Zapier](https://developers.callview.ai/recipes/zapier.md): Connect almost any CRM to CallView with two Zaps. One sends new leads, one writes outcomes back. - [Make](https://developers.callview.ai/recipes/make.md): Two Make scenarios. One sends new leads to CallView, one writes call outcomes back to your CRM. - [Your own CRM](https://developers.callview.ai/recipes/your-own-crm.md): For a CRM you built yourself. Start AI calls from it and get the outcome, the note and the transcript back, with working Node and Python code. ## API reference - [API reference](https://developers.callview.ai/reference.md): Every endpoint of the CallView API, with examples in curl, Node, Python and PHP. ## API reference: Leads - [Leads](https://developers.callview.ai/reference/leads.md): Add leads to a campaign (speed to lead), look them up, change them, opt them out. - [Add a lead (speed to lead)](https://developers.callview.ai/reference/leads/add-a-lead.md): Add a lead (speed to lead): POST /leads. - [Add up to 60 leads](https://developers.callview.ai/reference/leads/add-up-to-60-leads.md): Add up to 60 leads: POST /leads/batch. - [Get a lead - where it is and its calls](https://developers.callview.ai/reference/leads/get-a-lead.md): Get a lead - where it is and its calls: GET /leads/{id}. - [Find a lead by external_id, or list leads](https://developers.callview.ai/reference/leads/find-or-list-leads.md): Find a lead by external_id, or list leads: GET /leads. - [Update a lead](https://developers.callview.ai/reference/leads/update-a-lead.md): Update a lead: PATCH /leads/{id}. - [Opt a lead out - stop calling, add to Do Not Call](https://developers.callview.ai/reference/leads/opt-a-lead-out.md): Opt a lead out - stop calling, add to Do Not Call: POST /leads/{id}/opt_out. - [List a campaign's leads (older list)](https://developers.callview.ai/reference/leads/list-a-campaigns-leads-older-list.md): List a campaign's leads (older list): GET /campaigns/{campaignId}/leads. - [Add a lead (older address)](https://developers.callview.ai/reference/leads/add-a-lead-older-address.md): Add a lead (older address): POST /campaigns/{campaignId}/leads. - [Add up to 60 leads (older address)](https://developers.callview.ai/reference/leads/add-up-to-60-leads-older-address.md): Add up to 60 leads (older address): POST /campaigns/{campaignId}/leads/batch. ## API reference: Calls - [Calls](https://developers.callview.ai/reference/calls.md): Calls, their outcomes, recordings and transcripts. Call a lead now. - [List calls](https://developers.callview.ai/reference/calls/list-calls.md): List calls: GET /calls. - [Get a call](https://developers.callview.ai/reference/calls/get-a-call.md): Get a call: GET /calls/{id}. - [A link to the call's recording, valid for 5 minutes](https://developers.callview.ai/reference/calls/get-the-recording.md): A link to the call's recording, valid for 5 minutes: GET /calls/{id}/recording. - [The call's transcript](https://developers.callview.ai/reference/calls/get-the-transcript.md): The call's transcript: GET /calls/{id}/transcript. - [Call this lead now](https://developers.callview.ai/reference/calls/call-this-lead-now.md): Call this lead now: POST /calls. ## API reference: Campaigns - [Campaigns](https://developers.callview.ai/reference/campaigns.md): Your campaigns. Start and pause them. - [List campaigns](https://developers.callview.ai/reference/campaigns/list-campaigns.md): List campaigns: GET /campaigns. - [Get a campaign](https://developers.callview.ai/reference/campaigns/get-a-campaign.md): Get a campaign: GET /campaigns/{id}. - [Start a campaign](https://developers.callview.ai/reference/campaigns/start-a-campaign.md): Start a campaign: POST /campaigns/{id}/activate. - [Pause a campaign](https://developers.callview.ai/reference/campaigns/pause-a-campaign.md): Pause a campaign: POST /campaigns/{id}/pause. ## API reference: Do Not Call - [DNC](https://developers.callview.ai/reference/dnc.md): Your organization's Do Not Call list. - [Is this number on the list?](https://developers.callview.ai/reference/dnc/is-this-number-on-the-list.md): Is this number on the list?: GET /dnc/check. - [Add a number to the list](https://developers.callview.ai/reference/dnc/add-a-number-to-the-list.md): Add a number to the list: POST /dnc. - [Add up to 100 numbers to the list](https://developers.callview.ai/reference/dnc/add-up-to-100-numbers-to-the-list.md): Add up to 100 numbers to the list: POST /dnc/batch. - [List your Do Not Call list](https://developers.callview.ai/reference/dnc/list-the-do-not-call-list.md): List your Do Not Call list: GET /dnc. - [Take a number off the list](https://developers.callview.ai/reference/dnc/take-a-number-off-the-list.md): Take a number off the list: DELETE /dnc/{id}. ## API reference: Webhook endpoints - [Webhook endpoints](https://developers.callview.ai/reference/webhook-endpoints.md): Where we send events, and how each delivery went. - [Create a webhook endpoint](https://developers.callview.ai/reference/webhook-endpoints/create-a-webhook-endpoint.md): Create a webhook endpoint: POST /webhook_endpoints. - [List webhook endpoints](https://developers.callview.ai/reference/webhook-endpoints/list-webhook-endpoints.md): List webhook endpoints: GET /webhook_endpoints. - [Get a webhook endpoint](https://developers.callview.ai/reference/webhook-endpoints/get-a-webhook-endpoint.md): Get a webhook endpoint: GET /webhook_endpoints/{id}. - [Change a webhook endpoint](https://developers.callview.ai/reference/webhook-endpoints/change-a-webhook-endpoint.md): Change a webhook endpoint: PATCH /webhook_endpoints/{id}. - [Delete a webhook endpoint](https://developers.callview.ai/reference/webhook-endpoints/delete-a-webhook-endpoint.md): Delete a webhook endpoint: DELETE /webhook_endpoints/{id}. - [Send a test event](https://developers.callview.ai/reference/webhook-endpoints/send-a-test-event.md): Send a test event: POST /webhook_endpoints/{id}/test. - [An endpoint's deliveries](https://developers.callview.ai/reference/webhook-endpoints/an-endpoints-deliveries.md): An endpoint's deliveries: GET /webhook_endpoints/{id}/deliveries. - [Send a delivery again](https://developers.callview.ai/reference/webhook-endpoints/send-a-delivery-again.md): Send a delivery again: POST /webhook_endpoints/{id}/deliveries/{delivery_id}/resend. - [Roll the signing secret](https://developers.callview.ai/reference/webhook-endpoints/roll-the-signing-secret.md): Roll the signing secret: POST /webhook_endpoints/{id}/roll_secret. - [Resume a paused endpoint](https://developers.callview.ai/reference/webhook-endpoints/resume-a-paused-endpoint.md): Resume a paused endpoint: POST /webhook_endpoints/{id}/resume. - [List webhooks (old)](https://developers.callview.ai/reference/webhook-endpoints/list-webhooks-old.md): List webhooks (old): GET /webhooks. - [Create a webhook (old)](https://developers.callview.ai/reference/webhook-endpoints/create-a-webhook-old.md): Create a webhook (old): POST /webhooks. - [Delete a webhook (old)](https://developers.callview.ai/reference/webhook-endpoints/delete-a-webhook-old.md): Delete a webhook (old): DELETE /webhooks/{id}. - [A webhook's deliveries (old)](https://developers.callview.ai/reference/webhook-endpoints/a-webhooks-deliveries-old.md): A webhook's deliveries (old): GET /webhooks/{id}/deliveries. - [The event catalog (old)](https://developers.callview.ai/reference/webhook-endpoints/the-event-catalog-old.md): The event catalog (old): GET /webhooks/events. ## API reference: Events API - [Events (GET /events)](https://developers.callview.ai/reference/events-api.md): Every event we sent, or would have sent, for the last 30 days. - [List events](https://developers.callview.ai/reference/events-api/list-events.md): List events: GET /events. - [Get one event](https://developers.callview.ai/reference/events-api/get-one-event.md): Get one event: GET /events/{id}. ## API reference: Usage - [Usage](https://developers.callview.ai/reference/usage.md): Requests, leads, calls, minutes and cost for a month. - [Usage for a month](https://developers.callview.ai/reference/usage/usage-for-a-month.md): Usage for a month: GET /usage. ## API reference: Exports - [Exports](https://developers.callview.ai/reference/exports.md): Download your leads and calls as a file. - [List your exports](https://developers.callview.ai/reference/exports/list-your-exports.md): List your exports: GET /exports. - [Make an export file](https://developers.callview.ai/reference/exports/make-an-export-file.md): Make an export file: POST /exports. ## API reference - [Objects](https://developers.callview.ai/reference/objects.md): The shapes the API answers with: lead, call, event, webhook endpoint, usage and the error. - [Error codes](https://developers.callview.ai/reference/errors.md): Every error code the API can answer with, what it means and what to do.