Skip to main content

Description

Buildings represent physical properties or locations associated with a company. Consumptions (electricity, heating, etc.) are linked to buildings.

Endpoints

MethodPathDescription
GET/api/v1/companies/{id}/buildingsList company buildings
GET/api/v1/companies/{id}/buildings/regosBuilding REGOs
GET/api/v1/companies/{id}/buildings/regos-dashboardREGOs dashboard
POST/api/v1/buildings/moveMove buildings to another company

Example: List buildings

curl -X GET "https://www.manglai.io/api/v1/companies/{companyId}/buildings?companyId={companyId}" \
  -H "Authorization: Bearer YOUR_TOKEN"

Usage in consumptions

When creating a consumption, you must provide the corresponding buildingId. Retrieve IDs using the buildings endpoint.