{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wordis-bond-com/json-schema/wordis-bond-com-live-run-request-schema.json",
  "title": "Live synthetic call",
  "description": "Drive a live synthetic caller against a target agent you run.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wordis-bond-com-openapi.json#/components/schemas/LiveRunRequest",
  "type": "object",
  "properties": {
    "targetAgent": {
      "$ref": "#/$defs/TargetAgent"
    },
    "goal": {
      "type": "string",
      "description": "What the synthetic caller is trying to accomplish."
    },
    "persona": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        }
      },
      "required": [
        "description"
      ]
    },
    "suiteId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "transport": {
      "type": "string",
      "enum": [
        "pstn",
        "webrtc"
      ]
    },
    "language": {
      "type": "string",
      "default": "en"
    },
    "concurrency": {
      "type": "integer",
      "minimum": 1,
      "maximum": 25,
      "default": 1
    },
    "expected": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "bargeIn": {
      "type": "boolean"
    },
    "record": {
      "type": "boolean",
      "default": false,
      "description": "Opt this run into BYOS recording to your own storage (default off). Requires the byosRecording capability (pro/enterprise) and an enabled recording target. The customer-owned pointer comes back in the run’s recording_url and the report."
    },
    "recordTargetId": {
      "type": "string",
      "format": "uuid",
      "description": "Record to THIS target (else the most-recent enabled one)."
    }
  },
  "required": [
    "targetAgent"
  ],
  "$defs": {
    "TargetAgent": {
      "type": "object",
      "description": "The voice agent under test (a system YOU control). `direct` = SIP/WebRTC (near-zero cost, all plans); `pstn` = a real carrier call (pro+). The hosted demo target is `{transport:\"direct\", peerId:\"wb-demo-dental\"}`.",
      "properties": {
        "transport": {
          "type": "string",
          "enum": [
            "pstn",
            "webrtc",
            "direct",
            "sip"
          ]
        },
        "toNumber": {
          "type": "string",
          "description": "E.164 number to dial (required for a pstn target)."
        },
        "peerId": {
          "type": "string",
          "description": "Hosted-agent id (e.g. \"wb-demo-dental\"), a direct peer label, or — for a `sip` target — the SIP URI."
        },
        "sipUri": {
          "type": "string",
          "description": "For a `sip` target: the agent SIP URI (`sip:` / `sips:`)."
        }
      },
      "required": [
        "transport"
      ]
    }
  }
}