Dcycle API Introduction
The Dcycle API allows you to integrate carbon emissions calculation and tracking directly into your applications and workflows.Base URL
All API requests must be made to:Authentication
All API requests require authentication using your API key and organization ID:User Attribution: All operations are automatically attributed to the user who created the API key. This ensures proper audit trails and data governance without requiring an explicit user header.
Versioning
The API uses path-based versioning. Most endpoints are available under/v1/, with newer or enhanced endpoints under /v2/:
Response Format
The API returns responses in JSON format:HTTP Status Codes
Error Format
Application errors include a machine-readablecode and a human-readable detail:
Common Errors
403 Forbidden
403 Forbidden
You don’t have permission to access this resource. Verify your
x-organization-id header.404 Not Found
404 Not Found
The requested resource doesn’t exist. Check the endpoint URL and resource UUID.
422 Validation Error
422 Validation Error
The request body failed validation. Inspect the
detail array — each entry includes loc (field path), msg (error message), and type (error category).429 Too Many Requests
429 Too Many Requests
You’ve exceeded the endpoint’s rate limit. Wait the number of seconds specified in the
Retry-After response header before retrying.Pagination
Endpoints that return lists support pagination:page: Page number (default: 1)size: Items per page (default: 50, max: 100)
Data Types
UUIDs
All resource IDs use UUID v4 format:Dates
Dates use ISO 8601 format (YYYY-MM-DD):Timestamps
Timestamps use ISO 8601 format with UTC timezone:Rate Limits
Rate limits are applied per API key and endpoint. When rate-limited, the API returns429 Too Many Requests with a Retry-After header.
Response headers (included on rate-limited endpoints):
429 Too Many Requests
Most endpoints do not enforce rate limits. Endpoints that do (such as logistics calculations) include the rate limit headers in every response. Contact support if you need higher limits.
API Endpoints Overview
Core Data
- Organizations — Manage organization hierarchy and structure
- Facilities — Manage sites, offices, and production plants
- Projects — Organize emission reduction initiatives
Emission Sources
- Invoices — Process utility bills (electricity, gas, water)
- Vehicles — Track fleet, fuel consumption, and transport emissions
- Logistics — Calculate shipment emissions (ISO 14083)
- Logistic Hubs — Manage warehouses and distribution centers
- Purchases — Track supply chain emissions
- Employees — Manage employee commuting data
- Business Travels — Track business travel emissions
- Hotel Stays — Track hotel accommodation emissions
- Wastes — Manage waste generation and disposal
- Waste Water Treatments — Track wastewater emissions
Analysis & Reporting
- Emissions — View aggregated emission summaries
- Historical Emissions — Compare emissions across years
- Dashboards — Build custom visualizations
- LCA — Life Cycle Assessment portfolios
- Sold Products — Track product-level emissions
- Custom KPI — Define and track custom sustainability metrics
Data Management
Reference Data
- Transport — Transport types, methods, and reference data
- Vehicle Fuels — Fuel types and emission factors
- Unknown Vehicles — Vehicle type classification
Quick Start Example
Next Steps
Quickstart Guide
Make your first API call in 5 minutes
Authentication
Learn about API Keys and authentication
Facilities
Manage facilities and track emissions
Logistics
Calculate shipment emissions
MCP Server
Query your data from AI assistants via MCP