> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Vapi

> Voice AI agents: calls with transcripts and costs, assistants, phone numbers and call analytics.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/vapi.svg?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=099be9abbe66670052e1df1cdb797444)

[Web Catalog · Messaging](https://docs.webrouter.net/data-apis.md?category=messaging)

Needs&#x20;

`VAPI_API_KEY`

Endpoints

5

Auth

Key in header

[Vendor docs](https://docs.vapi.ai/api-reference)

&#x20;·&#x20;

[Pricing](https://vapi.ai/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `VAPI_API_KEY` | required | A Vapi private API key from dashboard.vapi.ai, sent as a Bearer token. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Lists have no cursor: page by time with createdAtLt/createdAtGt and limit up to 1000 (default 100).
* A call's transcript and recordings sit under artifact, its price in cost and costBreakdown; poll calls.get until status is ended before reading them.

## Endpoints

GET

List calls

Calls, filterable by assistant, number and time.

[Open](#vapi-calls-list)

GET

Get a call

One call with status, endedReason, artifact (transcript, recordings), analysis and cost.

[Open](#vapi-calls-get)

GET

List assistants

Configured voice assistants.

[Open](#vapi-assistants-list)

GET

List phone numbers

Numbers imported or bought in Vapi.

[Open](#vapi-phone-numbers-list)

POST

Query call analytics

Sums, averages and counts of call cost, duration and minutes, optionally over time and grouped.

[Open](#vapi-analytics-query)

### List calls

GET

`/call`

`vapi.calls.list`

Calls, filterable by assistant, number and time.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `assistantId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only calls of this assistant.
      </td>
    </tr>

    <tr>
      <td>
        `phoneNumberId`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only calls on this phone number.
      </td>
    </tr>

    <tr>
      <td>
        `id`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        One call id.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Max items, default 100, up to 1000.
      </td>
    </tr>

    <tr>
      <td>
        `createdAtGt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Created after this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `createdAtLt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Created before this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `updatedAtGt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Updated after this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `updatedAtLt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Updated before this date-time.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.vapi.ai/api-reference/calls/list)

```python Python theme={null}
router.call_data_api("vapi.calls.list")
```

```text MCP theme={null}
call_data_api(endpoint="vapi.calls.list")
```

### Get a call

GET

`/call/{id}`

`vapi.calls.get`

One call with status, endedReason, artifact (transcript, recordings), analysis and cost.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Call id (UUID).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.vapi.ai/api-reference/calls/get)

### List assistants

GET

`/assistant`

`vapi.assistants.list`

Configured voice assistants.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Max items, default 100, up to 1000.
      </td>
    </tr>

    <tr>
      <td>
        `createdAtGt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Created after this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `createdAtLt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Created before this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `updatedAtGt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Updated after this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `updatedAtLt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Updated before this date-time.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.vapi.ai/api-reference/assistants/list)

```python Python theme={null}
router.call_data_api("vapi.assistants.list")
```

```text MCP theme={null}
call_data_api(endpoint="vapi.assistants.list")
```

### List phone numbers

GET

`/phone-number`

`vapi.phone_numbers.list`

Numbers imported or bought in Vapi.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `limit`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Max items, default 100, up to 1000.
      </td>
    </tr>

    <tr>
      <td>
        `createdAtGt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Created after this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `createdAtLt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Created before this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `updatedAtGt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Updated after this date-time.
      </td>
    </tr>

    <tr>
      <td>
        `updatedAtLt`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Updated before this date-time.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.vapi.ai/api-reference/phone-numbers/list)

```python Python theme={null}
router.call_data_api("vapi.phone_numbers.list")
```

```text MCP theme={null}
call_data_api(endpoint="vapi.phone_numbers.list")
```

### Query call analytics

POST

`/analytics`

`vapi.analytics.query`

Sums, averages and counts of call cost, duration and minutes, optionally over time and grouped.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`queries` required</td><td>array</td><td>body</td><td>Queries: objects with table ('call' or 'subscription'), name, operations \[\{operation: sum|avg|count|min|max|history, column: cost|duration|minutesUsed|...}], optional groupBy (type, assistantId, endedReason, status) and timeRange \{start, end, step, timezone}. Example `[{"table": "call", "name": "cost_by_day", "operations": [{"operation": "sum", "column": "cost"}], "timeRange": {"step": "day"}}]`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.vapi.ai/api-reference/analytics/get) · Same job: [Amplitude](https://docs.webrouter.net/data-apis/amplitude.md#amplitude-charts-query), [Close](https://docs.webrouter.net/data-apis/close-crm.md#close-crm-reports-activity), [Cloudflare](https://docs.webrouter.net/data-apis/cloudflare.md#cloudflare-analytics-graphql), [Google Analytics 4 (Data API)](https://docs.webrouter.net/data-apis/google-analytics.md#google-analytics-report-run), [Instagram Graph API](https://docs.webrouter.net/data-apis/instagram.md#instagram-user-insights), [Klaviyo](https://docs.webrouter.net/data-apis/klaviyo.md#klaviyo-campaigns-report)

```python Python theme={null}
router.call_data_api("vapi.analytics.query", {'queries': [{'table': 'call', 'name': 'cost_by_day', 'operations': [{'operation': 'sum', 'column': 'cost'}], 'timeRange': {'step': 'day'}}]})
```

```text MCP theme={null}
call_data_api(endpoint="vapi.analytics.query", params={"queries": [{"table": "call", "name": "cost_by_day", "operations": [{"operation": "sum", "column": "cost"}], "timeRange": {"step": "day"}}]})
```

> [!NOTE]
>
> * A read over POST. timeRange defaults to the last 7 days, in UTC.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.