Enrichment

    Trigger AI-powered quality scoring and analysis enrichments on mapping runs, and retrieve token usage details.

    3 endpoints

    GET/mapping/{jobId}/runs/{runId}/enrichments/{type}

    Get enrichment results for a specific mapping run. Returns quality scores, sentiment analysis, or other enrichment data.

    Path Parameters

    NameTypeRequiredDescription
    jobIdstringrequiredMapping job ID
    runIdstringrequiredMapping run ID
    typestringrequiredEnrichment type (e.g., quality_scoring)

    Request

    bash
    curl -H "x-api-key: YOUR_API_KEY" \
      https://api.nopaque.co.uk/mapping/map_abc123/runs/run_def456/enrichments/quality_scoring

    Response

    json
    {
      "jobId": "map_abc123",
      "runId": "run_def456",
      "type": "quality_scoring",
      "status": "completed",
      "results": {
        "overallScore": 78,
        "sentiment": "Good",
        "dimensions": {
          "accessibility": 85,
          "clarity": 72,
          "efficiency": 80,
          "completeness": 75,
          "professionalism": 78
        },
        "rationale": "The IVR provides clear menu options but could improve navigation efficiency."
      }
    }
    GET/mapping/{jobId}/runs/{runId}/token-usage

    Get token usage details for a specific mapping run.

    Path Parameters

    NameTypeRequiredDescription
    jobIdstringrequiredMapping job ID
    runIdstringrequiredMapping run ID

    Request

    bash
    curl -H "x-api-key: YOUR_API_KEY" \
      https://api.nopaque.co.uk/mapping/map_abc123/runs/run_def456/token-usage

    Response

    json
    {
      "jobId": "map_abc123",
      "runId": "run_def456",
      "usage": {
        "ivrAnalysisTokens": 4520,
        "qualityScoringTokens": 1280,
        "totalTokens": 5800
      }
    }
    POST/mapping/{jobId}/runs/{runId}/enrich

    Trigger enrichment analysis for a completed mapping run. Queues quality scoring and other enrichment pipelines.

    Path Parameters

    NameTypeRequiredDescription
    jobIdstringrequiredMapping job ID
    runIdstringrequiredMapping run ID

    Request

    bash
    curl -X POST -H "x-api-key: YOUR_API_KEY" \
      https://api.nopaque.co.uk/mapping/map_abc123/runs/run_def456/enrich

    Response

    json
    {
      "jobId": "map_abc123",
      "runId": "run_def456",
      "status": "queued",
      "enrichmentTypes": [
        "quality_scoring"
      ],
      "queuedAt": "2026-04-10T12: 30: 00Z"
    }