Webhooks & Signature Verification

ClimeqAI Webhooks send real-time HTTP POST notifications to your servers whenever important events occur on the platform (such as emission verification, supplier risk alerts, or report completion), so you do not need to poll the API.

1. Supported Event Types

You can subscribe your webhook endpoints to one or more of the following events:

Event Code (event)When It TriggersTypical Enterprise Use Case
emission.verifiedWhen an emission record is verified by VALENQ Engine or sealed on the blockchain.Write the calculated tCO₂e value and blockchain transaction hash (txHash) back to the originating invoice in SAP or Oracle ERP.
emission.updatedWhen an existing emission record is modified or superseded via Storno/Amendment.Keep sustainability tables in your enterprise data warehouse (Snowflake, BigQuery) synchronized in real time.
supplier.riskWhen a critical spike in a supplier's ESG risk score or a compliance breach is detected.Automatically open an alert or action ticket for procurement teams in Slack, Microsoft Teams, or Jira.
target.achievedWhen an SBTi or corporate decarbonization milestone is reached.Update executive BI dashboards and internal sustainability portals immediately.
report.generatedWhen a CSRD, CBAM, or GHG Inventory disclosure report finishes generating.Archive the finalized report package automatically into SharePoint or Google Drive.

2. Sample Webhook Payload (JSON)

When a subscribed event occurs, ClimeqAI sends an HTTP POST request with the following JSON structure to your HTTPS endpoint:

{
  "eventId": "evt_01J8X9K2M4N6P8Q0R2S4T6V8W0",
  "event": "emission.verified",
  "timestamp": "2026-10-26T14:35:12Z",
  "organizationId": "org_climeq_enterprise_01",
  "data": {
    "emissionId": "em_94a8f2c1-7b3d-4e9a-8c21-6f0e5d1a3b9c",
    "externalReferenceId": "SAP-INV-2026-009841",
    "sourceType": "Electricity",
    "scope": "Scope 2",
    "calculatedCo2e": 0.5477,
    "unit": "tCO2e",
    "isSealed": true,
    "blockchainTxHash": "0x7f9c8b4e2a1d6f3e5c8b9a0d2e4f6a8b1c3d5e7f9a2b4c6d8e0f1a3b5c7d9e1f"
  }
}

3. Signature Verification (X-Climeq-Signature)

To verify that incoming webhook requests come from ClimeqAI and have not been modified in transit, every delivery includes the X-Climeq-Signature HTTP header:

1. When you create a webhook endpoint, ClimeqAI generates a unique whsec_... signing secret.

2. ClimeqAI computes an HMAC-SHA256 hash of the raw request body using your whsec_... secret and sends it in the X-Climeq-Signature header.

3. Compute the same HMAC on your server and compare the signatures:

import crypto from 'crypto';

function verifyClimeqWebhook(rawBody, signatureHeader, webhookSecret) {
  const expectedSignature = crypto
    .createHmac('sha256', webhookSecret)
    .update(rawBody, 'utf8')
    .digest('hex');

  return crypto.timingSafeEqual(
    Buffer.from(signatureHeader),
    Buffer.from(expectedSignature)
  );
}

[!IMPORTANT]

Your webhook endpoint must return a 2xx (200 OK or 202 Accepted) HTTP status code within 5 seconds of receiving the payload. Move long-running tasks to a background queue before returning your response.

Platform Guide & Technical Documents