{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-start-survey-test-request-schema.json",
  "title": "StartSurveyTestRequest",
  "description": "Body for `POST /testing/survey-runs`.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-survey-tests-api-openapi.yml#/components/schemas/StartSurveyTestRequest",
  "type": "object",
  "required": [
    "configId",
    "endUserE164"
  ],
  "additionalProperties": false,
  "properties": {
    "configId": {
      "type": "string",
      "minLength": 1,
      "description": "A saved survey test config in this workspace."
    },
    "endUserE164": {
      "type": "string",
      "description": "The number the survey will originate from, E.164. Must not be a\nnumber inside this nopaque account — two automated repliers talking\nto each other bills both sides until somebody notices.\n"
    },
    "windowSecs": {
      "type": "integer",
      "minimum": 60,
      "maximum": 43200,
      "default": 300,
      "description": "How long to wait for the survey, in seconds.\n\nRecommended values are **60, 120, 300 and 600** — 1, 2, 5 and 10\nminutes. Any value in range is accepted, so an automated caller can\nsize the window against its own timeout, but keep it short: the\nwindow holds one of your numbers, and a number is the unit of\nconcurrency. An over-long window is capacity you have paid for and\ncannot use.\n\nIf the survey never arrives the test ends `timed_out`.\n"
    },
    "expectedTurns": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50,
      "description": "How many questions your survey asks.\n\n**The only limit that is actually enforced.** After this many\nanswers the conversation is disabled at the carrier, so the\n\"thanks for your feedback\" that ends most surveys reaches a\nrespondent that cannot reply — real people do not text back at\nthat point, and a stray reply lands on your platform after it\nbelieves the survey is finished.\n\nOptional. Without it nothing is enforced, because guessing a\nnumber would cut a survey short.\n\nNote `maxMessages` is NOT this: it is wording in the respondent's\nown instructions, and a model is free to ignore it.\n"
    },
    "maxMessages": {
      "type": "integer",
      "minimum": 1,
      "maximum": 200,
      "default": 40,
      "description": "Loop-safety cap carried into the conversation itself. Our respondent\nauto-replies and so does the thing it is talking to.\n"
    }
  }
}