Mission Test Configs

    Save a mission-test setup once and re-run it on demand. Configs hold sector, mission, acceptance, and profile id. Launch a run from a saved config with POST /testing/mission-test-configs/{id}/runs.

    6 endpoints

    POST/testing/mission-test-configs

    Save a reusable mission-test config. Configs hold sector, mission, acceptance, and profile id, and can be re-launched on demand.

    Body Parameters

    NameTypeRequiredDescription
    namestringrequiredDisplay name for the config
    sectorstringrequiredSector key from the catalogue
    missionstringrequiredThe objective the agent should pursue on the call
    acceptancestringrequiredAcceptance criteria used to grade the run
    profileIdstringrequiredProfile id supplying caller identity and phone number
    tagsstring[]optionalUp to 10 lowercase kebab-case tags (1-32 chars, pattern ^[a-z0-9][a-z0-9-]*$) for filtering and organisation

    Request

    bash
    curl -X POST -H "x-api-key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"name":"Banking password reset","sector":"banking","mission":"Reset my online banking password","acceptance":"Agent verifies identity and resets password","profileId":"prof_xyz789"}' \
      https://api.nopaque.co.uk/testing/mission-test-configs

    Response

    json
    {
      "id": "mtc_abc123",
      "name": "Banking password reset",
      "sector": "banking",
      "mission": "Reset my online banking password",
      "acceptance": "Agent verifies identity and resets password",
      "profileId": "prof_xyz789",
      "tags": [
        "banking"
      ],
      "createdAt": "2026-05-06T12: 00: 00Z"
    }
    GET/testing/mission-test-configs

    List saved mission-test configs in the workspace. Filter by name, phone number, sector, profile, or tag, bound by creation time, sort, and page with an opaque cursor. Items are slim summaries that drop the long-text mission and acceptance fields.

    Query Parameters

    NameTypeRequiredDescription
    namestringoptionalFilter by case-insensitive substring of the config name
    phoneNumberstringoptionalFilter by phone number in E.164 format
    sectorstringoptionalFilter by sector key
    profileIdstringoptionalFilter by profile id
    tagstringoptionalFilter by a single lowercase tag (exact match)
    createdAfterstringoptionalOnly return configs created at or after this ISO8601 datetime
    createdBeforestringoptionalOnly return configs created at or before this ISO8601 datetime
    sortstringoptionalSort field: createdAt (default) or name
    sortDirstringoptionalSort direction: asc or desc (default desc)
    limitnumberoptionalMaximum items to return, 1-100 (default 50)
    cursorstringoptionalOpaque pagination cursor from the previous response

    Request

    bash
    curl -H "x-api-key: YOUR_API_KEY" \
      "https://api.nopaque.co.uk/testing/mission-test-configs?sector=banking&tag=banking"

    Response

    json
    {
      "items": [
        {
          "id": "mtc_abc123",
          "workspaceId": "ws_abc123",
          "name": "Banking password reset",
          "sector": "banking",
          "phoneNumber": "+441234567890",
          "profileId": "prof_xyz789",
          "tags": [
            "banking"
          ],
          "createdAt": "2026-05-06T12: 00: 00Z",
          "updatedAt": "2026-05-06T12: 00: 00Z"
        }
      ],
      "nextCursor": null
    }
    GET/testing/mission-test-configs/{id}

    Get a single saved mission-test config by id.

    Path Parameters

    NameTypeRequiredDescription
    idstringrequiredMission-test config id

    Request

    bash
    curl -H "x-api-key: YOUR_API_KEY" \
      https://api.nopaque.co.uk/testing/mission-test-configs/mtc_abc123

    Response

    json
    {
      "id": "mtc_abc123",
      "name": "Banking password reset",
      "sector": "banking",
      "mission": "Reset my online banking password",
      "acceptance": "Agent verifies identity and resets password",
      "profileId": "prof_xyz789",
      "tags": [
        "banking"
      ],
      "createdAt": "2026-05-06T12: 00: 00Z"
    }
    PATCH/testing/mission-test-configs/{id}

    Partially update a saved mission-test config. Send only the fields you want to change. At least one field is required. Pass null for description or tags to clear them.

    Path Parameters

    NameTypeRequiredDescription
    idstringrequiredMission-test config id

    Body Parameters

    NameTypeRequiredDescription
    namestringoptionalUpdated display name
    descriptionstring | nulloptionalUpdated description. Pass null to clear it
    phoneNumberstringoptionalUpdated phone number in E.164 format
    sectorstringoptionalUpdated sector key
    missionstringoptionalUpdated mission objective
    acceptancestringoptionalUpdated acceptance criteria
    profileIdstringoptionalUpdated profile id
    tagsstring[] | nulloptionalReplace the tag list. Pass null to clear all tags. Up to 10 lowercase kebab-case tags (1-32 chars)

    Request

    bash
    curl -X PATCH -H "x-api-key: YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"name":"Banking password reset (EU)","tags":["banking","eu"]}' \
      https://api.nopaque.co.uk/testing/mission-test-configs/mtc_abc123

    Response

    json
    {
      "id": "mtc_abc123",
      "name": "Banking password reset (EU)",
      "sector": "banking",
      "mission": "Reset my online banking password",
      "acceptance": "Agent verifies identity and resets password",
      "profileId": "prof_xyz789",
      "tags": [
        "banking",
        "eu"
      ],
      "updatedAt": "2026-05-06T12: 10: 00Z"
    }
    DELETE/testing/mission-test-configs/{id}

    Delete a saved mission-test config.

    Path Parameters

    NameTypeRequiredDescription
    idstringrequiredMission-test config id

    Request

    bash
    curl -X DELETE -H "x-api-key: YOUR_API_KEY" \
      https://api.nopaque.co.uk/testing/mission-test-configs/mtc_abc123

    Response

    json
    {
      "message": "Mission test config deleted successfully"
    }
    POST/testing/mission-test-configs/{id}/runs

    Launch a new mission test run from a saved config. Returns the new MissionTestRun.

    Path Parameters

    NameTypeRequiredDescription
    idstringrequiredMission-test config id

    Request

    bash
    curl -X POST -H "x-api-key: YOUR_API_KEY" \
      https://api.nopaque.co.uk/testing/mission-test-configs/mtc_abc123/runs

    Response

    json
    {
      "id": "mtr_abc123",
      "kind": "freeform",
      "configId": "mtc_abc123",
      "sector": "banking",
      "mission": "Reset my online banking password",
      "acceptance": "Agent verifies identity and resets password",
      "profile": {
        "phoneNumber": "+441234567890"
      },
      "status": "queued",
      "createdAt": "2026-05-06T12: 00: 00Z"
    }