VALENQ Engine Mapping & Industry Codes

Powered by VALENQ Engine, the Mapping Agent endpoints match unstructured ERP invoice lines, procurement descriptions, and material records to the best emission factor and calculate Scope 1, 2, and 3 emissions automatically.

1. How It Works & Private Factors

  • Private Emission Factors (accessType): Supplier EPDs and facility-specific factors uploaded via POST /private-factors are automatically included in VALENQ Engine searches.
  • Set "accessType": "private" to search only your organization's private emission factors.
  • Set "accessType": "public" to search only the public catalog and skip private factors.
  • Data License Protection: For calculation-only licensed datasets, total co2eTotalKg is returned accurately while unit coefficients are masked according to license policy; your organization's own "private" factors are never masked.
  • Effort & Speed Modes (effort):
  • "thorough" (or "high"): Runs deeper reranking and generates detailed match explanations (best for accuracy).
  • "fast" (or "low"): Fast matching for low-latency real-time requests.

2. Suggest Emission Factors

POST /api/v1/integrations/mapping-agent/suggest

Returns ranked emission factor suggestions (1–20 items), review labels (qualityLabel), data quality scores (dqi), and selection reasoning without running a calculation.

  • Required Scope: emissions:calculate or factors:search

#### Request Parameters

ParameterTypeRequiredDefaultDescription
textstringYes—Free-form activity, material, or service description (e.g., "316L stainless steel pipe").
unitstringNonullExpected unit hint (e.g., "kg", "kWh", "L", "EUR").
unitTypestringNoAllUnit family filter: "weight", "energy", "volume", "distance", "money".
regionstringNoGlobalGeographic region code ("TR", "DE", "EU", "US").
regionFallbackbooleanNotrueWhen false, rejects candidates outside the exact requested region.
yearintegerNoLatestYear in which the activity occurred.
sourcestringNoAllData source inclusion filter (mutually exclusive with excludeSource).
excludeSourcestring[]NonullData sources to exclude from matching (mutually exclusive with source).
requiredCategorystringNoAllCategory filter (e.g., "Metals", "Building Materials").
sourceLcaActivitystringNoAllLifecycle boundary filter ("cradle_to_gate", "well_to_tank", "fuel_combustion", etc.).
scopestringNoAllGHG scope filter ("1", "2", "3", "3.1", "3.2", etc.).
calculationMethodstringNo"ar6"Preferred IPCC GWP metric ("ar6", "ar5", "ar4").
accessTypestringNo"all"Factor access filter: "public", "private", or "all".
allowedDataQualityFlagsstring[]NoDefaultPermitted data quality flags (pass [] to require zero flagged issues).
effortstringNo"fast"Matching depth: "thorough" ("high") or "fast" ("low").
explainResultsbooleanNonulltrue populates top1Explanation; false omits explanations for smaller responses.
dataVersionstringNo"^2026.1"Fixed ("2026.1") or dynamic ("^2026.1") catalog version selector.
limitintegerNo5Maximum number of ranked suggestions to return (1–20).

#### Example Request (cURL)

curl -X POST "https://api.climeqai.com/api/v1/integrations/mapping-agent/suggest" \
  -H "X-Api-Key: sust_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Portland limestone cement CEM II bulk supply",
    "unitType": "weight",
    "region": "DE",
    "regionFallback": true,
    "effort": "thorough",
    "explainResults": true,
    "limit": 2
  }'

#### Example Response (200 OK)

{
  "success": true,
  "message": "AI emission factor suggestions generated.",
  "data": {
    "query": "Portland limestone cement CEM II bulk supply",
    "quality": "accept",
    "matchedBy": "semantic_search",
    "topConfidence": 94.2,
    "modelVersion": "valenq-mapper-v2.4",
    "dataVersion": "2026.1",
    "requestedDataVersion": "^2026.1",
    "top1Explanation": "Input represents CEM II blended Portland cement; matched to a mass-based cradle-to-gate production factor.",
    "notices": [],
    "results": [
      {
        "activityId": "16dc6590-6394-8125-a416-d1ec0c26dd78",
        "activityName": "Cement, CEM II",
        "category": "Building Materials",
        "confidence": 94.2,
        "qualityLabel": "accept",
        "reasoning": "Exact material grade (CEM II) and cradle-to-gate mass boundary matched.",
        "dqi": { "technology": 1.5, "geography": 1.0, "time": 1.0, "overall": 1.2 },
        "recommendedFactor": {
          "id": "16dc6590-6394-8125-a416-d1ec0c26dd78",
          "name": "Cement, CEM II",
          "accessType": "public",
          "source": "Verified LCA Catalog",
          "region": "DE",
          "unitType": "Physical",
          "unit": "kg",
          "co2eFactor": 0.682,
          "co2eUnit": "kg",
          "year": 2025,
          "lcaBoundary": "cradle_to_gate",
          "gwpCalculationMethod": "ar6",
          "dataQualityFlags": []
        }
      }
    ]
  }
}

Quality & Review Labels (quality / qualityLabel)

LabelMeaning & Recommended Workflow
acceptHigh confidence (>= 80%) with verified unit/boundary compatibility; safe for automated approval.
reviewModerate confidence or spend-based estimate; route to analyst review.
unmatchedNo valid factor matched the query and active filters (consider relaxing excludeSource or regionFallback).
anomalyGuardrail triggered (e.g., monetary factor on physical query or outlier coefficient); blocked from auto-acceptance.

3. One-Step AI Mapping & Calculation

POST /api/v1/integrations/mapping-agent/estimate

Matches free-form text, amount, and unit (physical unit, item count, or currency) to the top candidate factor and returns calculated kgCO₂e / tCO₂e in a single request.

  • Required Scope: emissions:calculate
  • Inflation Adjustment (applyInflationAdjustment): On monetary (EUR, USD, TRY, etc.) estimates, setting applyInflationAdjustment to the spend year (e.g., 2026) adjusts the spend amount to the factor's base year using CPI inflation rates and reports the adjustment in notices.

#### Additional Request Parameters (Beyond Suggest Parameters)

ParameterTypeRequiredDescription
amountnumberYesPositive physical quantity, item count, or monetary spend amount.
unitstringYesPhysical unit (kg, kWh, L, m3), count (pcs, unit), or currency (EUR, USD, TRY).
applyInflationAdjustmentintegerNoYear in which money was spent (e.g., 2026). Adjusts monetary estimates for inflation relative to the factor's year.
autoAcceptThresholdnumberNoMinimum confidence score (0–100, default 80) required for accept status.
hsCodestringNoOptional HS tariff code improving weight estimates on count-based (unit/pcs) inputs.
exportOpenLcaFormatbooleanNoWhen true, attaches an OpenLCA-compatible JSON-LD package (openLcaPackage) to the response.
curl -X POST "https://api.climeqai.com/api/v1/integrations/mapping-agent/estimate" \
  -H "X-Api-Key: sust_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Semi-finished structural steel sections",
    "amount": 15000,
    "unit": "EUR",
    "region": "DE",
    "applyInflationAdjustment": 2026,
    "effort": "thorough",
    "explainResults": true
  }'

Notice Codes (notices[])

codeseverityDescription
emission_factor_region_fallbackwarningUsed a factor from a fallback/parent region because exact regional data was unavailable.
inflation_appliedinfoCPI inflation adjustment was applied between the applyInflationAdjustment spend year and the factor's base year.
large_inflation_adjustmentwarningInflation adjustment spanned more than 2 years.
no_inflation_adjustmentinfo / warningNo adjustment applied—informational when the input is physical, or a warning when CPI data is unavailable for the period.

4. Batch AI Mapping & Calculation

POST /api/v1/integrations/mapping-agent/estimate/batch

Processes up to 100 unstructured ERP line items in a single HTTP request through VALENQ Engine.

  • Required Scope: emissions:calculate
{
  "jobName": "SAP-2026-Q3-Procurement",
  "defaultRegion": "DE",
  "defaultYear": 2026,
  "autoAcceptThreshold": 80.0,
  "effort": "thorough",
  "items": [
    { "externalId": "INV-101", "text": "Backup generator diesel refuel", "amount": 400, "unit": "L", "region": "TR" },
    { "externalId": "INV-102", "text": "LDPE stretch wrap packaging film", "amount": 250, "unit": "kg" }
  ]
}

5. Industry & Customs Code Calculation

POST /api/v1/integrations/classifications/estimate

Calculates physical or inflation-adjusted spend emissions directly from standard procurement, industry, and customs codes (UNSPSC, NACE, ISIC, NAICS, MCC, HS_CODE):

curl -X POST "https://api.climeqai.com/api/v1/integrations/classifications/estimate" \
  -H "X-Api-Key: sust_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "classificationType": "UNSPSC",
    "classificationCode": "43211503",
    "amount": 25000,
    "unitOrCurrency": "EUR",
    "regionCode": "DE",
    "year": 2026,
    "calculationMethod": "ar6",
    "persist": false
  }'

Platform Guide & Technical Documents