---
title: "Vapi API Getting Started Guide for Developers (2026)"
description: "Vapi API authenticates with keys and enforces rate limits: set up credentials, manage within quotas, and resolve error codes for voice agents."
url: https://www.activepieces.com/blog/vapi-api-getting-started-guide-for-developers-2026
updated: 2026-12-04
---

> Every page on www.activepieces.com is available as markdown: add `.md` to the URL, or send `Accept: text/markdown`. Site index: https://www.activepieces.com/llms.txt

# Vapi API Getting Started Guide for Developers (2026)

By Emmanuel Osei-Bonsu · December 4, 2026 · 16 min read · Filed under [Automation tutorials](https://www.activepieces.com/blog/category/automation-tutorials)

**Summary**

Vapi voice agents cost $0.088 to $0.143 per minute, authenticate with private keys as Bearer tokens, and face concurrency caps rather than request limits during peak traffic.

- Real per-minute cost: $0.088 to $0.143, not the $0.05 platform fee alone.
- Free plan 4 concurrent calls; Core $29/month 10 concurrent; Pro $999 30.
- Five error types: 401 (auth), 400 (validation), 429 (limits), endedReason, webhooks.

The Vapi API is a REST interface for creating and running voice agents: you define an assistant, attach a phone number, and place or receive calls over HTTP. It also sends events about each call to a server URL you control.

Those events are where most production problems show up, because a missed one **means a call your system never recorded**. This page was checked on 2026-12-04, and its figures come from Vapi's docs and pricing page.

![Call record ledger with one blank entry and an unreceived event card](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/02e8e6a5-84be-4c0b-9fd4-4a464b004dbc/vapi-api-getting-started-guide-for-developers-20-44a6f72f.webp)

## REST interface for Vapi voice agents

### What you can build with the Vapi API

You can build an agent that answers a support line. Another makes outbound calls such as appointment reminders, and a third qualifies a lead and passes it to a person.

Each of these is an assistant plus a phone number plus a server URL that receives call events.

[Activepieces](https://www.activepieces.com) treats every one of its 751 integrations, all in the MIT-licensed open source core under packages/integrations/community, as an agent tool: the same integration action runs as a flow step and as a tool on the project's MCP server, so Claude, ChatGPT or Cursor can call it.

![Project Settings dialog showing Max Concurrent Jobs field set to Default (5) for the Secret Gadget Labs project.](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/e4d68968-5f44-40ab-b8f7-6aa520ddfb8c/monday-mcp-connect-ai-agents-to-your-account-scr-d4e4c522.webp)

Start with the cost of a wrong answer. An agent that mishandles a refund request has made a customer angrier than a ringing phone would have.

So decide first which calls the agent may finish and which it must hand to a human. The API won't make that choice for you.

### Vapi API endpoints for assistants, calls, and numbers

The table below shows the five resources you'll touch, what each represents, how you create it, and the field to set first.

Read it as a map: if you can create the first four, you have a working agent, and the fifth tells you what happened afterward.

| Resource | What it represents | Create with | Set first |
|---|---|---|---|
| Assistants | The agent: its model, voice and instructions | `POST /assistant` | `model` |
| Calls | One conversation, inbound or outbound | `POST /call` | `assistantId` |
| Phone numbers | The line callers dial or the agent dials from | `POST /phone-number` | `provider` |
| Tools | An action the agent can take mid-call, such as a lookup | `POST /tool` | `type` |
| Webhooks (server URL) | Where Vapi sends call events | Set on the assistant or the phone number | `server.url` |

When a customer disputes what the agent said, the call logs are where you check. You read them back from the API after a call ends. Confirm exact field names against the current API reference before you build on them.

Treat any number in this article as true on 2026-12-04 only. Every price, limit and quota quoted here comes from Vapi's own documentation and pricing page, and this section quotes none of them.

Plans and limits change, so re-check before you commit a budget or promise a customer a call volume.

## Get a Vapi API key and authenticate requests

Create a Vapi account, copy a private key from the dashboard, and send it as a Bearer token in the Authorization header of every server-side request. Because plans change, confirm on Vapi's pricing page what your plan includes before you build around it.

Sign up at the Vapi dashboard and open its API keys area. That page is where the dashboard issues your keys, so a new teammate should start there rather than hunting through assistant settings.

Check Vapi's authentication docs for the current screen names, since dashboards get reorganised.

### Private key versus public key

Mix up Vapi's two kinds of key and you pay for it. The private key can create and change assistants and place calls, so anyone holding it can run up your bill.

The public key is meant for client SDKs in a browser or app, where users can read it. Treat a leaked private key like a stolen company card, because in effect it's one.

![A key and a credit card lying side by side, receipts curling beside them](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/0442e412-3133-4be7-9cfe-b9d8a358f6c2/vapi-api-getting-started-guide-for-developers-20-d1fef5ba.webp)

Send the private key in an `Authorization: Bearer <your private key>` header on every request to the REST API. If a call comes back unauthorised, check the header first: a missing "Bearer" prefix or a stray space copied from the dashboard causes most first-day failures.

Ignore the rules in Vapi's authentication docs and the cost is a surprise invoice for calls you never meant to place, so apply all of them:

- Keep the private key on the server only.
- Use the public key in client SDKs.
- Send the key as an `Authorization: Bearer` header.
- Store the key in an environment variable, never in source code.
- Rotate the key if it leaks.

![Authorization header card with Bearer prefix and private key](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/d3f2ee9c-9658-441a-8005-9a850e789558/vapi-api-getting-started-guide-for-developers-20-7b4d7c6a.webp)

Once your key is stored and requests authenticate, the next risk is what each call costs when traffic arrives.

## Make your first Vapi call with one request

You need two requests: one to create an assistant and one to place the call, and the second one starts a real phone call that bills by the minute, so testing each live call costs money. Test it on your own number first.

Create the assistant once and reuse its ID. It holds the model, the voice and the opening line.

```bash
curl https://api.vapi.ai/assistant \
 -X POST \
 -H "Authorization: Bearer $VAPI_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
 "name": "Support callback",
 "firstMessage": "Hi, this is a callback about your support ticket.",
 "model": {
 "provider": "openai",
 "model": "gpt-4o",
 "messages": [{"role": "system", "content": "You are a polite support agent."}]
 },
 "voice": {"provider": "vapi", "voiceId": "Elliot"}
 }'
```

Copy the `id` from the response. A vague system prompt here means longer calls later, and longer calls cost more.

Send that ID to the calls endpoint with the ID of a phone number you have set up in Vapi and the number you want to ring.

```bash
curl https://api.vapi.ai/call \
 -X POST \
 -H "Authorization: Bearer $VAPI_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
 "assistantId": "YOUR_ASSISTANT_ID",
 "phoneNumberId": "YOUR_PHONE_NUMBER_ID",
 "customer": {"number": "+15551234567"}
 }'
```

Use the full international format for the customer number. A malformed number fails the request, and it's the first mistake most people make.

### Read the Vapi call response and status

Before anyone has answered, the response is already back. It carries the call `id` and a `status`, which starts as queued and then moves through ringing and in progress to ended.

An accepted request only means Vapi took the job. It doesn't mean the customer picked up.

Store the call `id` the moment you get it. When something goes wrong later, that ID is how you trace one angry customer's call back to what happened.

## Understand Vapi call costs by component

A minute of that call is not one flat fee. It costs the $0.05 platform fee plus four separately billed parts, which adds up to **roughly $0.088 to $0.143 a minute**.

Treat Vapi's $0.05 a minute hosting charge as the floor, because every other line below is added to it.

You won't move the bill with transcription, which is nearly fixed at [$0.0095 to $0.0099 a minute](https://vapi.ai/pricing). The LLM runs from $0.0077 to $0.0452, almost six times apart, so your model choice moves the bill most.

Voice runs $0.0146 to $0.0238, so a premium voice can cost more than the transcriber and a cheap LLM together.

On [VoiceAICost's carrier data](https://www.voiceaicost.com/data/vapi-pricing.csv), Telnyx is $0.0055 a minute. Twilio inbound is $0.008 and Twilio outbound is $0.014, which means contractors must account for call direction when quoting.

![Phone carrier rates per minute on Vapi calls](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/cb505ead-c0ad-4760-a540-1652b3d1da57/vapi-api-getting-started-guide-for-developers-20-58e4fe0c.svg "Source: VoiceAICost")

An outbound campaign on Twilio therefore pays about two and a half times Telnyx's rate for the same minute.

### Vapi cost estimate for 1,000 minutes

To see where your own setup lands, the table shows the cheapest and dearest stack. Rates as of December 2026.

| Component | Per-minute rate | Cost per 1,000 minutes |
|---|---|---|
| Platform hosting | $0.05 | $50 |
| Transcriber | ~$0.01 | ~$10 |
| LLM | $0.0077–$0.0452 | $7.70–$45.20 |
| Voice | $0.0146–$0.0238 | $14.60–$23.80 |
| Telephony | $0.0055–$0.014 | $5.50–$14 |
| Total | $0.088–$0.143 | about $88–$143 |

![Cheapest and dearest per-minute price by Vapi component](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/5f733ff4-494a-4f22-83c7-f81f3f09e790/vapi-api-getting-started-guide-for-developers-20-fea2d85e.svg "Source: Vapi")

I had expected a band of $82–$129, and the sums above run higher. The gap comes from stacking each component's own cheapest or dearest price, so budget from your actual mix, not from either end.

$38 to $93 of every 1,000 minutes goes missing from a demo that quotes $0.05 a minute, so contractors pricing on these figures will underbid. Cost per minute, not the headline fee, is what you scale against.

## Vapi rate limits and concurrency caps by plan

**Whether a Vapi voice agent survives a busy hour comes down to concurrency, not request rate.** It caps how many callers can be on the line at once, and what happens to callers past that number isn't stated.

> Whether a Vapi voice agent survives a busy hour comes down to concurrency, not request rate.

### Request rate limits

I can't give you a requests-per-second figure for the Vapi API. **The pricing page doesn't publish one**, and I won't quote a number I can't point to.

Treat the rate as unknown until you've tested it, and build your client to back off and retry when a request is refused.

A dashboard that polls call status every second for a hundred calls is the kind of code that finds the limit for you, at the worst time.

### Concurrent call limits

On its [pricing page](https://vapi.ai/pricing), [Vapi](https://vapi.ai/pricing) publishes concurrency per plan. **The Free plan allows 4 concurrent calls**, so a single demo with a few testers fits, but a launch doesn't.

![Concurrent calls allowed on each Vapi plan](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/1c6567f2-6f40-421c-b590-f0f55c1cde5c/vapi-api-getting-started-guide-for-developers-20-b5ddc1c3.svg "Source: Vapi")

At $29 a month, the Core plan allows 10, which is enough for a small inbound line with a handful of overlapping callers. The Pro plan, at $999 a month, allows 30, which means each concurrent slot costs roughly $33 per month.

Read the chart as a ceiling on simultaneous calls, not on daily volume. It shows the jump between plans: Core gives you 2.5 times the Free ceiling, and Pro triples Core, at roughly thirty-four times the monthly price.

Call 11 on Core has no line to use, and outbound campaigns get there first. A dialer working through a list tries to keep every line busy, so it sits at the cap all day.

The pricing page doesn't say whether an over-cap call is queued or rejected, so test that before you promise a customer a callback window.

Between 10 and 30 calls is where most teams will feel the cost, and the published ladder is Free, Core, Pro. I couldn't confirm from the pricing page how to buy concurrency above 30 or in smaller steps.

Ask Vapi directly, and ask before launch, not on the day the dialer stalls.

## Fix common Vapi API errors

Before a customer writes in, you can apply the fix for each signal, because every production failure on Vapi comes down to a few of them.

The table shows what each looks like, what causes it, and where retry guidance is settled. Where it isn't, the answer is another question for Vapi.

| Error | Symptom | Cause | Fix | Retry guidance in Vapi docs? |
|---|---|---|---|---|
| 401 | Request rejected, no call created | Wrong or missing key, or a public key used where a private one is needed | Replace the key, check the header | Not applicable; retrying cannot help |
| 400 | Request rejected with a validation message | Malformed or incomplete payload | Fix the field the message names | Not applicable; resend only after fixing |
| 429 | Calls refused under load | Rate or concurrency limit reached | Back off, queue outbound calls | Confirm with Vapi |
| endedReason early endings | Call drops or never connects | Provider, voice, or transport trouble | Read the reason, then route to its fix | Confirm with Vapi |
| Webhook timeout | Events missing in your system | Your handler answered too slowly | Acknowledge first, process later | Confirm with Vapi |

Start with the first two rows, because they're the cheapest to fix.

When a 401 comes back, the key is wrong, so check which key your environment actually loads. A 400 names the bad field. Log that message, because it saves a support ticket.

**Nothing is broken when a 429 arrives**; it is a limit, not a bug. Retry with growing delays and some randomness, and queue outbound dials so a burst doesn't trip the cap. Retrying instantly makes the stall worse.

Store the endedReason from the call record on every call, then group failures by it. One bad voice provider looks like random dropouts until you do.

Return a response quickly and do the real work afterward. Treat every event as possibly delivered twice, and key your handler on the call and event identifiers so a repeat changes nothing.

## Call the Vapi API without code using Activepieces

If your handler only needs to receive or send one event, Activepieces fits: if a Vapi integration exists, connect it once; if not, generate one with AI and add it privately to your instance.

Either way it works as a flow step and as a tool on the project's MCP server, so Claude, ChatGPT, Cursor or your own agent can place the same call with nothing exported or wired twice.

![Admin dashboard showing AI usage metrics, spending by source, project costs, and AI model usage breakdown with charts and…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/ea1d663a-9db3-4541-8961-a76af556747d/google-antigravity-mcp-how-to-add-servers-2026-s-d0008d5d.webp)

MoneyGram, Moneypenny, Alan and FundingSocieties run Activepieces in production, and the integrations' code sits in packages/integrations/community in the open source repo. It uses the same API key and the same endpoints, so it inherits the same limits and mistakes if you wire it carelessly.

It doesn't raise your concurrency cap or lower your per-minute cost. It only moves the plumbing off your server.

### Start a Vapi call from a trigger

Pick a trigger such as a new lead arriving in your CRM (the system your sales team logs leads in), then add a step that creates an outbound call. Use the Vapi integration if it offers that action.

Otherwise use the HTTP step to POST to Vapi's call endpoint with your private key in the Authorization header, and put the assistant and the lead's phone number in the body.

![Activepieces workflow builder with HTTP request step selected and its settings panel open showing method, URL, headers, and…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/9e36e973-de4a-435f-8912-12e666216b2d/self-host-mistral-ai-enterprise-deployment-guide-3f7fe28d.webp)

Before you turn it on, think about the ticket this creates. A CRM that imports four hundred leads at once will fire four hundred runs, and Vapi will refuse calls beyond your concurrency cap.

Put a delay or a batch step in front, and store the lead ID so a retried run doesn't ring the same person twice. A customer called twice in one minute writes the angry email.

### Receive call-ended events

Create a flow with a webhook trigger, paste its URL into your Vapi assistant's server URL, and filter for the end-of-call report. Then post the summary, duration and ended reason to a Slack channel or append a row to a sheet.

In the screenshot, the same pattern appears in a different product. It's a two-step flow where a trigger feeds an HTTP request step, with the run log showing both steps completed and the run succeeded.

![A workflow canvas showing an Instance Stopped trigger connected to a Revoke Token HTTP request step, with the right panel…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/6562aaca-2f20-4c5f-929c-5a24b3c9a908/linkedin-api-access-limits-and-errors-in-2026-sc-d387a7d6.webp)

Take from it that a green run proves your flow ran, not that Vapi delivered once. Add a lookup on the call ID before the write, so a repeated event doesn't create a second row.

For your first week, work through these in order:

1. Create one Activepieces flow that starts a call from a test lead, using a test number you own.
2. Add the call ID check before any write or message.
3. Add a delay so bulk imports can't exceed your concurrency cap.
4. Build the call-ended flow and send its failures to a channel a person reads.
5. Compare a day of logged calls against your Vapi usage and see what each minute costs.

## Frequently asked questions

### Is the Vapi API free to use?

Creating an account and making your first calls doesn't cost you anything up front. A live call is billed per minute once you go past what the account includes. Treat the free start as a way to test, not as a price for production.

One line will not cover the per-minute charge. The platform fee, your speech-to-text, your language model and your voice provider each bill separately, so the real cost of a minute is the sum of all of them.

Check the current plan and pricing pages in Vapi's docs before you promise a number to anyone. A customer who was quoted the wrong rate won't remember that it was a mistake on a pricing page.

### Does Vapi have official Node and Python SDKs?

Yes, Vapi publishes server SDKs for Node and Python, and you can also call the REST API directly with any HTTP client.

Use the SDK when you want typed requests and less boilerplate. Use plain HTTP when you want to see exactly what goes over the wire, which helps when a call fails and you need to read the raw error.

For the SDK installation steps and current method names, go to the Vapi docs. That's the place to check, since a method you remember from an older version may have changed.

### Can I bring my own LLM or voice provider keys?

Yes. Vapi lets you add credentials for your own model, transcription and voice providers, so those providers bill you directly instead of going through Vapi. That changes where the cost shows up, not whether you pay it.

You'll now have a Vapi invoice and one from each provider, and a spike in traffic hits all of them at once.

Add the keys in the dashboard or through the API as the docs describe, and confirm in a test call that the provider you chose is the one answering.

### How do I test Vapi webhooks locally?

Run your handler on your machine, expose it with a tunneling tool that gives you a public HTTPS address, and set that address as your server URL in Vapi. Then place a test call and watch the events arrive.

Send the same event to your handler twice on purpose. If you get two rows, your duplicate check on the call ID is not working, and it's **better to find that on your laptop** than in a customer's call log.

## Related reading

- [Datadog API: Keys, Endpoints, and Getting Started](https://www.activepieces.com/blog/datadog-api-keys-endpoints-and-getting-started)
- [DeepSeek Automation: How to Get Started (2026 Guide)](https://www.activepieces.com/blog/deepseek-automation-how-to-get-started-2026-guide)
- [WordPress REST API Guide for Developers (2026)](https://www.activepieces.com/blog/wordpress-rest-api-guide-for-developers-2026)

## References

- [VoiceAICost](https://www.voiceaicost.com/data/vapi-pricing.csv)
- [Vapi](https://vapi.ai/pricing)
