---
title: "Use the Vyora API key and webhooks | Vyora Help"
description: "Generate your API key, place calls through api.vyora.ai, receive call results by webhook, and fix common errors like Invalid API key and From numbers not found."
canonical_url: "https://www.vyora.ai/help/integrations/api-key-webhooks"
---

# Use the Vyora API key and webhooks

Updated 20 Oct 2026

Quick answer

The workspace owner generates the API key in Settings, on the Integrations tab. It is shown only once. Send it in the X-API-KEY header to https://api.vyora.ai/v1, use the agent id from GET /v1/agents and the number id from GET /v1/numbers, and add a webhook URL to get each call's result.

[Open API settings](https://app.vyora.ai/settings?tab=api)

## Generate your API key

1.  Open **Settings** and go to the **Integrations** tab.
2.  Under **API key**, click **Generate key**.
3.  Copy the key straight away and store it safely. It starts with `vya_live_`.

Only the workspace owner can generate or revoke the key. Others see "Only the workspace owner can generate an API key."

The full key is shown **only once**. After you leave the page, Settings shows only the start of the key followed by dots. That masked text is not your key and will not work. If you lost the key, click the bin icon (**Revoke key**), then generate a new one. Anything using the old key stops working immediately.

*(Settings, Integrations tab with a masked API key and a webhook URL)*

The key is shown in full only once. Afterwards you see its first characters.

## Place a call

All requests go to `https://api.vyora.ai/v1` with your key in the `X-API-KEY` header. Full reference: [API documentation](https://www.vyora.ai/docs/api).

1.  `GET /v1/agents` lists your agents and their ids.
2.  `GET /v1/numbers` lists the caller numbers for your workspace and their ids.
3.  `POST /v1/calls` places a call:

```
curl -X POST https://api.vyora.ai/v1/calls \
  -H "X-API-KEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone_number":"+919876543210","agent_id":"YOUR_AGENT_ID","from_number_id":"YOUR_NUMBER_ID"}'
```

1.  `GET /v1/calls/<call_id>` returns the status, transcript, recording and analysis once the call is processed.

## Requests per minute

| Plan | Requests per minute |
| --- | --- |
| Free | 10 |
| Builder | 60 |
| Business | 300 |

## Get call results by webhook

1.  In **Settings**, **Integrations** tab, under **Webhook**, enter your **Endpoint URL** and click **Save**.
2.  Click **Send test**. You should see **Delivered**.
3.  Copy the **Signing secret** that appears and use it to check the `X-Vyora-Signature` header (an HMAC-SHA256 of the raw body).

Vyora sends one POST per call, with the event `call_completed`, after the recording and analysis are ready. Your server must reply with a 200 within 5 seconds.

## Common errors

| Error | Cause | Fix |
| --- | --- | --- |
| 401 "Invalid API key" | The key is wrong, old or revoked | See below |
| 401 "Unauthorized - provide X-API-KEY or Authorization header" | The key was not sent | Send it in a header named exactly `X-API-KEY` |
| "from\_number\_id is required" | No number id in the body | Add `from_number_id` from `GET /v1/numbers` |
| "Invalid from\_number\_id - not assigned to this workspace" | The id is from another workspace, or is a phone number | Use an `id` from `GET /v1/numbers`, called with the same key |
| "No agent found with id ..." | The agent is archived or in another workspace | Use an id from `GET /v1/agents` with the same key |
| 402 "Insufficient credits" | Balance below 15 credits | Top up on the Credits page |
| 429 "Rate limit exceeded" | Too many requests this minute | Wait for the time in the `Retry-After` header |

## "Invalid API key" when the key looks right

-   **You copied the masked key.** Only the key shown at the moment you generated it works.
-   **A new key was generated.** Each workspace has one key. Generating a new one replaces the old one.
-   **Extra characters.** Check for spaces or a line break around the key. Do not add "Bearer" in front.
-   **Wrong workspace.** If you belong to more than one workspace, each has its own key, agents and numbers.

## "From numbers not found"

This came from the calling network when the number id did not match the line your workspace dials from. Vyora now picks the right line for any id that `GET /v1/numbers` gives you. Call `GET /v1/numbers` again with your key and use the `id` it returns. If you still see this error, raise a ticket with your workspace name and the request time.

## Related articles

-   [Send a WhatsApp message after a callIntegrations and workflows](https://www.vyora.ai/help/integrations/whatsapp-follow-up)
-   [Call leads from Google Sheets and save resultsIntegrations and workflows](https://www.vyora.ai/help/integrations/google-sheets)
-   [How credits are charged for callsCredits and billing](https://www.vyora.ai/help/credits-billing/how-credits-are-charged)

## Still stuck?

Write to us with what you tried. A person on the team reads every message and replies by email.
