Batch Testing
Create batch test configurations, run batches of tests against multiple numbers or scenarios, retrieve batch run results, and re-run only the tests that failed.
10 endpoints
Create a batch
/testing/batchesCreate a new batch test configuration for running tests across multiple phone numbers.
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | required | Display name for the batch |
| configId | string | required | Test configuration ID to use as the base flow |
| datasetId | string | required | Dataset ID containing the phone numbers to test |
Request
curl -X POST -H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"UK Regional Batch","configId":"cfg_abc123","datasetId":"ds_abc123"}' \
https://api.nopaque.co.uk/testing/batchesResponse
{
"id": "batch_abc123",
"name": "UK Regional Batch",
"configId": "cfg_abc123",
"datasetId": "ds_abc123",
"status": "created",
"createdAt": "2026-04-10T12: 00: 00Z"
}List batches
/testing/batchesList all batch test configurations in the workspace.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| limit | number | optional | Maximum items to return (default 50) |
| nextToken | string | optional | Pagination token from previous response |
Request
curl -H "x-api-key: YOUR_API_KEY" \
https://api.nopaque.co.uk/testing/batchesResponse
{
"batches": [
{
"id": "batch_abc123",
"name": "UK Regional Batch",
"status": "created",
"createdAt": "2026-04-10T12: 00: 00Z"
}
]
}Get a batch
/testing/batches/{id}Get a specific batch test configuration by ID.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | required | Batch ID |
Request
curl -H "x-api-key: YOUR_API_KEY" \
https://api.nopaque.co.uk/testing/batches/batch_abc123Response
{
"id": "batch_abc123",
"name": "UK Regional Batch",
"configId": "cfg_abc123",
"datasetId": "ds_abc123",
"status": "created",
"createdAt": "2026-04-10T12: 00: 00Z"
}Update a batch
/testing/batches/{id}Update a batch test configuration.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | required | Batch ID |
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | optional | Updated display name |
| datasetId | string | optional | Updated dataset ID |
Request
curl -X PUT -H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"EU Regional Batch"}' \
https://api.nopaque.co.uk/testing/batches/batch_abc123Response
{
"id": "batch_abc123",
"name": "EU Regional Batch",
"updatedAt": "2026-04-10T12: 10: 00Z"
}Delete a batch
/testing/batches/{id}Delete a batch test configuration.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | required | Batch ID |
Request
curl -X DELETE -H "x-api-key: YOUR_API_KEY" \
https://api.nopaque.co.uk/testing/batches/batch_abc123Response
{
"message": "Batch deleted successfully"
}Run a batch
/testing/batches/{id}/runStart a batch test run. Executes the test flow against all phone numbers in the dataset.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | required | Batch ID |
Request
curl -X POST -H "x-api-key: YOUR_API_KEY" \
https://api.nopaque.co.uk/testing/batches/batch_abc123/runResponse
{
"id": "brun_def456",
"batchId": "batch_abc123",
"status": "running",
"startedAt": "2026-04-10T12: 15: 00Z"
}List runs of a batch
/testing/batches/{id}/runsList all runs for a specific batch test.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | required | Batch ID |
Request
curl -H "x-api-key: YOUR_API_KEY" \
https://api.nopaque.co.uk/testing/batches/batch_abc123/runsResponse
{
"runs": [
{
"id": "brun_def456",
"status": "completed",
"passRate": 0.92,
"startedAt": "2026-04-10T12: 15: 00Z"
}
]
}List all batch runs
/testing/batch-runsList all batch runs across all batches in the workspace.
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| limit | number | optional | Maximum items to return (default 50) |
| nextToken | string | optional | Pagination token from previous response |
Request
curl -H "x-api-key: YOUR_API_KEY" \
https://api.nopaque.co.uk/testing/batch-runsResponse
{
"runs": [
{
"id": "brun_def456",
"batchId": "batch_abc123",
"status": "completed",
"passRate": 0.92
}
]
}Get a batch run
/testing/batch-runs/{id}Get a specific batch run by ID with full results.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | required | Batch run ID |
Request
curl -H "x-api-key: YOUR_API_KEY" \
https://api.nopaque.co.uk/testing/batch-runs/brun_def456Response
{
"id": "brun_def456",
"batchId": "batch_abc123",
"status": "completed",
"totalNumbers": 25,
"passed": 23,
"failed": 2,
"passRate": 0.92,
"completedAt": "2026-04-10T12: 30: 00Z"
}Re-run the failed tests of a batch run
/testing/batch-runs/{id}/rerunDispatch a new batch run containing only the failed tests from a finished batch run, and return it. This places real calls and uses minutes, exactly like the original batch; the workspace's minutes are checked first (402 when they are exhausted). Which tests failed is worked out by the server: the latest run of each test in the parent that completed with a failing outcome. Passing tests are never re-run, and any ids you send are intersected with that set. The new run is linked to its parent (`parentBatchRunId`, `triggeredBy: rerun`). 400 when nothing in the parent failed, or the ids you sent matched none of the failures. The published SDKs (0.13.0) have no method for this, so the sample is curl only.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | required | The batch run to re-run failures from |
Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| filter | string | optional | all-failed, errors (the test could not be evaluated, outcome ERROR) or mismatches (evaluated, but did not match expectations) |
| members | object[] | optional | Only these failed tests, each { type: param | mission, configId }. Takes precedence over testConfigIds |
| └ type | string | required | param or mission |
| └ configId | string | required | The test config or mission test config id |
| testConfigIds | string[] | optional | Legacy: only these failed standard test configs |
Request
curl -X POST -H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filter":"all-failed"}' \
https://api.nopaque.co.uk/testing/batch-runs/brun_def456/rerunResponse
{
"id": "brun_ghi789",
"batchId": "batch_abc123",
"workspaceId": "ws_abc123",
"status": "pending",
"testRunIds": [
"run_101",
"run_102"
],
"summary": {
"total": 2,
"pending": 2,
"running": 0,
"passed": 0,
"failed": 0,
"error": 0
},
"startedAt": "2026-04-10T13: 00: 00Z",
"triggeredBy": "rerun",
"parentBatchRunId": "brun_def456",
"rootBatchRunId": "brun_def456",
"createdBy": "usr_abc123"
}