Env API Documentation
Interact programmatically with Env's sustainability platform. Track emissions, generate compliance reports, and analyze ESG metrics across your organization.
Base URL
Authentication
All API requests require authentication via Bearer token. Include your API key in the Authorization header.
Get Emissions Data
Retrieve carbon emission records across Scope 1, 2, and 3 for your organization.
| Parameter | Type | Description |
|---|---|---|
scope | string | Filter by scope: 1, 2, or all |
from_date | string | ISO 8601 start date (e.g., 2024-01-01) |
to_date | string | ISO 8601 end date |
limit | integer | Max records to return (default: 50, max: 200) |
Generate Sustainability Report
Create a standardized ESG or carbon compliance report. Returns a task ID for asynchronous processing.
ESG Metrics
Retrieve real-time ESG performance indicators including energy efficiency, water usage, waste diversion rates, and compliance scores.
Error Handling
Env uses standard HTTP status codes. Errors return a JSON body with a descriptive message.
| Code | Meaning | Resolution |
|---|---|---|
400 | Bad Request | Validate request parameters and payload structure. |
401 | Unauthorized | Check API key validity and expiration. |
403 | Forbidden | Ensure your API tier has access to this endpoint. |
429 | Rate Limited | Wait before retrying. Check Retry-After header. |
500 | Server Error | Transient issue. Retry with exponential backoff. |
Rate Limits
API requests are limited based on your plan tier. Limits are applied per API key.
- Starter: 100 requests / minute
- Professional: 1,000 requests / minute
- Enterprise: Custom limits & dedicated throughput
Current rate limit status is returned in response headers:
Webhooks
Configure webhook endpoints to receive real-time notifications for report generation completion, compliance deadline reminders, and emission threshold alerts.
Webhook payloads include a signature header (X-Env-Signature) for verification.