# Manglai API Documentation ## Documentación ### Introducción - [Introducción](https://developers.manglai.io/intro.md): Bienvenido a la plataforma de desarrollo de Manglai — API REST e integración MCP para gestión ambiental - [Quickstart](https://developers.manglai.io/quickstart.md): Configura tu primera llamada a la API de Manglai en minutos - [Autenticación](https://developers.manglai.io/authentication.md): Cómo autenticar las solicitudes a la API de Manglai ### API REST - [Resumen de recursos](https://developers.manglai.io/api/es/resources/overview.md): Visión general de los recursos disponibles en la API de Manglai - [Companies (Empresas)](https://developers.manglai.io/api/es/resources/companies.md): Gestión de empresas y organizaciones en Manglai - [Buildings (Edificios)](https://developers.manglai.io/api/es/resources/buildings.md): Gestión de edificios y propiedades - [Consumptions (Consumos)](https://developers.manglai.io/api/es/resources/consumptions.md): Registro de consumos energéticos, operativos, de vehículos y maquinaria - [Emissions (Emisiones)](https://developers.manglai.io/api/es/resources/emissions.md): Consulta de emisiones calculadas - [Invoices (Facturas)](https://developers.manglai.io/api/es/resources/invoices.md): Crea facturas de electricidad, gas natural y gases refrigerantes - [Vehicles (Vehículos)](https://developers.manglai.io/api/es/resources/vehicles.md): Crea vehículos y maquinaria para registrar consumos asociados - [Categories (Categorías)](https://developers.manglai.io/api/es/resources/categories.md): Clasificación GHG Protocol - [Emission Factors (Factores de emisión)](https://developers.manglai.io/api/es/resources/emission-factors.md): Factores de emisión personalizados - [Otros recursos](https://developers.manglai.io/api/es/resources/other-resources.md): Recursos adicionales de la API ### Guías de integración - [Guía de integración API](https://developers.manglai.io/guides/integrate-api.md): Guía paso a paso para integrar todos los recursos de la API REST de Manglai en tu sistema - [Guía de integración MCP](https://developers.manglai.io/guides/integrate-mcp.md): Conecta Claude, Cursor, ChatGPT o Gemini a tus datos de Manglai y consúltalos en lenguaje natural ### Ejemplos - [Subida de facturas](https://developers.manglai.io/examples/upload-invoice.md): Sube facturas de suministros y calcula automáticamente huella de carbono, hídrica y de residuos - [Emisiones logísticas GLEC / ISO 14083](https://developers.manglai.io/examples/logistics.md): Registra servicios de transporte y calcula la huella logística según el estándar GLEC e ISO 14083 - [Emisiones de compras](https://developers.manglai.io/examples/expenses.md): Sincroniza tus gastos de compra y obtén las emisiones de Scope 3 asociadas a proveedores y categorías - [Viajes de negocio](https://developers.manglai.io/examples/business-travels.md): Sincroniza los viajes corporativos de tus empleados y obtén las emisiones de Scope 3 por tipo de transporte ### MCP (Model Context Protocol) - [Manglai MCP Server](https://developers.manglai.io/mcp/es/intro.md): Conecta asistentes de IA a tus datos ambientales de Manglai - [MCP Quickstart](https://developers.manglai.io/mcp/es/quickstart.md): Configura el MCP de Manglai en minutos - [Uso con mcp-remote](https://developers.manglai.io/mcp/es/mcp-remote.md): Conectar al MCP de Manglai usando el paquete mcp-remote ### MCP Tools - [Tools disponibles](https://developers.manglai.io/mcp/es/tools/overview.md): Referencia completa de las tools del MCP de Manglai por área - [Tools — Inventario](https://developers.manglai.io/mcp/es/tools/inventory.md): Instalaciones y flota de vehículos con el MCP de Manglai - [Tools — Consumos](https://developers.manglai.io/mcp/es/tools/consumptions.md): Facturas, gastos, viajes y registros de consumo con el MCP de Manglai - [Tools — Emisiones](https://developers.manglai.io/mcp/es/tools/emissions.md): Totales de carbono, factores y compensación con el MCP de Manglai - [Tools — Encuestas](https://developers.manglai.io/mcp/es/tools/surveys.md): Encuestas y respuestas con el MCP de Manglai - [Tools — Integraciones](https://developers.manglai.io/mcp/es/tools/integrations.md): Esquemas de importación y conectores con el MCP de Manglai - [Tools — Huella de producto](https://developers.manglai.io/mcp/es/tools/product-footprint.md): Productos BOM y materiales con el MCP de Manglai - [Tools — Cambios](https://developers.manglai.io/mcp/es/tools/changes.md): Historial de cambios y change log de metodología con el MCP de Manglai - [Tools — Informes](https://developers.manglai.io/mcp/es/tools/reports.md): Informes legales guardados con el MCP de Manglai - [Tools — Métricas personalizadas](https://developers.manglai.io/mcp/es/tools/custom-metrics.md): Definiciones y mediciones de métricas personalizadas con el MCP de Manglai - [Tools — Alertas](https://developers.manglai.io/mcp/es/tools/alerts.md): Alertas de calidad de datos con el MCP de Manglai ### Integraciones MCP - [Integración con Claude](https://developers.manglai.io/mcp/es/integrations/claude.md): Conectar el MCP de Manglai a Claude Desktop - [Integración con ChatGPT](https://developers.manglai.io/mcp/es/integrations/chatgpt.md): Conectar el MCP de Manglai a ChatGPT - [Integración con Gemini](https://developers.manglai.io/mcp/es/integrations/gemini.md): Conectar el MCP de Manglai a Google Gemini ## API Reference ### buildings - [Move](https://developers.manglai.io/api-reference/buildings/move.md): Move buildings and all related data to another company ### comments - [List Comments](https://developers.manglai.io/api-reference/comments/list-comments.md): Get a list of comments ### consumptions - [Get Consumptions Dashboard](https://developers.manglai.io/api-reference/consumptions/get-consumptions-dashboard.md): Get a summary of consumptions filtered by company, date range, categories, buildings and entities (vehicle, invoice, survey answer...). - [Retrieve a specific consumption record](https://developers.manglai.io/api-reference/consumptions/retrieve-a-specific-consumption-record.md): Fetch details of a consumption record by its unique identifier. - [List Consumptions](https://developers.manglai.io/api-reference/consumptions/list-consumptions.md): Get a list of consumptions - [Create or update a consumption record](https://developers.manglai.io/api-reference/consumptions/create-or-update-a-consumption-record.md): Creates a new consumption record or updates an existing one. For more information and see how to use this endpoint, see: https://manglai.notion.site/Consumptions-2af89a8b970b806e8359e8446b67f32e ### custom-metrics - [Get Custom Metrics Dashboard](https://developers.manglai.io/api-reference/custom-metrics/get-custom-metrics-dashboard.md): Get a summary of custom metrics - [List Custom Metrics](https://developers.manglai.io/api-reference/custom-metrics/list-custom-metrics.md): Get a list of custom metrics ### effluents - [Delete an effluent](https://developers.manglai.io/api-reference/effluents/delete-an-effluent.md): Delete an effluent record by its unique identifier. - [List Effluents](https://developers.manglai.io/api-reference/effluents/list-effluents.md): Get a list of effluents - [Insert or update an effluent](https://developers.manglai.io/api-reference/effluents/insert-or-update-an-effluent.md): Insert a new effluent record or update an existing one by its unique identifier. ### goals - [List Goals](https://developers.manglai.io/api-reference/goals/list-goals.md): Get a list of goals - [List Goals Tasks](https://developers.manglai.io/api-reference/goals/list-goals-tasks.md): Get a list of tasks - [Retrieve a specific scenario record](https://developers.manglai.io/api-reference/goals/retrieve-a-specific-scenario-record.md): Fetch details of a scenario record by its unique identifier. - [List Goals Scenarios](https://developers.manglai.io/api-reference/goals/list-goals-scenarios.md): Get a list of scenarios ### investments - [Get Investments Dashboard](https://developers.manglai.io/api-reference/investments/get-investments-dashboard.md): Get a summary of investments - [List Investments](https://developers.manglai.io/api-reference/investments/list-investments.md): Get a list of investments ### invoices - [List Invoices](https://developers.manglai.io/api-reference/invoices/list-invoices.md): Get a list of invoices - [Insert or update an invoice](https://developers.manglai.io/api-reference/invoices/insert-or-update-an-invoice.md): Creates a new invoice record or updates an existing one based on its unique identifier (`id`). This endpoint supports multiple invoice types (e.g. heat, fuel, electricity, wastes, etc.). - If the `id` exists, the record is updated. - If the `id` does not exist, a new record is inserted. ⚠️ **Special… - [Upload, scan & save an invoice](https://developers.manglai.io/api-reference/invoices/upload-scan-&-save-an-invoice.md): Uploads an invoice file together with its metadata. The system will automatically scan the document, extract relevant data, and create or update the invoice in the database. If any step of the process (upload, scan, or save) fails, an exception is thrown. - [Retrieve a specific invoice record](https://developers.manglai.io/api-reference/invoices/retrieve-a-specific-invoice-record.md): Fetch details of a invoice record by its unique identifier. - [Delete a specific invoice record](https://developers.manglai.io/api-reference/invoices/delete-a-specific-invoice-record.md): Deletes an invoice record by its unique identifier. - [Get Invoices Dashboard](https://developers.manglai.io/api-reference/invoices/get-invoices-dashboard.md): Get a summary of invoices filtered by company, date range and buildings. ### purchased-goods - [List Purchased Goods Expenses](https://developers.manglai.io/api-reference/purchased-goods/list-purchased-goods-expenses.md): Get a list of expenses ### auth - [Login](https://developers.manglai.io/api-reference/auth/login.md): Login a user - [Logout](https://developers.manglai.io/api-reference/auth/logout.md): Logout a user - [Who Am I](https://developers.manglai.io/api-reference/auth/who-am-i.md): Who am I ### business-travels - [Get Business Travels Dashboard](https://developers.manglai.io/api-reference/business-travels/get-business-travels-dashboard.md): Get dashboard data for business travels - [List Business Travels](https://developers.manglai.io/api-reference/business-travels/list-business-travels.md): Get a list of business travels ### categories - [List Categories](https://developers.manglai.io/api-reference/categories/list-categories.md): Get a list of categories ### certificates - [Retrieve a specific certificate record](https://developers.manglai.io/api-reference/certificates/retrieve-a-specific-certificate-record.md): Fetch details of a certificate record by its unique identifier. - [List Certificates](https://developers.manglai.io/api-reference/certificates/list-certificates.md): Get a list of certificates ### companies - [List Companies {id} Buildings](https://developers.manglai.io/api-reference/companies/list-companies--buildings.md): Get a list of buildings - [List Companies {id} Buildings Regos Dashboard](https://developers.manglai.io/api-reference/companies/list-companies--buildings-regos-dashboard.md): Get a list of regos dashboard - [List Companies {id} Buildings Regos](https://developers.manglai.io/api-reference/companies/list-companies--buildings-regos.md): Get a list of regos - [List Companies {id} Departments](https://developers.manglai.io/api-reference/companies/list-companies--departments.md): Get a list of departments - [Get Organization Limit](https://developers.manglai.io/api-reference/companies/get-organization-limit.md): Get a specific company organization limit by ID - [Update Company](https://developers.manglai.io/api-reference/companies/update-company.md): Update a specific company organization limit - [Delete Company](https://developers.manglai.io/api-reference/companies/delete-company.md): Delete a specific company organization limit - [List Companies {id} Organization Limits](https://developers.manglai.io/api-reference/companies/list-companies--organization-limits.md): Get a list of company organization limits - [Organization Limits](https://developers.manglai.io/api-reference/companies/organization-limits.md): Create or update a company organization limit - [List Companies {id} Year Configuration](https://developers.manglai.io/api-reference/companies/list-companies--year-configuration.md): Get a list of year configurations - [List Companies](https://developers.manglai.io/api-reference/companies/list-companies.md): Get a list of companies. Supports server-side filters; use pagination.total to count without downloading all rows. ### emission-factors - [List Emission Factors Custom](https://developers.manglai.io/api-reference/emission-factors/list-emission-factors-custom.md): Get a list of custom emission factors ### emissions - [Get Emissions Dashboard](https://developers.manglai.io/api-reference/emissions/get-emissions-dashboard.md): Get a summary of emissions filtered by company, date range, categories, buildings and entities. - [List Emissions](https://developers.manglai.io/api-reference/emissions/list-emissions.md): Get a list of emissions ### employees - [Retrieve a specific employee record](https://developers.manglai.io/api-reference/employees/retrieve-a-specific-employee-record.md): Fetch details of a employee record by its unique identifier. - [List Employees](https://developers.manglai.io/api-reference/employees/list-employees.md): Get a list of employees ### inputs - [Retrieve a specific custom input record](https://developers.manglai.io/api-reference/inputs/retrieve-a-specific-custom-input-record.md): Fetch details of a custom input record by its unique identifier. - [List Inputs Custom](https://developers.manglai.io/api-reference/inputs/list-inputs-custom.md): Get a list of custom inputs - [List Inputs Recommended](https://developers.manglai.io/api-reference/inputs/list-inputs-recommended.md): Get a list of recommended inputs ### service-footprint-glec - [Delete a GLEC service footprint entry](https://developers.manglai.io/api-reference/service-footprint-glec/delete-a-glec-service-footprint-entry.md): This endpoint deletes a GLEC service footprint entry. - [Retrieve the dashboard of the GLEC service footprint](https://developers.manglai.io/api-reference/service-footprint-glec/retrieve-the-dashboard-of-the-glec-service-footprint.md): Fetch the dashboard of the GLEC service footprint. - [Retrieve the list of GLEC service footprint](https://developers.manglai.io/api-reference/service-footprint-glec/retrieve-the-list-of-glec-service-footprint.md): Fetch the list of GLEC service footprint. - [Create a new GLEC service footprint entry](https://developers.manglai.io/api-reference/service-footprint-glec/create-a-new-glec-service-footprint-entry.md): This endpoint creates a new entry for the GLEC service footprint. ### suppliers - [List Suppliers](https://developers.manglai.io/api-reference/suppliers/list-suppliers.md): Get a list of suppliers - [Create Supplier](https://developers.manglai.io/api-reference/suppliers/create-supplier.md): Upsert a new supplier ### users - [List Users](https://developers.manglai.io/api-reference/users/list-users.md): Get a list of users - [Create User](https://developers.manglai.io/api-reference/users/create-user.md): Create a new user - [Update User](https://developers.manglai.io/api-reference/users/update-user.md): Update user data fast (lastLoginAt) - [Invite](https://developers.manglai.io/api-reference/users/invite.md): Invite a user ### vehicles - [Retrieve a specific vehicle record](https://developers.manglai.io/api-reference/vehicles/retrieve-a-specific-vehicle-record.md): Fetch details of a vehicle record by its unique identifier. - [Get Vehicles Dashboard](https://developers.manglai.io/api-reference/vehicles/get-vehicles-dashboard.md): Get a summary of vehicles - [List Vehicles](https://developers.manglai.io/api-reference/vehicles/list-vehicles.md): Get a list of vehicles - [Create Vehicle](https://developers.manglai.io/api-reference/vehicles/create-vehicle.md): Create or update a vehicle ### waste-operators - [List Waste Operators](https://developers.manglai.io/api-reference/waste-operators/list-waste-operators.md): Get a list of waste operators - [Create Waste Operator](https://developers.manglai.io/api-reference/waste-operators/create-waste-operator.md): Upsert a new waste operator ## OpenAPI Specs - [openapi](/openapi.json) > The links below point to documentation indexes. Follow each `/_llms/` index recursively until you reach documentation pages. ## Indexes - [English (103 pages)](https://developers.manglai.io/_llms/en.txt): Documentation, API Reference. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.