Developer Portal

Integrate the EcoNudge engine into your own platform

🔑 Your API Key

Use this key to authenticate requests to the EcoNudge calculation engine.

eco_********************************

⚡ Quickstart

ReactNode.js

Drop the EcoNudge widget into your React app.

import { EcoNudgeWidget } from '@econudge/react';

export default function CheckoutPage() {
  return (
    <div>
      <EcoNudgeWidget
        apiKey="YOUR_API_KEY"
        actionType="ride_booking"
        metadata={{ distanceKm: 12 }}
        onAlternativeSelected={(alt) => {
          // Update your cart/booking
          applyGreenAlternative(alt);
        }}
      />
    </div>
  );
}

📡 Available Endpoints

POST/api/v1/nudge/calculate

Calculate carbon footprint and return greener alternatives for a specific user action.

GET/api/v1/esg/report

Fetch automated corporate ESG compliance data based on your users' choices.

POST/api/v1/webhooks

Register a webhook to receive real-time events when users accept green nudges.