Nopaque Limited · Schema

MappingJob

A mapping job — a configured IVR-discovery task targeting a single phone number. Lifecycle is `idle` → `queued` → `running` → `completed | failed | limited`. A job is reusable across runs; `currentRunId` tracks the most-recent run.

Voice TestingIVR TestingComplianceFinancial ServicesLoad Testing

Properties

Name Type Description
id string Unique mapping-job identifier.
workspaceId string Owning workspace.
userId string User who created the job.
name string Job display name.
phoneNumber string Target phone number in E.164 format.
config object
status string On getMappingJob, the status of the run the response describes (a copy of `currentRun.status`, with `queued` shown as `idle`), or `idle` when the job has never run. createMappingJob returns `idle`: cr
stats object
inFlightCount integer Currently executing calls.
currentRunId string Identifier of the most-recent run (absent if never started).
limitReason string Reason the run stopped early (only present when `status` is `limited`).
error string Error message if the job failed.
createdAt string Creation timestamp.
updatedAt string Last update timestamp.
startedAt string Most-recent run start timestamp.
completedAt string Most-recent run completion timestamp.
tags array String labels for filtering and grouping. Lowercase alphanumeric + hyphens.
runNumber integer Flat-merged run number from the active or requested (via `?version=`) run. Phase 04 D-09 — preserved at top level for frontend back-compat alongside the new nested `currentRun` object.
currentRun object
View JSON Schema on GitHub

JSON Schema

nopaque-co-uk-mapping-job-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nopaque-co-uk/json-schema/nopaque-co-uk-mapping-job-schema.json",
  "title": "MappingJob",
  "description": "A mapping job — a configured IVR-discovery task targeting a single phone number.\nLifecycle is `idle` → `queued` → `running` → `completed | failed | limited`.\nA job is reusable across runs; `currentRunId` tracks the most-recent run.\n",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nopaque-co-uk-mapping-api-openapi.yml#/components/schemas/MappingJob",
  "type": "object",
  "required": [
    "id",
    "workspaceId",
    "userId",
    "name",
    "phoneNumber",
    "config",
    "status",
    "createdAt",
    "updatedAt"
  ],
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Unique mapping-job identifier."
    },
    "workspaceId": {
      "type": "string",
      "format": "uuid",
      "description": "Owning workspace."
    },
    "userId": {
      "type": "string",
      "format": "uuid",
      "description": "User who created the job."
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255,
      "description": "Job display name."
    },
    "phoneNumber": {
      "type": "string",
      "description": "Target phone number in E.164 format."
    },
    "config": {
      "$ref": "#/$defs/MappingJobConfig"
    },
    "status": {
      "type": "string",
      "enum": [
        "idle",
        "queued",
        "running",
        "completed",
        "failed",
        "limited"
      ],
      "description": "On getMappingJob, the status of the run the response describes (a copy of\n`currentRun.status`, with `queued` shown as `idle`), or `idle` when the job\nhas never run. createMappingJob returns `idle`: creating a job places no\ncall and starts no run (POST /mapping/{id}/start does).\n"
    },
    "stats": {
      "$ref": "#/$defs/MappingJobStats"
    },
    "inFlightCount": {
      "type": "integer",
      "minimum": 0,
      "description": "Currently executing calls."
    },
    "currentRunId": {
      "type": "string",
      "format": "uuid",
      "description": "Identifier of the most-recent run (absent if never started)."
    },
    "limitReason": {
      "type": "string",
      "description": "Reason the run stopped early (only present when `status` is `limited`)."
    },
    "error": {
      "type": "string",
      "description": "Error message if the job failed."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "Creation timestamp."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Last update timestamp."
    },
    "startedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Most-recent run start timestamp."
    },
    "completedAt": {
      "type": "string",
      "format": "date-time",
      "description": "Most-recent run completion timestamp."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 32,
        "pattern": "^[a-z0-9][a-z0-9-]*$"
      },
      "maxItems": 10,
      "description": "String labels for filtering and grouping. Lowercase alphanumeric + hyphens."
    },
    "runNumber": {
      "type": "integer",
      "minimum": 1,
      "description": "Flat-merged run number from the active or requested (via `?version=`) run.\nPhase 04 D-09 — preserved at top level for frontend back-compat alongside\nthe new nested `currentRun` object.\n"
    },
    "currentRun": {
      "$ref": "#/$defs/CurrentRun"
    }
  },
  "$defs": {
    "CurrentRun": {
      "type": "object",
      "description": "Nested run summary on single-job responses (Phase 04 D-09 / D-10).\n`currentRun.status` is the run's own status (`queued`, `running`, `completed`,\n`failed` or `limited`); read it to decide whether the discovery is done. The\nflat `status` on the job response is a copy of it, except that `queued` shows\nas `idle`.\n\nThe field name stays `currentRun` even when `?version=N` is supplied — the\nwrapper describes the run this response describes (active by default, or\nthe historical run identified by `version`).\n",
      "required": [
        "id",
        "status",
        "runNumber"
      ],
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Run identifier."
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "completed",
            "failed",
            "limited"
          ],
          "description": "The run's own status. A run has finished when it is `completed`, `failed` or\n`limited`. The job response's flat `status` copies it, with `queued` shown as `idle`.\n"
        },
        "runNumber": {
          "type": "integer",
          "minimum": 1,
          "description": "1-indexed run number."
        },
        "stats": {
          "$ref": "#/$defs/MappingJobStats"
        },
        "inFlightCount": {
          "type": "integer",
          "minimum": 0,
          "description": "Currently executing calls."
        },
        "limitReason": {
          "type": "string",
          "description": "Reason if status is `limited`."
        },
        "startedAt": {
          "type": "string",
          "format": "date-time"
        },
        "completedAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "EnrichmentConfig": {
      "type": "object",
      "description": "Enrichment pipeline configuration. Controls whether async post-map enrichment\nruns after a mapping run completes (quality scoring, transcript analysis, etc.).\n",
      "required": [
        "enabled"
      ],
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether enrichment runs automatically after each mapping run completes."
        },
        "types": {
          "type": "array",
          "maxItems": 20,
          "items": {
            "type": "string"
          },
          "description": "Which enrichment types to run. Defaults to `[\"quality_scoring\"]`."
        }
      }
    },
    "MappingJobConfig": {
      "type": "object",
      "description": "Per-job configuration knobs that govern exploration shape and call orchestration.\nSensible defaults are applied server-side when fields are omitted on create.\n",
      "properties": {
        "maxDepth": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10,
          "default": 3,
          "description": "Maximum tree depth to explore (0 = root only)."
        },
        "maxCalls": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 50,
          "description": "Maximum total calls per run."
        },
        "maxDurationMinutes": {
          "type": "integer",
          "minimum": 1,
          "maximum": 60,
          "default": 30,
          "description": "Maximum run duration in minutes."
        },
        "maxConcurrency": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5,
          "default": 1,
          "description": "Maximum concurrent calls."
        },
        "language": {
          "allOf": [
            {
              "$ref": "#/$defs/TranscriptionLanguage"
            }
          ],
          "description": "Transcription language for this mapping run. Omitted means `en-GB`.\nMust be one of the `TranscriptionLanguage` codes — NOT a\n`CallLanguage`: bare `en` is rejected with 400.\n"
        },
        "voiceProfileId": {
          "type": "string",
          "format": "uuid",
          "description": "Voice profile for TTS responses (full-audio / dtmf-audio modes)."
        },
        "dataProfileId": {
          "type": "string",
          "format": "uuid",
          "description": "Data profile for variable substitution in scripted inputs."
        },
        "retryConfig": {
          "$ref": "#/$defs/RetryConfig"
        },
        "repeatConfig": {
          "$ref": "#/$defs/RepeatConfig"
        },
        "enrichmentConfig": {
          "$ref": "#/$defs/EnrichmentConfig"
        },
        "mappingMode": {
          "type": "string",
          "enum": [
            "dtmf",
            "dtmf-audio",
            "full-audio"
          ],
          "description": "Mapping mode. `dtmf` is keypad-only; `dtmf-audio` mixes DTMF + voice;\n`full-audio` is voice-first (no keypad).\n"
        },
        "vertical": {
          "type": "string",
          "enum": [
            "FSI",
            "Healthcare",
            "EnergyUtilities",
            "Telecoms",
            "General"
          ],
          "description": "Industry vertical used for prompt-library lookup."
        },
        "probeMode": {
          "type": "boolean",
          "description": "Phase 31 security-probe mode flag. Requires a prior attestation via\n`POST /mapping/attest` for the target phone number.\n"
        },
        "carrierRouteId": {
          "type": "string",
          "maxLength": 128,
          "description": "Bring-your-own-carrier (invite-only). Dial this map's calls through one of the\nworkspace's carrier routes, over the workspace's own SIP trunk, instead of nopaque's\nnetwork. Checked when the map is created or updated (400 when it cannot be dialled, 503\nwhen it could not be looked up). Each run records the route it started through\n(`carrier`), and every call of the run checks it again, with the trunk's daily minutes:\na start that cannot dial is refused (409, 429 for today's minutes, 403 or 503), and a\ncall later in the map that cannot (the route was disabled, or the trunk used today's\nminutes) fails that step with the reason, so the map stops dialling. Never a normal\ncall instead. Send `null` on update to clear it. Carrier calls are metered as\n`carrier_mapping` (`carrier_s2s` for full-audio maps), from answer.\n"
        }
      }
    },
    "MappingJobStats": {
      "type": "object",
      "description": "Aggregate statistics for the current run, populated while the job executes.",
      "required": [
        "totalCalls",
        "completedCalls",
        "failedCalls",
        "loopsDetected",
        "retriedCalls"
      ],
      "properties": {
        "totalCalls": {
          "type": "integer",
          "minimum": 0,
          "description": "Total calls placed so far in this run."
        },
        "completedCalls": {
          "type": "integer",
          "minimum": 0,
          "description": "Successfully completed calls."
        },
        "failedCalls": {
          "type": "integer",
          "minimum": 0,
          "description": "Calls that failed (after retries)."
        },
        "loopsDetected": {
          "type": "integer",
          "minimum": 0,
          "description": "Number of times a repeated menu was detected."
        },
        "retriedCalls": {
          "type": "integer",
          "minimum": 0,
          "description": "Calls that required at least one retry."
        }
      }
    },
    "RepeatConfig": {
      "type": "object",
      "description": "Repeat-detection configuration. Controls how the orchestrator handles\nsituations where a discovered menu is revisited via a different DTMF path\n(a loop). `skip` ignores the revisit entirely; `explore_once` explores it\nthe first time only; `explore_n` explores up to `maxExplorations` times.\n",
      "required": [
        "behavior"
      ],
      "properties": {
        "behavior": {
          "type": "string",
          "enum": [
            "skip",
            "explore_once",
            "explore_n"
          ],
          "description": "Behaviour when a repeated menu is detected."
        },
        "maxExplorations": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10,
          "description": "Maximum explorations when `behavior` is `explore_n` (default 2)."
        }
      }
    },
    "RetryConfig": {
      "type": "object",
      "description": "Retry configuration for failed mapping calls. Controls whether transient call\nfailures (no answer, busy, telephony errors) are retried before being marked failed.\n",
      "required": [
        "enabled",
        "maxRetries"
      ],
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether retries are enabled for this job."
        },
        "maxRetries": {
          "type": "integer",
          "minimum": 1,
          "maximum": 5,
          "description": "Maximum retry attempts per failed call (1-5)."
        }
      }
    },
    "TranscriptionLanguage": {
      "type": "string",
      "description": "The transcription language of a STANDARD test or a MAPPING run — the\nlanguage the callee is expected to speak, used to transcribe the call.\nAbsent means `en-GB`: every omit path is unchanged, so an existing\nconfig without the field transcribes as British English exactly as\nbefore. Anything outside this set is rejected with 400.\n\nThe English variants lead, then `multi` (code-switching), then the\nremaining languages alphabetically by display label. Mirrors\n`api/packages/core/transcription/languages.ts` (Zod) — the single\nsource of truth; a drift test keeps this enum equal to it.\n\nDISTINCT from `CallLanguage`, which is the language a MISSION test\ncall is held in. The two lists do not overlap cleanly and are not\ninterchangeable: bare `en` is a valid `CallLanguage` and is INVALID\nhere (use `en-GB` or `en-US`), and most codes here are not call\nlanguages at all.\n",
      "enum": [
        "en-GB",
        "en-US",
        "en-AU",
        "en-IN",
        "en-NZ",
        "multi",
        "ar",
        "be",
        "bn",
        "bs",
        "bg",
        "ca",
        "zh-HK",
        "zh",
        "hr",
        "cs",
        "da",
        "nl",
        "et",
        "fi",
        "nl-BE",
        "fr",
        "de",
        "el",
        "gu",
        "he",
        "hi",
        "hu",
        "id",
        "it",
        "ja",
        "kn",
        "ko",
        "lv",
        "lt",
        "mk",
        "ms",
        "mr",
        "no",
        "fa",
        "pl",
        "pt",
        "ro",
        "ru",
        "sr",
        "sk",
        "sl",
        "es",
        "sv",
        "tl",
        "ta",
        "te",
        "th",
        "tr",
        "uk",
        "ur",
        "vi"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/nopaque-co-uk-mapping-job"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.