Quickstart (Step 2): Making Your First Calculation Request

Now that you have configured your API key (CLIMEQ_API_KEY), let's send your first activity payload to ClimeqAI's autonomous calculation endpoint (POST /api/v1/integrations/emissions/calculate) to see AI-powered carbon accounting and IPCC AR4 / AR5 / AR6 gas disaggregation in action.

1. Send Your First Request via cURL

Paste the following command into your terminal to submit 1,250.5 kWh of electricity consumption for a facility located in Turkey (TR):

curl -X POST "https://api.climeqai.com/api/v1/integrations/emissions/calculate" \
  -H "X-Api-Key: $CLIMEQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "sourceType": "Electricity",
    "quantity": 1250.5,
    "unit": "kWh",
    "activityDate": "2026-10-26T14:30:00Z",
    "region": "TR",
    "calculationMethod": "ar6",
    "persist": true,
    "async": false,
    "vendorName": "Enerjisa Corporate",
    "externalReferenceId": "QUICKSTART-INV-001",
    "anchorToBlockchain": true
  }'

2. Inspecting the JSON Response (200 OK)

Within milliseconds, the VALENQ Engine classifies your input, matches it to the Turkish national electricity grid emission factor, and returns the following JSON response:

{
  "success": true,
  "message": "Emission calculated synchronously and persisted to ledger.",
  "data": {
    "id": "94a8f2c1-7b3d-4e9a-8c21-6f0e5d1a3b9c",
    "scope": 2,
    "sourceType": "Turkey National Grid Electricity (kWh)",
    "quantity": 1250.5,
    "unit": "kWh",
    "co2e": 0.5477,
    "appliedFactor": 0.438,
    "factorSource": "EPİAŞ / IEA 2025",
    "confidenceScore": 0.98,
    "matchStatus": "Autonomous",
    "externalReferenceId": "QUICKSTART-INV-001"
  }
}

3. Understanding Request & Response Fields

Field NameSample ValueDescription
calculationMethod"ar6" ("ar4", "ar5", "ar6")IPCC Assessment Report GWP horizon applied to constituent gas calculations (Default: ar6).
persisttrue / falseSet false for stateless simulation without database persistence; set true to store in your emission ledger.
id94a8f2c1...Unique identifier of the emission record (queryable via GET /api/v1/integrations/emissions/{id}).
co2e0.5477Total calculated greenhouse gas emissions (metric tons of CO₂ equivalent — tCO₂e).
scope2GHG Protocol scope automatically assigned by the engine (1, 2, or 3).
appliedFactor0.438Scientific emission factor applied by VALENQ Engine (kgCO₂e/unit).
confidenceScore0.98AI factor-matching confidence score (98%).

[!TIP]

You can call GET /api/v1/integrations/emissions/{id} anytime to retrieve the full constituentGases breakdown (co2Kg, ch4KgCO2e, n2oKgCO2e) and blockchain proof, or continue to Step 3: Verifying and Sealing Your Record.

Platform Guide & Technical Documents