Skip to main content
As you submit corrections via POST /v1/feedback, the system analyzes patterns in your data. Insights surface contradictions, suggest disambiguation rules, and track your overall detection accuracy.

GET /v1/insights

Example Request

curl https://api.ambientmeta.com/v1/insights \
  -H "X-API-Key: am_live_xxx"

Example Response

{
  "pending_conflicts": [
    {
      "id": "ins_abc123",
      "type": "contradiction_cluster",
      "title": "PHONE_NUMBER vs NPI disambiguation needed",
      "description": "The system detected that PHONE_NUMBER and NPI are sometimes confused in your data.",
      "status": "pending",
      "data": {},
      "created_at": "2026-02-13T12:00:00Z"
    }
  ],
  "proposed_improvements": [],
  "discovered_patterns": [],
  "knowledge_depth": {
    "ckd_score": 0.42,
    "maturity": "developing",
    "strongest_entity": {"type": "EMAIL_ADDRESS", "confidence": 0.99},
    "weakest_entity": {"type": "NPI", "confidence": 0.71},
    "contradictions_pending": 3,
    "contradictions_resolved": 12,
    "golden_set_size": 234,
    "compiled_rules": 18,
    "on_demand_hit_rate": 0.45
  }
}

Response Fields

FieldTypeDescription
pending_conflictsarrayContradictions that need resolution
proposed_improvementsarraySystem-generated rule suggestions
discovered_patternsarrayRecurring formats detected from missed entities
knowledge_depthobjectYour Customer Knowledge Depth metrics

Insight Item Fields

FieldTypeDescription
idstringInsight identifier
typestringcontradiction_cluster, pattern_overlap, context_condition, or discovered_pattern
titlestringHuman-readable summary
descriptionstringDetailed explanation
statusstringpending, approved, rejected, or refined
dataobjectInsight-specific metadata
created_atstringISO 8601 timestamp

Knowledge Depth Fields

FieldTypeDescription
ckd_scorefloatCustomer Knowledge Depth score (0.0 to 1.0)
maturitystringnascent, developing, established, or expert
strongest_entityobjectEntity type with highest detection confidence
weakest_entityobjectEntity type with lowest detection confidence
contradictions_pendingintegerUnresolved contradictions
contradictions_resolvedintegerResolved contradictions
golden_set_sizeintegerNumber of validated examples in your golden set
compiled_rulesintegerActive disambiguation rules
on_demand_hit_ratefloatFraction of detections where a compiled rule applied
Maturity levels: nascent (0.0-0.2), developing (0.2-0.5), established (0.5-0.8), expert (0.8-1.0). Higher scores mean better detection accuracy tailored to your data.

POST /v1/insights/{id}/resolve

Resolve a pending insight by approving, refining, or rejecting the proposed rule.
FieldTypeRequiredDescription
resolutionstringYesapprove, refine, or reject
modificationsobjectFor refineModifications to apply to the proposed rule
reasonstringFor rejectReason for rejection

Approve

curl -X POST https://api.ambientmeta.com/v1/insights/ins_abc123/resolve \
  -H "X-API-Key: am_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"resolution": "approve"}'

Refine

curl -X POST https://api.ambientmeta.com/v1/insights/ins_abc123/resolve \
  -H "X-API-Key: am_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "resolution": "refine",
    "modifications": {
      "context_condition": {
        "keywords": ["prescriber", "NPI", "provider", "attending", "clinic"],
        "distance": 150
      }
    }
  }'

Reject

curl -X POST https://api.ambientmeta.com/v1/insights/ins_abc123/resolve \
  -H "X-API-Key: am_live_xxx" \
  -H "Content-Type: application/json" \
  -d '{"resolution": "reject", "reason": "These are all phone numbers in our system"}'

Response

{
  "status": "approved",
  "golden_set_entries_created": 2
}
FieldTypeDescription
statusstringResolution status (approved, refined, or rejected)
golden_set_entries_createdintegerNumber of new golden set entries created from this resolution
All resolutions generate training data. Approving and refining create positive examples. Rejecting creates a negative signal. Every interaction improves accuracy.

Errors

CodeHTTP StatusDescription
invalid_api_key401API key is missing or invalid
insight_not_found404Insight ID doesn’t exist
rate_limited429Too many requests
View all error codes