Vapi · Schema

BothCustomEndpointingRule

Artificial IntelligenceVoiceAgentsReal-TimeCPaaSConversational AIVoice AIVoice Agents

Properties

Name Type Description
type string This endpointing rule is based on both the last assistant message and the current customer message as they are speaking. Flow: - Assistant speaks - Customer starts speaking - Customer transcription co
assistantRegex string This is the regex pattern to match the assistant's message. Note: - This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test("hello there")` will return `true`. Hot tip: - In JavaScr
assistantRegexOptions array These are the options for the assistant's message regex match. Defaults to all disabled. @default []
customerRegex string
customerRegexOptions array These are the options for the customer's message regex match. Defaults to all disabled. @default []
timeoutSeconds number This is the endpointing timeout in seconds, if the rule is matched.
View JSON Schema on GitHub

JSON Schema

vapi-bothcustomendpointingrule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/BothCustomEndpointingRule",
  "title": "BothCustomEndpointingRule",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "This endpointing rule is based on both the last assistant message and the current customer message as they are speaking.\n\nFlow:\n- Assistant speaks\n- Customer starts speaking\n- Customer transcription comes in\n- This rule is evaluated on the last assistant message and the current customer transcription\n- If assistant message matches `assistantRegex` AND customer message matches `customerRegex`, the endpointing timeout is set to `timeoutSeconds`\n\nUsage:\n- If you want to wait longer while customer is speaking numbers, you can set a longer timeout.",
      "enum": [
        "both"
      ]
    },
    "assistantRegex": {
      "type": "string",
      "description": "This is the regex pattern to match the assistant's message.\n\nNote:\n- This works by using the `RegExp.test` method in Node.JS. Eg. `/hello/.test(\"hello there\")` will return `true`.\n\nHot tip:\n- In JavaScript, escape `\\` when sending the regex pattern. Eg. `\"hello\\sthere\"` will be sent over the wire as `\"hellosthere\"`. Send `\"hello\\\\sthere\"` instead.\n- `RegExp.test` does substring matching, so `/cat/.test(\"I love cats\")` will return `true`. To do full string matching, send \"^cat$\"."
    },
    "assistantRegexOptions": {
      "description": "These are the options for the assistant's message regex match. Defaults to all disabled.\n\n@default []",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RegexOption"
      }
    },
    "customerRegex": {
      "type": "string"
    },
    "customerRegexOptions": {
      "description": "These are the options for the customer's message regex match. Defaults to all disabled.\n\n@default []",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/RegexOption"
      }
    },
    "timeoutSeconds": {
      "type": "number",
      "description": "This is the endpointing timeout in seconds, if the rule is matched.",
      "minimum": 0,
      "maximum": 15
    }
  },
  "required": [
    "type",
    "assistantRegex",
    "customerRegex",
    "timeoutSeconds"
  ]
}

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-bothcustomendpointingrule"
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 form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

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