Vapi · Schema

AnalyticsQuery

Artificial IntelligenceVoiceAgentsReal-TimeCPaaS

Properties

Name Type Description
table string This is the table you want to query.
groupBy array This is the list of columns you want to group by.
groupByVariableValue array This is the list of variable value keys you want to group by.
name string This is the name of the query. This will be used to identify the query in the response.
timeRange object This is the time range for the query.
operations array This is the list of operations you want to perform.
View JSON Schema on GitHub

JSON Schema

vapi-analyticsquery-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AnalyticsQuery",
  "title": "AnalyticsQuery",
  "type": "object",
  "properties": {
    "table": {
      "type": "string",
      "description": "This is the table you want to query.",
      "enum": [
        "call",
        "subscription"
      ]
    },
    "groupBy": {
      "type": "array",
      "description": "This is the list of columns you want to group by.",
      "enum": [
        "type",
        "assistantId",
        "endedReason",
        "analysis.successEvaluation",
        "status"
      ],
      "items": {
        "type": "string",
        "enum": [
          "type",
          "assistantId",
          "endedReason",
          "analysis.successEvaluation",
          "status"
        ]
      }
    },
    "groupByVariableValue": {
      "description": "This is the list of variable value keys you want to group by.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/VariableValueGroupBy"
      }
    },
    "name": {
      "type": "string",
      "description": "This is the name of the query. This will be used to identify the query in the response.",
      "maxLength": 40
    },
    "timeRange": {
      "description": "This is the time range for the query.",
      "allOf": [
        {
          "$ref": "#/components/schemas/TimeRange"
        }
      ]
    },
    "operations": {
      "description": "This is the list of operations you want to perform.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/AnalyticsOperation"
      }
    }
  },
  "required": [
    "table",
    "name",
    "operations"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/vapi-analyticsquery"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.