# Using The Callingly API (v2)

Source: https://callingly.com/help/article/using-the-callingly-api-v2

The Callingly API lets your own software work with your account: add leads, put them in a sequence, have your AI Agent call or text them, and read what happened on each call. Version 2 is built around how Callingly works today, with your AI Agent working each lead across calls and texts. Use it for any new integration.

<div class="row relevant"><p><span class="material-icons">supervisor_account</span> Owners and Admins can create API keys. <em class="float-right-desktop">Approx. reading time 4 min.</em></p></div>

<h2 id="reference">The Full Reference</h2>

Every endpoint, field and error is listed in the <a href="https://callingly.com/developers/api" target="_blank">API reference</a>. You can also download it as an <a href="https://callingly.com/developers/api/openapi.yaml" target="_blank">OpenAPI file</a> to generate a client or import it into a tool like Postman. This article covers how to get started.

<h2 id="get-an-api-key">Get An API Key</h2>

<dl><dt>1.</dt><dd>Go to <a href="https://callingly.com/dashboard/settings/api_keys" target="_blank">Settings → API Keys</a>.</dd><dt>2.</dt><dd>Click <strong>Add API Key</strong> and give it a name you'll recognize, such as the tool that will use it.</dd><dt>3.</dt><dd>Copy the key and keep it somewhere safe. You can't see it again; if you lose it, delete it and add a new one.</dd></dl>

<div class="callout-green mb-2"><span class="material-icons">info_outline</span><div><strong>Note</strong>: An API key acts as the person who created it. It can only see the leads that person can see, so create keys from an Owner or Admin login if your integration needs every lead. Keys you already use with version 1 work with version 2 as they are.</div></div>

<h2 id="make-a-request">Make Your First Request</h2>

Send the key in the `Authorization` header of every request, to `https://api.callingly.com/v2`:

<pre>curl https://api.callingly.com/v2/me \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"
</pre>

The response names the user the key belongs to and your account. From there, `GET /v2/teams` lists your teams, and `POST /v2/leads` adds a lead:

<pre>curl https://api.callingly.com/v2/leads \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"team_id": "12", "phone": "+12025550123", "first_name": "Jane", "sequence_id": "34"}'
</pre>

If a lead with that phone number already exists, it is updated rather than added twice. With `sequence_id`, the lead starts that sequence, so your AI Agent works it from the first step. Without it, the lead is added with no sequence.

<h2 id="what-you-can-do">What You Can Do</h2>

<div class="callout dashed"><h4>Leads</h4><p>List, add, update and find leads; add notes and tags; set stage, owner and custom fields; move a lead into a sequence, take it out, or stop all outreach to it.</p><h4>AI calls</h4><p>Read each AI call's outcome, summary, recording and transcript; have the AI call a lead now; book an AI call for a time the lead chose, or cancel one.</p><h4>Warm transfers</h4><p>See when your AI put a lead through to your team, who picked up, and why a transfer failed.</p><h4>Texts</h4><p>Read texts, text a lead now or at a set time, and cancel a scheduled text.</p><h4>Webhooks</h4><p>Get each event sent to your own URL as it happens. See <a href="https://callingly.com/help/article/callingly-api-v2-webhooks" target="_blank">Callingly API Webhooks (v2)</a>.</p></div>

Version 2 covers AI calls only. Calls where Callingly rings your reps, or your reps dial the lead themselves, are in the <a href="https://callingly.com/help/article/38-callingly-api-documentation" target="_blank">version 1 API</a>.

<h2 id="how-it-behaves">How It Behaves</h2>

* **IDs are strings**, such as `"48213377"`, and times are in UTC, such as `2026-11-17T15:04:05Z`.
* **Lists come a page at a time.** Each response has `next_cursor`; pass it back as `?cursor=` to get the next page. `?limit=` sets the page size, up to 200.
* **Errors** come with a status code and a stable `code` your integration can check, such as `validation_failed` or `not_found`, plus a message saying what went wrong.
* **Rate limit:** 120 requests a minute per key. The `X-RateLimit-Remaining` header shows how many you have left, and a `429` response says how long to wait in its `Retry-After` header.

<h2 id="common-questions">Common Questions</h2>

#### Does my version 1 integration keep working?

Yes. Version 1 keeps working as it does today. New features are added to version 2 only.

#### I'm an agency. How do I work with a client's account?

Use an API key created in the client's account. Version 2 always works on the account the key belongs to, and doesn't take an `account_id`.

#### My account is on Salesman Carl. Which address do I use?

`https://api.salesmancarl.com/v2`. It serves the same API, and your keys work on either address. The reference is at <a href="https://salesmancarl.com/developers/api" target="_blank">salesmancarl.com/developers/api</a>.

#### I'm building an app for other Callingly customers. Can it connect without an API key?

Yes. Apps such as Zapier connect with OAuth, so each customer signs in and approves what the app can do, and can disconnect it from <a href="https://callingly.com/help/article/connected-apps" target="_blank">Connected Apps</a>. Email <a href="mailto:support@callingly.com">support@callingly.com</a> to set your app up.
