Skip to main content

Welcome to the EcoEvents API

The EcoEvents API provides a comprehensive set of endpoints to manage sustainable events, track carbon footprints, coordinate vendors, and analyze environmental impact. Built on REST principles, our API uses predictable resource-oriented URLs, accepts JSON-encoded request bodies, and returns JSON-encoded responses.

Base URL

All API requests should be made to:
The API is only available over HTTPS. Requests made over plain HTTP will be redirected to HTTPS.

API Versioning

The EcoEvents API uses URL-based versioning. The current version is v1, which is included in the base URL. We maintain backward compatibility within major versions and provide advance notice before deprecating any endpoints. When breaking changes are introduced, we’ll release a new API version (e.g., v2) and maintain support for previous versions for at least 12 months.

Rate Limits

To ensure fair usage and system stability, API requests are rate-limited based on your subscription tier: Rate limit information is included in response headers:
When you exceed the rate limit, the API returns a 429 Too Many Requests response. Implement exponential backoff in your application to handle rate limit errors gracefully.

Response Format

All responses are returned in JSON format with appropriate HTTP status codes.

Success Response

Successful requests return a 2xx status code with the requested data:

Error Response

Errors return appropriate HTTP status codes with detailed error information:

HTTP Status Codes

The API uses standard HTTP status codes to indicate the success or failure of requests:

Error Codes

In addition to HTTP status codes, error responses include specific error codes:
Each error response includes a documentation URL pointing to detailed information about the error and how to resolve it.

Pagination

List endpoints support pagination using page and perPage query parameters:
Pagination Parameters:
  • page (default: 1): Page number to retrieve
  • perPage (default: 20, max: 100): Number of items per page

Filtering and Sorting

Many list endpoints support filtering and sorting:

Idempotency

For POST and PATCH requests, you can include an Idempotency-Key header to safely retry requests without duplicating operations:

Webhooks

EcoEvents supports webhooks to notify your application of events in real-time. Configure webhook endpoints in your dashboard to receive notifications for:
  • Event creation, updates, and cancellations
  • Carbon footprint calculations completed
  • Sustainability score changes
  • Vendor confirmations
  • Payment processing

SDK and Libraries

Official SDKs are available for popular programming languages:
  • Node.js: npm install @ecoevents/sdk
  • Python: pip install ecoevents
  • Ruby: gem install ecoevents
  • PHP: composer require ecoevents/sdk

Support

Need help? Reach out to our developer support team:
Enterprise customers have access to dedicated support channels and SLA guarantees. Contact your account manager for details.