Vapi · Schema

LineInsight

Artificial IntelligenceVoiceAgentsReal-TimeCPaaS

Properties

Name Type Description
name string This is the name of the Insight.
type string This is the type of the Insight. It is required to be `line` to create a line insight.
formulas array Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight. The formulas needs to be a valid mathematical expression, s
metadata object This is the metadata for the insight.
timeRange object
groupBy string This is the group by column for the insight when table is `call`. These are the columns to group the results by. All results are grouped by the time range step by default.
queries array These are the queries to run to generate the insight.
id string This is the unique identifier for the Insight.
orgId string This is the unique identifier for the org that this Insight belongs to.
createdAt string This is the ISO 8601 date-time string of when the Insight was created.
updatedAt string This is the ISO 8601 date-time string of when the Insight was last updated.
systemKey string Stable server-owned identifier for system-created insights.
View JSON Schema on GitHub

JSON Schema

vapi-lineinsight-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/LineInsight",
  "title": "LineInsight",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "This is the name of the Insight.",
      "minLength": 1,
      "maxLength": 255
    },
    "type": {
      "type": "string",
      "description": "This is the type of the Insight.\nIt is required to be `line` to create a line insight.",
      "enum": [
        "line"
      ]
    },
    "formulas": {
      "type": "array",
      "description": "Formulas are mathematical expressions applied on the data returned by the queries to transform them before being used to create the insight.\nThe formulas needs to be a valid mathematical expression, supported by MathJS - https://mathjs.org/docs/expressions/syntax.html\nA formula is created by using the query names as the variable.\nThe formulas must contain at least one query name in the LiquidJS format {{query_name}} or {{['query name']}} which will be substituted with the query result.\nFor example, if you have 2 queries, 'Was Booking Made' and 'Average Call Duration', you can create a formula like this:\n```\n{{['Query 1']}} / {{['Query 2']}} * 100\n```\n\n```\n({{[Query 1]}} * 10) + {{[Query 2]}}\n```\nThis will take the\n\nYou can also use the query names as the variable in the formula.",
      "items": {
        "$ref": "#/components/schemas/InsightFormula"
      }
    },
    "metadata": {
      "description": "This is the metadata for the insight.",
      "allOf": [
        {
          "$ref": "#/components/schemas/LineInsightMetadata"
        }
      ]
    },
    "timeRange": {
      "$ref": "#/components/schemas/InsightTimeRangeWithStep"
    },
    "groupBy": {
      "type": "string",
      "description": "This is the group by column for the insight when table is `call`.\nThese are the columns to group the results by.\nAll results are grouped by the time range step by default.",
      "example": [
        "assistant_id"
      ],
      "enum": [
        "assistantId",
        "workflowId",
        "squadId",
        "phoneNumberId",
        "type",
        "endedReason",
        "customerNumber",
        "campaignId",
        "artifact.structuredOutputs[OutputID]"
      ]
    },
    "queries": {
      "type": "array",
      "description": "These are the queries to run to generate the insight.",
      "items": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/JSONQueryOnCallTableWithStringTypeColumn",
            "title": "JSONQueryOnCallTableWithStringTypeColumn"
          },
          {
            "$ref": "#/components/schemas/JSONQueryOnCallTableWithNumberTypeColumn",
            "title": "JSONQueryOnCallTableWithNumberTypeColumn"
          },
          {
            "$ref": "#/components/schemas/JSONQueryOnCallTableWithStructuredOutputColumn",
            "title": "JSONQueryOnCallTableWithStructuredOutputColumn"
          }
        ]
      }
    },
    "id": {
      "type": "string",
      "description": "This is the unique identifier for the Insight."
    },
    "orgId": {
      "type": "string",
      "description": "This is the unique identifier for the org that this Insight belongs to."
    },
    "createdAt": {
      "format": "date-time",
      "type": "string",
      "description": "This is the ISO 8601 date-time string of when the Insight was created."
    },
    "updatedAt": {
      "format": "date-time",
      "type": "string",
      "description": "This is the ISO 8601 date-time string of when the Insight was last updated."
    },
    "systemKey": {
      "type": "string",
      "description": "Stable server-owned identifier for system-created insights."
    }
  },
  "required": [
    "type",
    "queries",
    "id",
    "orgId",
    "createdAt",
    "updatedAt"
  ]
}

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-lineinsight"
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.