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
| Name | Type | Required | Description |
|---|---|---|---|
| jobId | string | required | Mapping job ID |
| runId | string | required | Mapping run ID |
| type | string | required | Enrichment 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_scoringResponse
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-usageGet token usage details for a specific mapping run.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| jobId | string | required | Mapping job ID |
| runId | string | required | Mapping run ID |
Request
bash
curl -H "x-api-key: YOUR_API_KEY" \
https://api.nopaque.co.uk/mapping/map_abc123/runs/run_def456/token-usageResponse
json
{
"jobId": "map_abc123",
"runId": "run_def456",
"usage": {
"ivrAnalysisTokens": 4520,
"qualityScoringTokens": 1280,
"totalTokens": 5800
}
}POST
/mapping/{jobId}/runs/{runId}/enrichTrigger enrichment analysis for a completed mapping run. Queues quality scoring and other enrichment pipelines.
Path Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| jobId | string | required | Mapping job ID |
| runId | string | required | Mapping 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/enrichResponse
json
{
"jobId": "map_abc123",
"runId": "run_def456",
"status": "queued",
"enrichmentTypes": [
"quality_scoring"
],
"queuedAt": "2026-04-10T12: 30: 00Z"
}