Documentation Index
Fetch the complete documentation index at: https://developers.manglai.io/llms.txt
Use this file to discover all available pages before exploring further.
Description
Consumptions are records of energy, fuels or activity (e.g. km driven). Emissions are calculated from them following the GHG Protocol.Endpoints
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/consumptions | List consumptions |
| GET | /api/v1/consumptions/{id} | Get a consumption |
| POST | /api/v1/consumptions | Create or update consumption |
| GET | /api/v1/consumptions/dashboard | Consumption dashboard |
Consumption types
- Invoices: Electricity, heat, fuels, water, waste
- Vehicles: Fleet consumption
- Surveys: Manual activity data
Required fields to create a consumption
id(UUID)entityId(invoice, vehicle or survey answer)categoryId(fromGET /api/v1/categories)startDate,endDate(ISO 8601)companyId,buildingIdquantity,unitType(kWh, l, km, etc.)

