Create a Scripted Test
createTestConfigSave a scripted phone test: a number to call and an ordered list of steps, each one listening for expected words and optionally pressing keys or speaking. Saves the test and places no call; run it with runTest. The id of a step can be left out; one is generated. If a required value was not given (the phone number, what should be heard, what counts as success), ask for it; do not invent one. Say which optional settings are being left at their defaults. If what should be heard at each step is not known, map the number first (createMapping, startMapping, getMappingTree) and build the steps from the tree. Use when: a repeatable check is wanted that a phone menu says and does specific things.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"phoneNumber": "<phoneNumber>",
"steps": "<steps>"
},
"name": "createTestConfig"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | No | standard | |
| steps | Yes | ||
| language | No | Transcription language for this config's calls. Omit it (or send `null`) and the config is saved with `en-GB`, so the response always carries a language. Any other value outside the enum is rejected with 400 `Invalid language: <value>` — in particular bare `en`, which is a `CallLanguage`, not a transcription language. The 400 body names the transcription set, lists every valid code and points at `GET /languages`, which adds the labels. | |
| profileId | No | ||
| scheduleId | No | Schedule ID to attach. Use `template:<template-id>` to create from a recurring template. | |
| description | No | ||
| phoneNumber | Yes | ||
| carrierRouteId | No | Bring-your-own-carrier (invite-only). Dial this config's calls through one of the workspace's carrier routes, over the workspace's own SIP trunk, instead of nopaque's network. Carrier routes are set up with nopaque. A config with a route dials through it or not at all: if the route cannot be dialled when a run starts, the run is refused and the number is never called normally. A refused `POST /testing/runs` returns 409 (or 503); a scheduled run, batch or sweep records a failed run whose `errorMessage` says why; a load test fails before it starts. Carrier calls are metered as `carrier_testing` (load tests: `carrier_load_testing`), not `testing`. The route is checked when the config is saved: 400 if it cannot be dialled, 503 if it could not be looked up. `phoneNumber` is then checked as a destination of that route. | |
| backgroundNoise | No | Caller background noise played under the call. Omit for none. | |
| maxDurationSecs | No | Whole-call ceiling in seconds. When omitted the tester applies its own default of 300. Every `hold` step's `durationSecs` must be no longer than this value (or 300 when unset). | |
| patternSettings | No | Load-test failure-pattern thresholds and re-prompt phrases for this IVR. Omit for the platform defaults. | |
| requiredParameters | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| type | No | `standard` runs the steps as-is; `parameterized` requires `requiredParameters` filled at run-time (sweep / batch dispatchers supply them). | |
| steps | Yes | ||
| version | Yes | Bumped on every update — clients can use for optimistic concurrency. | |
| language | No | Transcription language the config's calls are transcribed in. Resolved to `en-GB` when the config was created without one, so every config created since the field existed carries a value; configs saved before it have none, which also means `en-GB`. | |
| createdAt | Yes | ||
| createdBy | Yes | User ID of the creator. | |
| profileId | No | Voice / data profile for `standard` configs only. Omitted for `parameterized`. | |
| updatedAt | Yes | ||
| scheduleId | No | Schedule that triggers automated runs (use `template:<id>` to create from a built-in template). | |
| description | No | ||
| phoneNumber | Yes | E.164-formatted phone number the test calls. | |
| workspaceId | Yes | ||
| carrierRouteId | No | Bring-your-own-carrier (invite-only). Dial this config's calls through one of the workspace's carrier routes, over the workspace's own SIP trunk, instead of nopaque's network. Carrier routes are set up with nopaque. A config with a route dials through it or not at all: if the route cannot be dialled when a run starts, the run is refused and the number is never called normally. A refused `POST /testing/runs` returns 409 (or 503); a scheduled run, batch or sweep records a failed run whose `errorMessage` says why; a load test fails before it starts. Carrier calls are metered as `carrier_testing` (load tests: `carrier_load_testing`), not `testing`. Omitted when the config dials normally. | |
| backgroundNoise | No | Caller background noise played under the call. Omit for none. | |
| maxDurationSecs | No | Whole-call ceiling in seconds. When omitted the tester applies its own default of 300. Every `hold` step's `durationSecs` must fit inside it. | |
| patternSettings | No | Load-test failure-pattern thresholds and re-prompt phrases for this IVR. Omit for the platform defaults. | |
| requiredParameters | No | Required parameter labels for `parameterized` configs only. |