# API reference

> Every endpoint of the CallView API, with examples in curl, Node, Python and PHP.

Base address: `https://v2-api.callview.ai/api/v1/external`

This reference is made from the same description the API itself is checked against, so it says what the API does today.

- [Leads](https://developers.callview.ai/reference/leads/): Add leads to a campaign (speed to lead), look them up, change them, opt them out.
- [Calls](https://developers.callview.ai/reference/calls/): Calls, their outcomes, recordings and transcripts. Call a lead now.
- [Campaigns](https://developers.callview.ai/reference/campaigns/): Your campaigns. Start and pause them.
- [DNC](https://developers.callview.ai/reference/dnc/): Your organization's Do Not Call list.
- [Events (GET /events)](https://developers.callview.ai/reference/events-api/): Every event we sent, or would have sent, for the last 30 days.
- [Webhook endpoints](https://developers.callview.ai/reference/webhook-endpoints/): Where we send events, and how each delivery went.
- [Usage](https://developers.callview.ai/reference/usage/): Requests, leads, calls, minutes and cost for a month.
- [Exports](https://developers.callview.ai/reference/exports/): Download your leads and calls as a file.
- [Objects](https://developers.callview.ai/reference/objects/): the lead, the call, the event and the rest, field by field.
- [Events](https://developers.callview.ai/reference/events/): every event we send, with an example.
- [Error codes](https://developers.callview.ai/reference/errors/): every code, and what it means.

Download the description: [openapi.json](https://developers.callview.ai/openapi.json), [openapi.yaml](https://developers.callview.ai/openapi.yaml), or the [Postman collection](https://developers.callview.ai/callview.postman_collection.json).
