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 isv1, 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:| Tier | Requests per minute | Requests per day |
|---|---|---|
| Free | 60 | 1,000 |
| Starter | 300 | 10,000 |
| Professional | 1,200 | 50,000 |
| Enterprise | Custom | Custom |
Response Format
All responses are returned in JSON format with appropriate HTTP status codes.Success Response
Successful requests return a2xx 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:| Code | Status | Description |
|---|---|---|
| 200 | OK | Request succeeded |
| 201 | Created | Resource created successfully |
| 204 | No Content | Request succeeded with no response body |
| 400 | Bad Request | Invalid request parameters |
| 401 | Unauthorized | Missing or invalid authentication |
| 403 | Forbidden | Authenticated but not authorized |
| 404 | Not Found | Resource doesn’t exist |
| 409 | Conflict | Request conflicts with current state |
| 422 | Unprocessable Entity | Valid request but semantic errors |
| 429 | Too Many Requests | Rate limit exceeded |
| 500 | Internal Server Error | Server-side error |
| 503 | Service Unavailable | Temporary server unavailability |
Error Codes
In addition to HTTP status codes, error responses include specific error codes:| Error Code | Description |
|---|---|
authentication_failed | Invalid API key or expired token |
insufficient_permissions | Missing required permissions for operation |
invalid_request | Malformed request or missing required fields |
resource_not_found | Requested resource doesn’t exist |
validation_error | Request validation failed |
rate_limit_exceeded | Too many requests |
duplicate_resource | Resource already exists |
carbon_calculation_failed | Error calculating environmental impact |
vendor_unavailable | Sustainable vendor service unavailable |
payment_required | Subscription upgrade required |
Each error response includes a
documentation URL pointing to detailed information about the error and how to resolve it.Pagination
List endpoints support pagination usingpage and perPage query parameters:
page(default: 1): Page number to retrieveperPage(default: 20, max: 100): Number of items per page
Filtering and Sorting
Many list endpoints support filtering and sorting:Idempotency
ForPOST 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:- Email: [email protected]
- GitHub: https://github.com/devcarlosperez/EcoEvents
- Documentation: This documentation site
Enterprise customers have access to dedicated support channels and SLA guarantees. Contact your account manager for details.