{
  "openapi": "3.0.0",
  "info": {
    "title": "Vapi Webhooks API"
  },
  "servers": [
    {
      "url": "https://{yourserver}.com"
    }
  ],
  "paths": {
    "/server": {
      "post": {
        "summary": "Server Message",
        "description": "",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "../api/openapi.json#/components/schemas/ServerMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "This is the response that is expected from the server to the message.\n\nNote: Most messages don't expect a response. Only \"assistant-request\", \"tool-calls\" and \"transfer-destination-request\" do.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "../api/openapi.json#/components/schemas/ServerMessageResponse"
                }
              }
            }
          }
        }
      }
    },
    "/client": {
      "post": {
        "summary": "Client Message",
        "description": "These are all the webhook messages that will be sent to the client-side SDKs during the call. \nConfigure the messages you'd like to receive in `assistant.clientMessages`.\n",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "../api/openapi.json#/components/schemas//ClientMessage"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "These are the messages that can be sent from client-side SDKs to control the call.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "../api/openapi.json#/components/schemas/ClientInboundMessage"
                }
              }
            }
          }
        }
      }
    }
  }
}