Getting access

The Enistic API is for Enistic customers. It reads the data held in your organisation's Enistic account, so there is nothing to call until you have one.

  1. Become a customer. If your organisation does not use Enistic yet, book a demo or contact us.
  2. Sign in to the platform at https://app.enistic.com.
  3. Get your API key. If you manage your own Enistic account, open Settings, then Integration, and generate a key; it is shown once, so copy it somewhere safe. If an Enistic consultant looks after your account, ask them to issue a key for you. If you cannot see Integration, ask your Enistic contact.
  4. Make your first call: see Quick Start.

There is no public sign-up and no anonymous access: every customer key belongs to one customer account and reads only that account's data.

Authentication

All requests require an API key. Pass it as a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_KEY

Alternatively, pass the key as a ?ref= query parameter on any endpoint.

Base URL

https://app.enistic.com

Key Concepts

  • Scopes — Scope 1: direct emissions (fuel, refrigerants). Scope 2: electricity. Scope 3: indirect (supply chain, travel, waste).
  • UK Financial Years — FY25 = April 2024 to March 2025. FY26 = April 2025 to March 2026.
  • Date format — Always YYYY-MM-DD. Common arguments: start_date, end_date, or time_period (current_year, last_year, last_month, last_12_months). last_12_months is a rolling window ending at last month’s close — the current, partially-complete month is excluded.
  • Units — Energy in kWh. Carbon in kgCO2e (use tCO2e for large values). Waste in kg. Water in litres. Distances in km.
  • Rate limit — 60 requests per minute per API key.

Using this API from an AI assistant

This section is written for AI assistants (ChatGPT, Claude, Copilot and others) helping someone use the Enistic API. People are welcome to read it too.

  • Access comes first. The API is for Enistic customers. If the person is not a customer yet, say so. A customer without a key can create one under Settings, then Integration, or ask their Enistic consultant to issue one. Either way, point them to Getting access. Do not suggest a sign-up page, a free key or a test account: there is none.
  • Never guess a key. Ask the person for theirs (it starts with enai_). Treat it like a password: do not repeat it back or put it in anything they might share.
  • Ask the API what it offers. GET https://app.enistic.com/api/ai-tools/v1/tools.php, sent with the key, returns every tool with its description and parameters. That list, not a memory of this page, is the truth for tool names and arguments. Assistants that can connect directly can use the MCP server at https://app.enistic.com/api/ai-tools/mcp/?ref=YOUR_API_KEY or the OpenAPI spec at https://app.enistic.com/api/ai-tools/v1/openapi.php?ref=YOUR_API_KEY.
  • One way to call. POST https://app.enistic.com/api/ai-tools/v1/execute.php with the body {"tool": "<name>", "arguments": {…}} and the header Authorization: Bearer YOUR_API_KEY.
  • Do not invent. Use only the tools and arguments the API lists. If no tool answers the question, say so.
  • The API only reads. None of the account's data can be changed or deleted through it. The one tool that sends anything, report_tool_gap, only tells the Enistic team that a question could not be answered.
  • Report figures as returned. Give each figure with its unit and the period it covers. Many results carry a basis or note saying how a figure was worked out or what it leaves out: pass that on instead of recalculating.
  • When a call fails. 401: the key is missing, wrong, expired or has been replaced; ask the person for their current key. 429: more than 60 requests in a minute; wait a minute and try again. 400: the request was not understood, or the tool name is unknown (the answer then lists the tools there are); list the tools again and use one of those. 422: the tool refused the arguments or could not answer; read the message in result.error, correct the arguments and try again. 503: the account is briefly unavailable, for example while it is being updated; wait a moment and try again.

Quick Start

All tools use a single endpoint: POST /api/ai-tools/v1/execute.php. Specify the tool name and its arguments:

# 1. Get your carbon footprint for FY 2024/25
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_carbon_footprint", "arguments": {"start_date": "2024-04-01", "end_date": "2025-03-31"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

# 2. List all your sites
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_sites_list", "arguments": {}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

# 3. Get energy data for a specific site
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_energy_by_site", "arguments": {"time_period": "current_year"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

Response wrapper: Every response is wrapped in {"success": true, "tool": "...", "result": {...}, "executed_at": "...", "duration_ms": N}. The result field contains the tool-specific data shown in the examples below.

ESOS Phase 4 walkthrough

An ESOS Phase 4 project on the platform is a workflow built from the ESOS4 template. Read the template once for the Instructions that say what each task and sub-task is for and what counts as done, then read the project itself, then the data the open tasks need. Prefer the Instructions to general knowledge of the scheme: they carry the dates and rules of Phase 4 (qualification date 31 December 2026, notification deadline 5 December 2027).

# 1. The template: tasks, sub-tasks and their Instructions (call once per conversation)
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_workflow_template", "arguments": {"template": "ESOS4"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

# 2. The project: every task and sub-task with progress, owners, due dates and evidence
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_workflow_progress", "arguments": {"search": "ESOS Phase 4"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

# 2b. The Playbook of one sub-task: its required checks, the tools allowed and the result to give (template_id from the project, sub_task_id = its template_step_id)
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_workflow_template", "arguments": {"template_id": 77, "sub_task_id": 1716, "include_playbook": true}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

# 3. The audits scheduled or done for the phase
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_audits", "arguments": {"standard": "ESOS Phase 4%"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

# 4. Energy per site over the twelve months the project uses (pass the dates explicitly)
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_energy_by_site", "arguments": {"start_date": "2026-01-01", "end_date": "2026-12-31"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

# 4b. The energy meters one by one over the same twelve months: the meters with months never typed in first
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_energy_meters", "arguments": {"start_date": "2026-01-01", "end_date": "2026-12-31", "only_missing_months": true, "sort_by": "missing_months"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

# 5. The company vehicles one by one over the ESOS reference period: missing months first
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_company_vehicles", "arguments": {"sort_by": "missing_months"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php

Join the project to the template by template_task_id and template_step_id. The energy and transport tools work on the dates you pass (or the calendar year when you pass none), so give them the project's own twelve-month period rather than letting them default. get_company_vehicles is the exception: with no dates it reads the ESOS reference period, and over that period it shows how its fleet kWh meets the ESOS report's. get_delivery_routes likewise defaults to the reporting period the Deliveries page opens on, and over any window shows how its delivery carbon meets the carbon footprint register; get_waste_types does the same for waste (the reporting period the Waste page opens on, the footprint module waste).

API Endpoints

GET /api/ai-tools/v1/tools.php

Returns all available tools with their names, descriptions, parameter schemas, and categories. Useful for discovering what data you can query.

curl -H "Authorization: Bearer YOUR_API_KEY" \
  https://app.enistic.com/api/ai-tools/v1/tools.php

Response: {"success": true, "tools": [...], "count": N}

POST /api/ai-tools/v1/execute.php

Execute a tool by name. This is the main endpoint — all 55 tools below are called through here.

FieldTypeDescription
tool
required
string Tool name from the registry (e.g. get_carbon_footprint)
arguments object Tool-specific parameters. See each tool below for available arguments.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool": "get_carbon_footprint", "arguments": {"start_date": "2024-04-01", "end_date": "2025-03-31"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
  "success": true,
  "tool": "get_carbon_footprint",
  "result": {
    "total_emissions": 48.23,
    "total_kgco2e": 48230.5,
    "unit": "tonnes CO2e",
    "breakdown": {
      "scope_1_tco2e": 12.45,
      "scope_2_tco2e": 18.67,
      "scope_3_tco2e": 17.11
    }
  },
  "executed_at": "2025-04-14T09:30:00Z",
  "duration_ms": 142
}
GET /api/ai-tools/v1/openapi.php

Returns the OpenAPI 3.1 specification. Use this to create a ChatGPT Custom GPT with Actions, or import into any OpenAPI-compatible tool.

curl https://app.enistic.com/api/ai-tools/v1/openapi.php?ref=YOUR_API_KEY
POST /api/ai-tools/mcp/

MCP (Model Context Protocol) server endpoint. Uses JSON-RPC 2.0. Compatible with Claude Code, Cursor, Windsurf, VS Code Copilot, and other MCP clients.

Supports methods: initialize, tools/list, tools/call

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "tools/list", "id": 1}' \
  https://app.enistic.com/api/ai-tools/mcp/?ref=YOUR_API_KEY

GET on this URL returns a plain-text documentation page for AI and humans.

Quick Reference — All 55 Tools

All tools are called via POST /api/ai-tools/v1/execute.php with {"tool": "tool_name", "arguments": {...}}

ToolCategoryDescription
get_carbon_footprint Carbon Footprint Get the user's carbon footprint data including total emissions in tonnes CO2e. Can retrieve data for specific date ra...
get_targets Carbon Footprint The carbon reduction target set on the Targets page and progress against it: the target type (standard, one reduction...
get_emission_factors Carbon Footprint Which carbon (emission) factor applies to an item for a year or a month: kg CO2e per unit (base, well-to-tank, transm...
get_carbon_by_module Carbon Footprint Get detailed carbon emissions breakdown by individual module from the carbon register: every row the carbon footprint...
get_energy_data Energy Get the user's energy consumption in kWh, with electricity, gas and other fuels apart, and the carbon of that energy ...
get_energy_by_site Energy Get energy consumption broken down by site, each site with its kWh, the carbon of that energy and its fuels. Can filt...
get_energy_comparison Energy Compare energy between two periods: total kWh and carbon, electricity, gas and other fuels, each site, and with inclu...
get_energy_by_fuel Energy Energy by fuel type over a period, with the renewable share of electricity and what the energy cost. Each fuel (Elect...
get_energy_meters Energy Get the energy meters one by one over a window (default: the reporting period the Energy and Fuels page opens on): ea...
get_site_data Energy Get energy and carbon data for specific site(s) or all sites. energy_data is the site's energy in kWh as the Energy a...
get_sites_list Sites Get a list of the user's company sites/locations with basic information. Set include_details to attach postcode, floo...
get_audit_trail Audits The audit trail: who changed what and when, newest first, as the Audit Trail page under Settings lists it. Each entry...
get_audits Audits List audits from the audits table (on-site compliance audits such as ESOS Phase 3/4 or SECR). Each row includes the s...
get_esos_scope ESOS Get the ESOS scope of this organisation for a phase (default: the phase the account is working in, Phase 4): the phas...
get_esos_opportunities ESOS Get the ESOS energy saving opportunities (the ESO register) as the ESO report prints them: every opportunity with its...
get_esos_audit_findings ESOS Get what one ESOS site audit found, as the Site Audit Report prints it: the audit (status, stage, surveyor, consultan...
get_transport_data Transport Get company vehicle (fleet) emissions as totals by vehicle type: carbon, kWh, distance, fuel cost and litres as store...
get_transport_comparison Transport Compare company vehicle (fleet) emissions between two time periods as totals by vehicle type: carbon, energy, distanc...
get_company_vehicles Transport Get the company vehicles vehicle by vehicle, as the Company vehicles page holds them, over a window (default: the ESO...
get_company_vehicles_comparison Transport Compare the company vehicles between two periods, vehicle by vehicle: which vehicles joined or resumed, which left (e...
get_public_transport_data Transport Get business travel by public transport (bus, train, and tram or tube) over a window, by default the reporting period...
get_staff_mileage_data Transport Get staff business mileage (the grey fleet: employees driving their own cars for work) claimant by claimant, as the S...
get_delivery_data Deliveries List the delivery routes (delivery types) with their emissions over a window (default: the reporting period the Deliv...
get_delivery_type_details Deliveries Get one delivery route (delivery type) by id with its journey legs (vehicle, distance, whether the factor needs the r...
get_delivery_carbon_summary Deliveries Delivery emissions over a window (default: the reporting period the Deliveries page opens on; pass start_date and end...
get_delivery_routes Deliveries Get the delivery routes route by route over a window (default: the reporting period the Deliveries page opens on): ea...
get_waste_data Waste Get waste totals with a breakdown by kind of waste and destination (landfill, recycle, combustion, composting, anaero...
get_waste_by_site Waste Get waste broken down by site over a window: each site's total weight, recycling rate, destination breakdown (landfil...
get_waste_comparison Waste Compare waste between two periods: total weight, recycling rate, kilograms by destination and, new, carbon as the Was...
get_waste_types Waste Get the waste types type by type over a window (default: the reporting period the Waste page opens on): each type wit...
get_supply_chain_data Supply Chain Supply chain carbon and spend by Scope 3 category: what was bought from suppliers over a period, worked out as the ca...
get_supplier_list Supply Chain List suppliers with their tier (1/2/3), grade (a+, a, a-, b, c or d), verification status, carbon module info and how...
get_supply_chain_comparison Supply Chain Compare supply chain carbon and spend between two periods: the totals and each Scope 3 section with the absolute and ...
get_supplier_emissions Supply Chain Suppliers ranked by the carbon of what was bought from them over a period, worked out as the carbon footprint works i...
get_flight_data Travel Get business flights route by route over a window (default: the reporting period the Flights page opens on): each rou...
get_hotel_stays_data Travel Get hotel stays over a window (default: the reporting period the Hotel stays page opens on): the room nights typed in...
get_commuting_data Travel Employee commuting emissions as the carbon footprint holds them. Accounts that run the commuting survey get two figur...
get_water_data Water & Custom Modules Get water over a window (default: the reporting period the Water page opens on): purchased water and waste water in c...
get_other_module_data Water & Custom Modules Get the quantity and the carbon of one of three modules over a window (default: the reporting period the module's pag...
get_custom_modules_list Water & Custom Modules List the account's own custom modules (modules the account set up itself, each with a name, a unit and a carbon facto...
get_custom_module_data Water & Custom Modules Get the figures of one of the account's own custom modules (a module the account set up itself, with its own name, un...
get_workflows Workflows Get a list of projects/workflows, with options to filter by status, year, or search text. Returns high-level workflow...
get_workflow_incomplete_items Workflows Analyze a specific workflow/project to find incomplete actions, unassigned tasks, missing due dates, and overdue item...
identify_workflow_required_data_types Workflows Analyze a list of incomplete workflow action names and identify what types of platform data need to be provided (e.g....
get_workflow_progress Workflows Get the full progress of ONE project (workflow): every task and sub-task with its id, checklist (description), progre...
get_workflow_template Workflows Get a project template (e.g. ESOS Phase 4, code ESOS4) as its tasks and sub-tasks, each with the Instructions that ex...
get_users Account The users on this account as the Users page lists them: name, email, job title, role (Admin, Manager, Contributor, Vi...
get_reports Account The reports this account holds as the Reports page lists them: title, type (detailed carbon report as a Word document...
get_my_data_tasks Account The data this login has been given to enter: one row for each box on its Home page, with the site, the kind of data (...
get_files Account The files of the Files page ("My files"): name, kind (PDF, Excel spreadsheet, image…), the folder it is in, size, w...
get_improvement_projects Other Get the list of carbon reduction / improvement projects defined for this organisation. Returns each project's name, s...
get_meter_list Other Get the list of energy meters for this organisation, optionally filtered by site or kind of fuel. Returns each meter'...
get_estimated_annual_consumption Other Get the estimated annual energy consumption (kWh) for one or more meters, taken from the financial year that holds th...
get_refrigerant_data Other Get refrigerant losses gas by gas over a window (default: the reporting period the Refrigerants page opens on): each ...
report_tool_gap Other Report a gap in your available tools. Call this when a user asks a question that IS within your scope (sustainability...

Carbon Footprint

Query your total carbon footprint across all scopes, the reduction target with progress against it, the emission factors that apply, and the improvement projects that reduce emissions.
POST get_carbon_footprint
Get the user's carbon footprint data including total emissions in tonnes CO2e. Can retrieve data for specific date ranges including UK financial years (FY 2024 or FY 24/25 = April 2024 to March 2025).
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format (e.g., "2024-04-01" for FY 24/25). With no dates and no time_period, the reporting period the platform pages open on is used.
end_date string End date in YYYY-MM-DD format (e.g., "2025-03-31" for FY 24/25). With no dates and no time_period, the reporting period the platform pages open on is used.
time_period string
enum: reporting_period, current_year, last_year, last_month, last_12_months
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year). "last_12_months" is a rolling 12-month window ending at last month's close (current month excluded because it's typically incomplete).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_carbon_footprint","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_emissions": 48.23,
    "total_kgco2e": 48230.5,
    "unit": "tonnes CO2e",
    "time_period": "FY 2024/25",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "breakdown": {
        "scope_1_tco2e": 12.45,
        "scope_2_tco2e": 18.67,
        "scope_3_tco2e": 17.11
    },
    "last_updated": "2025-04-14 09:30:00"
}
POST get_targets
The carbon reduction target set on the Targets page and progress against it: the target type (standard, one reduction by the target year, or science-based, a yearly rate per scope group), the base year, the target year (the platform treats it as the Net Zero year), the rates, then year by year the target line and the actual scope 1, 2 and 3 tonnes from the carbon footprint register, the gap to the target and whether the year is on track, with a summary (status, reduction so far, reduction required). Use it for: do we have a target, what is our Net Zero target, are we on track, how much have we cut since the base year, what do we need to cut by. Years are the reporting year that ends in the year named. If no target has been applied it says so and shows the platform defaults.
ParameterTypeDescription
include_years boolean Include the year-by-year table (default true). Pass false for the settings and the summary only.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_targets","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "target": {
        "is_set": true,
        "type": "standard",
        "base_year": 2022,
        "target_year": 2030,
        "net_zero_year": 2030,
        "reduction_by_target_year_pct": 45,
        "scope12_pct_per_year": 5.63,
        "scope3_pct_per_year": 5.63,
        "growth_pct_per_year": 0,
        "where_to_change": {
            "label": "Targets",
            "url": "/plato/carbonPlanner2.php"
        }
    },
    "summary": {
        "status": "on track",
        "baseline_year": 2022,
        "baseline_total_t": 1098.117,
        "latest_complete_year": 2025,
        "latest_total_t": 703.95,
        "latest_target_total_t": 912.81,
        "latest_months_with_data": "12 of 12",
        "reduction_so_far_pct": 35.9,
        "reduction_required_pct": 45,
        "years_left": 4
    },
    "years_are": "the reporting year that ENDS in the year named (2025-04 to 2026-03 is year 2026); the shape comes from the account ESOS scoping period",
    "baseline": {
        "year": 2022,
        "scope12_t": 936.257,
        "scope3_t": 161.86,
        "total_t": 1098.117,
        "source": "the carbon footprint register for the base reporting year"
    },
    "years": [
        {
            "year": 2022,
            "window_start": "2021-04-01",
            "window_end": "2022-03",
            "is_complete": true,
            "months_in_window": 12,
            "actual": {
                "scope1_t": 600.1,
                "scope2_t": 336.157,
                "scope3_t": 161.86,
                "scope12_t": 936.257,
                "total_t": 1098.117,
                "months_with_data": 12
            },
            "target": {
                "scope12_t": 936.257,
                "scope3_t": 161.86,
                "total_t": 1098.117
            },
            "vs_target_t": 0,
            "vs_target_pct": 0,
            "on_track": true
        },
        {
            "year": 2025,
            "window_start": "2024-04-01",
            "window_end": "2025-03",
            "is_complete": true,
            "months_in_window": 12,
            "actual": {
                "scope1_t": 380.2,
                "scope2_t": 210.75,
                "scope3_t": 113,
                "scope12_t": 590.95,
                "total_t": 703.95,
                "months_with_data": 12
            },
            "target": {
                "scope12_t": 778.12,
                "scope3_t": 134.69,
                "total_t": 912.81
            },
            "vs_target_t": -208.86,
            "vs_target_pct": -22.9,
            "on_track": true
        },
        {
            "year": 2030,
            "window_start": "2029-04-01",
            "window_end": "2030-03",
            "is_complete": false,
            "months_in_window": 12,
            "actual": null,
            "target": {
                "scope12_t": 514.94,
                "scope3_t": 89.02,
                "total_t": 603.96
            },
            "vs_target_t": null,
            "vs_target_pct": null,
            "on_track": null
        }
    ],
    "notes": [],
    "unit": "tonnes CO2e"
}
POST get_emission_factors
Which carbon (emission) factor applies to an item for a year or a month: kg CO2e per unit (base, well-to-tank, transmission and distribution, total) for a fuel, vehicle type, waste type, flight class, delivery vehicle, hotel night or water, with the validity window (the DEFRA year of the platform set) and the source: this account's own custom factor (listed first, because it wins) or the platform set. Use it for: what factor is used for electricity or natural gas, which DEFRA year applies, why is diesel X kg per litre, do we have custom factors, what does the platform use for landfill. The footprint keeps only the resulting kg, so the factor is re-derived from the tables now. Rows are named as DEFRA names them (Diesel (litres), Electricity kWh, Natural gas (kWh)); search by a word of the name.
ParameterTypeDescription
search string A word or two of the item name (diesel, electricity, natural gas, landfill, long haul, van). Matches the row name, its group, its description and its category, any case.
category string Narrow to one table category: energy, transport (company vehicles), delivery, waste, flight, hotelStay, water, aircon (refrigerants), genericModule, customModule. Optional; one of search or category is needed.
year integer Rows in force during this calendar year (default: the year the reporting period ends in).
month string YYYY-MM: rows in force in this month instead of the whole year.
country string A country code for a site outside the UK (FR, DE…). Default UK, which also includes rows with no country, as the lookup does.
limit integer The most rows per source (default 25, max 100).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_emission_factors","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "in_force_during": "2025",
        "country": "UK (and rows with no country)"
    },
    "search": {
        "text": "diesel",
        "category": null
    },
    "factors": [
        {
            "source": "this account (custom factor)",
            "category": "supplyChain",
            "sub_category": "spend",
            "name": "Acme Diesel Ltd supplier factor",
            "unit": "\u00a3",
            "country": "UK",
            "kg_co2e_per_unit": {
                "base": 0.21,
                "wtt": 0.02,
                "tnd": 0,
                "total": 0.23
            },
            "applies_to": "supplier #42",
            "custom_source": {
                "type": "supplierReport",
                "value": "Acme 2025 EPD"
            },
            "valid_from": "2025-01-01",
            "valid_to": "2025-12-31",
            "set_year": 2025
        },
        {
            "source": "platform factor set",
            "category": "energy",
            "sub_category": "systemFactor",
            "name": "Diesel (litres)",
            "unit": "litres",
            "country": "UK",
            "kg_co2e_per_unit": {
                "base": 2.57082,
                "wtt": 0.61101,
                "tnd": 0,
                "total": 3.18183
            },
            "description": null,
            "valid_from": "2025-01-01",
            "valid_to": "2025-12-31",
            "set_year": 2025
        }
    ],
    "count": {
        "custom": 1,
        "platform": 1,
        "limit": 25
    },
    "how_the_platform_chooses": "For each month, in order: a custom factor this account set for the exact item (for example one supplier), else a custom factor this account set for the category, else the platform set (DEFRA-based; the validity window says which year it is). A UK row also applies to a site with no country; another country matches exactly. Custom rows are listed first because they win.",
    "units": "kg CO2e per unit: base (direct), wtt (well-to-tank), tnd (transmission and distribution, electricity), total = base + wtt + tnd",
    "notes": [
        "The carbon footprint stores only the resulting kg, never the factor, so this is the factor the lookup gives for the item and period now; a figure calculated earlier used the set in force then."
    ]
}
POST get_carbon_by_module
Get detailed carbon emissions breakdown by individual module from the carbon register: every row the carbon footprint counts, so the total equals get_carbon_footprint (rows with no site, such as the commuting survey, included). Each fuel, vehicle type and module is its own row, named as the platform names it (Electricity kWh, Natural Gas (kWh), Plug-in hybrid car, Commuting, Working from home, Waste, Refrigerant gases), with its Well-to-Tank (WTT) and Transmission & Distribution (T&D) rows. Can filter by a word of the module name, by scope, or by category (base/wtt/tnd). Section 3.3 or 3.03 in the carbon register contains the WTT and T&D emissions - use the category filter to see these.
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format
end_date string End date in YYYY-MM-DD format
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year).
module_name string Only the rows whose module name or label contains this text, any case: a word such as electricity, gas, commuting, working from home, waste, water, refrigerant, flights, staff mileage, or an exact module name (airConLeaks, wasteWater). Energy rows are named by fuel (Electricity kWh, Natural Gas (kWh)) and vehicle rows by vehicle type, so "energy" or "transport" match nothing: use the scope filter or the energy and vehicle tools for those totals. If not provided, returns ALL modules.
category string
enum: all, base, wtt, tnd
Filter by emission category: "base" for direct emissions only, "wtt" for Well-to-Tank only, "tnd" for Transmission & Distribution only, "all" (default) for everything. WTT and T&D are stored as section 3.3 in the carbon register.
scope string
enum: 1, 2, 3
Filter by scope (1, 2, or 3). If not provided, returns all scopes.
sort_by string
enum: carbon, module, scope
Field to sort results by. Defaults to carbon (highest first).
sort_order string
enum: asc, desc
Sort order: ascending or descending. Defaults to desc.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_carbon_by_module","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","category":"all","scope":"1","sort_by":"carbon","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_carbon_kgco2e": 48230.5,
    "total_carbon_tco2e": 48.23,
    "module_count": 5,
    "breakdown": [
        {
            "module_name": "Electricity-kWh",
            "module_label": "Electricity kWh",
            "scope": "Scope 2",
            "section": "2",
            "carbon_kgco2e": 22500,
            "carbon_tco2e": 22.5,
            "percentage_of_total": 46.65
        },
        {
            "module_name": "commutingSurveyWorkInOffice",
            "module_label": "Commuting",
            "scope": "Scope 3",
            "section": "3.07",
            "carbon_kgco2e": 12000,
            "carbon_tco2e": 12,
            "percentage_of_total": 24.88
        }
    ],
    "notes": [
        "Rows the footprint holds with no site (the commuting survey, for example) are counted, as the carbon footprint total counts them."
    ],
    "time_period": "reporting_period",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "filters": {
        "module_name": null,
        "scope": null
    },
    "sorted_by": "carbon",
    "sort_order": "desc",
    "last_updated": "2025-04-14 09:30:00"
}

Energy

Electricity, gas, and other fuel consumption data. Query by site, compare periods, list meters, and get estimated annual usage.
POST get_energy_data
Get the user's energy consumption in kWh, with electricity, gas and other fuels apart, and the carbon of that energy (base, well-to-tank, T&D, and by scope). The figures are the Energy and Fuels page's for the window: the default is the reporting period the page opens on; pass dates (UK financial years: FY 2024 or FY 24/25 = April 2024 to March 2025) or a preset. Electricity is every electricity fuel type (kWh or money, renewable, solar, wind, generated), gas every natural gas fuel type (kWh, m3, kg, money); refrigerant gases are not energy and are left out. For the meters one by one, their months and the months never typed in, use get_energy_meters; for each fuel on its own, the renewable share or the cost, use get_energy_by_fuel.
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format
end_date string End date in YYYY-MM-DD format
time_period string
enum: reporting_period, current_year, last_year, last_month, last_12_months
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year). "last_12_months" is a rolling 12-month window ending at last month's close (current month excluded because it's typically incomplete).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_energy_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_energy_kwh": 1245800.5,
    "total_energy_mwh": 1245.8,
    "time_period": "reporting_period",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "breakdown": {
        "electricity_kwh": 890500.25,
        "gas_kwh": 320100.1,
        "other_kwh": 35200.15
    },
    "breakdown_basis": "electricity_kwh is every electricity fuel type (metered in kWh or entered in money, renewable, solar, wind and generated electricity included), gas_kwh every natural gas fuel type (kWh, m3, kg or money), other_kwh every other fuel. A meter entered in money holds an estimate of its kWh. Fuel types that are not energy (refrigerant gases) are left out.",
    "carbon_kgco2e": 318420.6,
    "carbon_tco2e": 318.421,
    "carbon_breakdown": {
        "base_kgco2e": 251900.4,
        "wtt_kgco2e": 50570.1,
        "tnd_kgco2e": 15950.1,
        "scope_1_kgco2e": 67490.3,
        "scope_2_kgco2e": 184410.1,
        "scope_3_kgco2e": 66520.2
    },
    "data_quality": {
        "meters": 14,
        "meters_with_missing_months": 2,
        "months_missing": 5,
        "meters_entered_in_money": 0,
        "kwh_from_meters_entered_in_money": 0,
        "meters_with_no_unit_size": 0
    },
    "not_on_the_page": {
        "meters": 0,
        "kwh": 0,
        "note": "Every meter that holds a reading in the period is listed."
    },
    "period": {
        "start": "2024-04-01",
        "end": "2025-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2024-04-01",
            "end": "2025-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2024-04-01",
        "list_end": "2025-03-31",
        "last_month_ended": "2025-03"
    },
    "basis": {
        "figures": "The kWh of the meters the Energy and Fuels page lists for the window, as the page adds them up \u2026",
        "kinds": "\u2026",
        "carbon": "Each month's amount times the fuel type's kg CO2e per unit for that month: base, well-to-tank and transmission and distribution losses \u2026",
        "more": "\u2026"
    },
    "last_updated": "2025-04-14 09:30:00"
}
POST get_energy_by_site
Get energy consumption broken down by site, each site with its kWh, the carbon of that energy and its fuels. Can filter by supply type (electricity, gas, or all) and sort by site name, total energy or carbon. The figures are the Energy and Fuels page's for the window (default: the reporting period the page opens on; pass dates, including UK financial years, or a preset). Electricity is every electricity fuel type (kWh or money, renewable, solar, wind, generated), gas every natural gas fuel type (kWh, m3, kg, money); refrigerant gases are not energy and are left out. It lists sites, not meters or months: for those use get_energy_meters.
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format
end_date string End date in YYYY-MM-DD format
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year).
supply_type string
enum: electricity, gas, all
Filter by kind of fuel: electricity (every electricity fuel type) or gas (every natural gas fuel type). Defaults to all.
sort_by string
enum: site_name, total_energy, total_carbon
Field to sort by. Defaults to total_energy.
sort_order string
enum: asc, desc
Sort direction. Defaults to desc.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_energy_by_site","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","supply_type":"electricity","sort_by":"site_name","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_energy_kwh": 1245800.5,
    "total_energy_mwh": 1245.8,
    "carbon_kgco2e": 318420.6,
    "carbon_tco2e": 318.421,
    "site_count": 3,
    "supply_type_filter": "all",
    "time_period": "reporting_period",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "sorted_by": "total_energy",
    "sort_order": "desc",
    "sites": [
        {
            "site_id": 1,
            "site_name": "Head Office",
            "total_kwh": 620400,
            "total_mwh": 620.4,
            "carbon_kgco2e": 161210.4,
            "carbon_tco2e": 161.21,
            "fuel_breakdown": [
                {
                    "supply_type": "Electricity kWh",
                    "fuel_type": "Electricity",
                    "kind": "electricity",
                    "kwh": 480200,
                    "mwh": 480.2,
                    "carbon_kgco2e": 131980.2
                },
                {
                    "supply_type": "Natural gas (m3)",
                    "fuel_type": "Natural gas (m3)",
                    "kind": "gas",
                    "kwh": 140200,
                    "mwh": 140.2,
                    "carbon_kgco2e": 29230.2
                }
            ]
        }
    ],
    "not_on_the_page": {
        "meters": 0,
        "kwh": 0,
        "note": "Every meter that holds a reading in the period is listed."
    },
    "period": {
        "start": "2024-04-01",
        "end": "2025-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "\u2026": "\u2026"
    },
    "basis": {
        "figures": "\u2026",
        "kinds": "\u2026",
        "carbon": "\u2026",
        "more": "\u2026"
    },
    "last_updated": "2025-04-14 09:30:00"
}
POST get_energy_comparison
Compare energy between two periods: total kWh and carbon, electricity, gas and other fuels, each site, and with include_meters each meter, with absolute and percentage changes. Pass the four dates (year on year, month on month, any two periods), or none of them to compare the reporting period with the same number of months before it. The figures are the Energy and Fuels page's for each window. comparison_caveats says what to check before calling a difference a real change: periods of different length, a period with no reading at all or not yet ended, months never typed in, meters entered in money. Electricity is every electricity fuel type, gas every natural gas fuel type; refrigerant gases are not energy and are left out.
ParameterTypeDescription
period1_start string Start date of the first (baseline) period, YYYY-MM-DD (or YYYY-MM for a whole month). Pass all four dates or none.
period1_end string End date of the first (baseline) period, YYYY-MM-DD (or YYYY-MM). At most 36 months after its start.
period2_start string Start date of the second (comparison) period, YYYY-MM-DD (or YYYY-MM).
period2_end string End date of the second (comparison) period, YYYY-MM-DD (or YYYY-MM). At most 36 months after its start.
supply_type string
enum: electricity, gas, all
Filter by kind of fuel: electricity (every electricity fuel type: kWh or money, renewable, solar, wind, generated) or gas (every natural gas fuel type: kWh, m3, kg, money). Defaults to all. Refrigerant gases are not energy and are always left out.
include_meters boolean Also return the meters whose kWh changed most between the two periods (default false).
limit integer How many meters include_meters returns (default 20, at most 200), biggest change first.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_energy_comparison","arguments":{"supply_type":"electricity"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "supply_type_filter": "all",
    "periods_defaulted": false,
    "period1": {
        "date_range": {
            "start": "2023-04-01",
            "end": "2024-03-31"
        },
        "months": 12,
        "meters": 13,
        "total_kwh": 1350000,
        "total_mwh": 1350,
        "breakdown": {
            "electricity_kwh": 950000,
            "gas_kwh": 350000,
            "other_kwh": 50000
        },
        "carbon_kgco2e": 344800,
        "carbon_tco2e": 344.8
    },
    "period2": {
        "date_range": {
            "start": "2024-04-01",
            "end": "2025-03-31"
        },
        "months": 12,
        "meters": 14,
        "total_kwh": 1245800.5,
        "total_mwh": 1245.8,
        "breakdown": {
            "electricity_kwh": 890500.25,
            "gas_kwh": 320100.1,
            "other_kwh": 35200.15
        },
        "carbon_kgco2e": 318420.6,
        "carbon_tco2e": 318.421
    },
    "change": {
        "total_kwh": -104199.5,
        "total_mwh": -104.2,
        "total_percentage": -7.72,
        "direction": "decrease",
        "carbon_kgco2e": -26379.4,
        "carbon_percentage": -7.65
    },
    "breakdown_change": {
        "electricity": {
            "change_kwh": -59499.75,
            "change_percentage": -6.26,
            "direction": "decrease"
        },
        "gas": {
            "change_kwh": -29899.9,
            "change_percentage": -8.54,
            "direction": "decrease"
        },
        "other": {
            "change_kwh": -14799.85,
            "change_percentage": -29.6,
            "direction": "decrease"
        }
    },
    "by_site": [
        {
            "site_id": 1,
            "site_name": "Head Office",
            "period1_kwh": 690000,
            "period2_kwh": 620400,
            "period1_carbon_kgco2e": 178300,
            "period2_carbon_kgco2e": 161210.4,
            "change_kwh": -69600,
            "change_percentage": -10.09,
            "direction": "decrease",
            "change_carbon_kgco2e": -17089.6,
            "status": "in_both"
        },
        {
            "site_id": 4,
            "site_name": "New Depot",
            "period1_kwh": 0,
            "period2_kwh": 41200,
            "period1_carbon_kgco2e": 0,
            "period2_carbon_kgco2e": 11330,
            "change_kwh": 41200,
            "change_percentage": null,
            "direction": "increase",
            "change_carbon_kgco2e": 11330,
            "status": "only_in_period_2"
        }
    ],
    "comparison_caveats": [
        "In period 2, 2 meters have months never typed in (5 meter-months): part of a difference may be missing data. get_energy_meters names them."
    ],
    "basis": {
        "figures": "\u2026",
        "kinds": "\u2026",
        "carbon": "\u2026",
        "more": "\u2026"
    },
    "last_updated": "2025-04-14 09:30:00"
}
POST get_energy_by_fuel
Energy by fuel type over a period, with the renewable share of electricity and what the energy cost. Each fuel (Electricity kWh, Renewable Electricity (kWh), Natural Gas (kWh), diesel, custom fuels) has its kWh, the amount in its own unit, its meters and its cost. The platform keeps no bill amounts: the cost is an estimate, kWh times the price per kWh set under Default energy price (or the platform default), except for meters entered in money, where it is the amounts typed; other fuels are not costed. Use it for: how much did we spend on electricity and gas, what does our energy cost, how much of our electricity is renewable, energy by fuel type. Always say the cost is an estimate and which price it used. Its kWh are the Energy and Fuels page's, the same as get_energy_data and get_energy_meters for the same dates, and each fuel carries its carbon. For meter by meter figures use get_energy_meters. Defaults to the reporting period the Energy page opens on.
ParameterTypeDescription
start_date string Start date YYYY-MM-DD or YYYY-MM (with end_date; omit both for the reporting period). Whole months are read.
end_date string End date YYYY-MM-DD.
site_id integer Only this site (an id from get_sites_list).
include_months boolean Also return kWh per month by kind of fuel (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_energy_by_fuel","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2025-04-01",
        "end": "2026-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2025-04-01",
            "end": "2026-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2025-04-01",
        "list_end": "2026-03-31",
        "last_month_ended": "2026-10"
    },
    "currency": "\u00a3",
    "fuels": [
        {
            "fuel": "Electricity kWh",
            "kind": "electricity",
            "unit": "kWh",
            "entered_in_money": false,
            "kwh": 412000,
            "amount_in_unit": 412000,
            "meters": 6,
            "months_with_data": 12,
            "cost": 111363.6,
            "cost_basis": "estimate: kWh times the platform default (no price is set under Default energy price)",
            "price_per_kwh": 0.2703,
            "carbon_kgco2e": 95584,
            "carbon_tco2e": 95.584,
            "base_kgco2e": 72924,
            "wtt_kgco2e": 16356.4,
            "tnd_kgco2e": 6303.6
        },
        {
            "fuel": "Natural Gas (kWh)",
            "kind": "gas",
            "unit": "kWh",
            "entered_in_money": false,
            "kwh": 230000,
            "amount_in_unit": 230000,
            "meters": 3,
            "months_with_data": 9,
            "cost": 16077,
            "cost_basis": "estimate: kWh times the platform default (no price is set under Default energy price)",
            "price_per_kwh": 0.0699,
            "carbon_kgco2e": 49015.3,
            "carbon_tco2e": 49.015,
            "base_kgco2e": 42067,
            "wtt_kgco2e": 6948.3,
            "tnd_kgco2e": 0
        },
        {
            "fuel": "Renewable Electricity (kWh)",
            "kind": "renewable_electricity",
            "unit": "kWh",
            "entered_in_money": false,
            "kwh": 88000,
            "amount_in_unit": 88000,
            "meters": 1,
            "months_with_data": 12,
            "cost": 23786.4,
            "cost_basis": "estimate: kWh times the platform default (no price is set under Default energy price)",
            "price_per_kwh": 0.2703,
            "carbon_kgco2e": 4840,
            "carbon_tco2e": 4.84,
            "base_kgco2e": 0,
            "wtt_kgco2e": 3493.6,
            "tnd_kgco2e": 1346.4
        }
    ],
    "totals": {
        "kwh": 730000,
        "electricity_kwh": 500000,
        "of_which_renewable_electricity_kwh": 88000,
        "renewable_share_of_electricity_pct": 17.6,
        "gas_kwh": 230000,
        "other_fuels_kwh": 0,
        "carbon_kgco2e": 149439.3,
        "carbon_tco2e": 149.439,
        "base_kgco2e": 114991,
        "wtt_kgco2e": 26798.3,
        "tnd_kgco2e": 7650,
        "scope_1_kgco2e": 42067,
        "scope_2_kgco2e": 72924,
        "scope_3_kgco2e": 34448.3
    },
    "cost": {
        "estimated_electricity": 135150,
        "estimated_gas": 16077,
        "typed_for_meters_entered_in_money": 0,
        "total": 151227,
        "is_estimate": true,
        "kwh_not_costed": 0,
        "prices_per_kwh": {
            "electricity": {
                "price": 0.2703,
                "source": "the platform default (no price is set under Default energy price)"
            },
            "gas": {
                "price": 0.0699,
                "source": "the platform default (no price is set under Default energy price)"
            }
        },
        "where_prices_are_set": {
            "label": "Default energy price",
            "url": "/account/energy_settings.php"
        }
    },
    "months": null,
    "site_id": null,
    "notes": [
        "The platform keeps no bill amounts or tariffs: a cost here is an estimate (kWh times a price per kWh), except for a meter entered in money, where it is the amounts typed. Standing charges, taxes and tariff changes are not in it.",
        "Renewable electricity counts only the meters recorded with a renewable fuel type (renewable, solar or wind electricity). A green tariff recorded on a plain electricity meter cannot be told apart, and this is not a market-based Scope 2 figure."
    ],
    "time_period": "reporting_period",
    "date_range": {
        "start": "2025-04-01",
        "end": "2026-03-31"
    },
    "not_on_the_page": {
        "meters": 0,
        "kwh": 0,
        "note": "Every meter that holds a reading in the period is listed."
    },
    "basis": {
        "figures": "The kWh of the meters the Energy and Fuels page lists for the window, as the page adds them up: the register over each meter's unit size and back. Until EP-2626 these tools added up every register row of the sites whatever the page showed, so a meter of a site that had closed before the period, or a meter with no unit size, could be counted here and nowhere on the page.",
        "kinds": "Electricity is every electricity fuel type (metered in kWh or entered in money, renewable, solar, wind and generated electricity included), gas every natural gas fuel type (kWh, m3, kg or money), other every other fuel. A meter entered in money holds an estimate of its kWh. A refrigerant gas kept on a meter is not energy and is left out.",
        "carbon": "Each month's amount times the fuel type's kg CO2e per unit for that month: base, well-to-tank and transmission and distribution losses, as the Total tCO2e of the page. Scope 1 and scope 2 are the base carbon of the fuels the platform files under each; well-to-tank and T&D are scope 3. Scope 2 is location-based.",
        "more": "get_energy_meters returns the meters one by one, their months, the months never typed in and how the carbon meets the carbon footprint."
    },
    "agrees_with": "The kWh are the Energy and Fuels page's: for the same dates the fuels add up to get_energy_data's total, kind by kind; with site_id they add up to that site's energy in get_site_data and get_energy_meters."
}
POST get_energy_meters
Get the energy meters one by one over a window (default: the reporting period the Energy and Fuels page opens on): each meter with its site, fuel type, kind (electricity, renewable_electricity, gas, other), unit, kWh, the amount in its own unit, its carbon as the page computes it (base, well-to-tank, T&D), the months never typed in (missing_months) and flags that explain an odd figure (entered in money, no unit size, a unit size that is not the fuel type's, an unknown fuel type, a refrigerant gas that is not energy). The summary has kWh and carbon by kind, site and fuel, carbon by scope, the data gaps, and how the total meets the carbon footprint. Use it for which meters or sites use the most, which months are missing, a meter's monthly readings (include_months), energy carbon over a period, why a meter shows nothing. No reading is marked estimated or actual. For ESOS totals use get_esos_scope; for cost and the renewable share use get_energy_by_fuel.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD. Pass it with end_date, or neither for the reporting period the Energy and Fuels page opens on. The window is read in whole months (the month of start_date to the month of end_date), as the page shows it.
end_date string Last day of the window, YYYY-MM-DD (at most 36 months after start_date).
site_id integer Only the meters of this site (an id from get_sites_list).
kind string
enum: electricity, renewable_electricity, gas, other, not_energy
Only meters of this kind of fuel: electricity (renewable electricity included), renewable_electricity, gas, other, or not_energy (a refrigerant gas kept on a meter).
fuel string Only meters of this fuel type, whole value, any case, for example "Natural gas (m3)" (the fuel of each meter, as returned).
search string Only meters whose name, MPAN or MPRN, site name or fuel type contains this text.
only_missing_months boolean Return only the meters with missing months (default false). The summary always covers every meter.
sort_by string
enum: kwh, carbon, missing_months, name, site
Order of the meters list: kwh (default, biggest first), carbon (biggest first), missing_months (most first), name or site. The summary always covers every meter.
limit integer How many meters to return (default 50, at most 500). The summary always covers every meter.
include_months boolean Also return each meter month by month: the amount in its unit and the kWh (null when the month was never typed in) and its carbon (default false).
include_archived boolean Also list archived meters that hold no figure in the window, as the page does with its "show archived" link (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_energy_meters","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","kind":"electricity","sort_by":"kwh"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2025-04-01",
        "end": "2026-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2025-04-01",
            "end": "2026-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2025-04-01",
        "list_end": "2026-03-31",
        "last_month_ended": "2026-10",
        "month_rule": "A window is read in whole months, from the month of start_date to the month of end_date, as the Energy and Fuels page shows it: readings are kept per month."
    },
    "summary": {
        "meters_total": 11,
        "meters_with_readings": 11,
        "meters_without_readings_in_window": 0,
        "kwh": 20120,
        "electricity_kwh": 11620,
        "of_which_renewable_electricity_kwh": 0,
        "renewable_share_of_electricity_percent": 0,
        "gas_kwh": 3300,
        "other_fuels_kwh": 5200,
        "carbon_kgco2e": 6900.9,
        "carbon_tco2e": 6.901,
        "base_kgco2e": 5697.5,
        "wtt_kgco2e": 971,
        "tnd_kgco2e": 232.4,
        "carbon_by_scope": {
            "scope_1_kgco2e": 3200,
            "scope_2_kgco2e": 2477.5,
            "scope_3_kgco2e": 1203.4,
            "fuel_type_unknown_kgco2e": 20,
            "rule": "Scope 1 and scope 2 are the base carbon of the fuels the platform files under each \u2026 Scope 2 is location-based: the platform holds no tariff, certificate or supplier factor."
        },
        "data_quality": {
            "meters_with_missing_months": 10,
            "months_missing": 92,
            "meters_with_blank_months": 11,
            "months_blank": 108,
            "months_zero": 1,
            "months_outside_site_dates": 3,
            "meters_with_no_unit_size": 1,
            "meters_whose_unit_size_differs_from_the_fuel_type": 1,
            "meters_with_unknown_fuel_type": 1,
            "meters_not_energy": 1,
            "not_energy_amount_in_unit": 2,
            "not_energy_carbon_kgco2e": 1350,
            "meters_entered_in_money": 1,
            "kwh_from_meters_entered_in_money": 800,
            "meters_with_no_factor": 0,
            "meters_with_readings_but_no_carbon": 1,
            "meters_archived": 1,
            "smart_meters": 1,
            "meters_landlord_owned": 1,
            "note": "A missing month was never typed in, has ended, and falls inside the site operating dates; a blank month is any month with no entry, missing or not. \u2026"
        },
        "by_kind": [
            {
                "kind": "electricity",
                "meters": 7,
                "kwh": 11620,
                "carbon_kgco2e": 3290.9,
                "share_of_kwh_percent": 57.75,
                "carbon_tco2e": 3.291
            },
            {
                "kind": "other",
                "meters": 2,
                "kwh": 5200,
                "carbon_kgco2e": 1570,
                "share_of_kwh_percent": 25.84,
                "carbon_tco2e": 1.57
            },
            {
                "kind": "gas",
                "meters": 1,
                "kwh": 3300,
                "carbon_kgco2e": 690,
                "share_of_kwh_percent": 16.4,
                "carbon_tco2e": 0.69
            },
            {
                "kind": "not_energy",
                "meters": 1,
                "kwh": 0,
                "carbon_kgco2e": 1350,
                "share_of_kwh_percent": 0,
                "carbon_tco2e": 1.35
            }
        ],
        "by_site": [
            {
                "site_id": 1,
                "site_name": "Head Office",
                "meters": 8,
                "kwh": 19700,
                "electricity_kwh": 11200,
                "gas_kwh": 3300,
                "other_fuels_kwh": 5200,
                "carbon_kgco2e": 6784,
                "meters_with_missing_months": 8,
                "share_of_kwh_percent": 97.91,
                "carbon_tco2e": 6.784
            }
        ],
        "by_fuel": [
            {
                "fuel": "Electricity kWh",
                "fuel_name": "Electricity",
                "kind": "electricity",
                "unit": "kWh",
                "meters": 6,
                "amount_in_unit": 10820,
                "kwh": 10820,
                "carbon_kgco2e": 3074.9,
                "share_of_kwh_percent": 53.78,
                "carbon_tco2e": 3.075
            },
            {
                "fuel": "Natural gas (m3)",
                "fuel_name": "Natural gas",
                "kind": "gas",
                "unit": "m3",
                "meters": 1,
                "amount_in_unit": 300,
                "kwh": 3300,
                "carbon_kgco2e": 690,
                "share_of_kwh_percent": 16.4,
                "carbon_tco2e": 0.69
            }
        ],
        "footprint_reconciliation": {
            "this_tool_kgco2e": {
                "base": 5697.5,
                "wtt": 971,
                "tnd": 232.4,
                "total": 6900.9
            },
            "footprint_kgco2e": {
                "base": 5414.6,
                "wtt": 919.2,
                "tnd": 212,
                "total": 6545.8
            },
            "difference_kgco2e": 355.1,
            "explained_by": {
                "meters_whose_unit_size_differs_from_the_fuel_type": -128.8,
                "months_outside_site_dates": 35.9,
                "meters_with_unknown_fuel_type": 20,
                "months_footprint_not_built_for": 320,
                "changes_since_the_footprint_was_built": 108
            },
            "footprint_needs_updating": true,
            "footprint_months_built": 11,
            "footprint_months_missing": [
                "2026-03"
            ],
            "by_fuel": [
                {
                    "fuel": "Electricity kWh",
                    "footprint_module": "Electricity-kWh",
                    "this_tool_kgco2e": 3074.9,
                    "footprint_kgco2e": 2746,
                    "difference_kgco2e": 328.9
                },
                {
                    "fuel": "Natural gas (m3)",
                    "footprint_module": "Natural-gas-(m3)",
                    "this_tool_kgco2e": 690,
                    "footprint_kgco2e": 683.8,
                    "difference_kgco2e": 6.2
                }
            ],
            "basis": "Base, well-to-tank and T&D kg CO2e together. The carbon footprint files each fuel type under its own name (spaces as hyphens) with the well-to-tank and T&D parts under WTT_ and TND_ names in section 3.03. It is rebuilt when a page asks for it, not when a reading is typed.",
            "note": "This tool has 355.1 kg CO2e more than the carbon footprint register: meters whose unit size (kWh per unit) is not their fuel type's \u2026 (-128.8 kg); readings in months outside the site operating dates \u2026 (35.9 kg); \u2026 The platform has marked the carbon footprint as needing a recalculation."
        },
        "footprint_reconciliation_note": "This tool has 355.1 kg CO2e more than the carbon footprint register: \u2026"
    },
    "meters_total": 11,
    "meters_matching": 11,
    "meters_returned": 2,
    "sorted_by": "kwh",
    "only_missing_months": false,
    "meters": [
        {
            "id": 10,
            "name": "Main incomer",
            "meter_number": "1200012345678",
            "site_id": 1,
            "site_name": "Head Office",
            "fuel": "Electricity kWh",
            "fuel_name": "Electricity",
            "kind": "electricity",
            "scope": 2,
            "unit": "kWh",
            "kwh_per_unit": 1,
            "smart_meter": true,
            "landlord_owned": false,
            "archived": false,
            "amount_in_unit": 10000,
            "kwh": 10000,
            "carbon_kgco2e": 2850,
            "carbon_tco2e": 2.85,
            "base_kgco2e": 2150,
            "wtt_kgco2e": 500,
            "tnd_kgco2e": 200,
            "factor_kgco2e_per_unit": 0.32,
            "months_in_window": 12,
            "months_with_entries": 11,
            "months_zero": 1,
            "months_blank": 1,
            "blank_months": [
                "2025-08"
            ],
            "months_missing": 1,
            "missing_months": [
                "2025-08"
            ],
            "months_outside_site_dates": [],
            "first_month_recorded": "2024-12",
            "last_month_recorded": "2026-03",
            "flags": {
                "not_energy": false,
                "entered_in_money": false,
                "no_unit_size": false,
                "unit_size_differs_from_fuel_type": false,
                "fuel_type_unknown": false,
                "no_factor": false
            }
        },
        {
            "id": 11,
            "name": "Boiler house",
            "meter_number": null,
            "site_id": 1,
            "site_name": "Head Office",
            "fuel": "Natural gas (m3)",
            "fuel_name": "Natural gas",
            "kind": "gas",
            "scope": 1,
            "unit": "m3",
            "kwh_per_unit": 11,
            "smart_meter": false,
            "landlord_owned": false,
            "archived": false,
            "amount_in_unit": 300,
            "kwh": 3300,
            "carbon_kgco2e": 690,
            "carbon_tco2e": 0.69,
            "base_kgco2e": 600,
            "wtt_kgco2e": 90,
            "tnd_kgco2e": 0,
            "factor_kgco2e_per_unit": 2.3,
            "months_in_window": 12,
            "months_with_entries": 2,
            "months_zero": 0,
            "months_blank": 10,
            "blank_months": [
                "2025-06",
                "2025-07",
                "\u2026"
            ],
            "months_missing": 10,
            "missing_months": [
                "2025-06",
                "2025-07",
                "\u2026"
            ],
            "months_outside_site_dates": [],
            "first_month_recorded": "2025-04",
            "last_month_recorded": "2025-05",
            "flags": {
                "not_energy": false,
                "entered_in_money": false,
                "no_unit_size": false,
                "unit_size_differs_from_fuel_type": true,
                "fuel_type_unknown": false,
                "no_factor": false
            }
        }
    ],
    "not_on_the_page": {
        "meters": 1,
        "kwh": 300,
        "list": [
            {
                "id": 20,
                "name": "Depot incomer",
                "site_id": 2,
                "site_name": "Old Depot",
                "fuel": "Electricity kWh",
                "kwh": 300,
                "months_with_entries": 1,
                "reason": "the site closed on 2024-12-31, before the period starts"
            }
        ],
        "note": "1 meters hold readings in the period and are not listed, as on the Energy and Fuels page: 300.00 kWh that is in none of the figures here and that the carbon footprint leaves out too \u2026"
    },
    "readings_without_a_month": 0,
    "basis": {
        "quantity": "The register keeps kWh per meter per month. The amount is that figure over the meter's unit size (kWh per unit), in the unit the meter is entered in \u2026",
        "carbon": "Each month's amount times the fuel type's kg CO2e per unit for that month: base, well-to-tank and transmission and distribution losses \u2026",
        "months": "\u2026",
        "list": "\u2026",
        "footprint": "\u2026",
        "esos": "\u2026",
        "not_held": "The platform holds no mark of estimated or actual readings, no bill amounts, and no tariff, certificate or supplier factor for a market-based figure."
    },
    "note": "11 meters over 2025-04-01 to 2026-03-31 (reporting period (the account ESOS scoping period)), 2 returned, 11 with readings in the window. 20,120.00 kWh (electricity 11,620.00, gas 3,300.00, other fuels 5,200.00) and 6.901 tCO2e, each month priced at that month's factor with well-to-tank and T&D, as the Energy and Fuels page shows it. \u2026",
    "as_of": "2026-11-16 10:00:00"
}
POST get_site_data
Get energy and carbon data for specific site(s) or all sites. energy_data is the site's energy in kWh as the Energy and Fuels page adds it up: electricity (every electricity fuel type: kWh or money, renewable, solar, wind, generated), gas (every natural gas fuel type: kWh, m3, kg, money) and other fuels; refrigerant gases are not energy and are left out. energy_carbon_data is the carbon of that energy alone (base, well-to-tank, T&D). carbon_data is the site's whole carbon footprint by scope, every module (energy, vehicles, travel, waste and the rest), as the footprint was last calculated. Default window: the reporting period the pages open on.
ParameterTypeDescription
site_name string Only the sites whose name contains this text. Leave empty for every site.
start_date string Start date YYYY-MM-DD (with end_date).
end_date string End date YYYY-MM-DD (at most 36 months after start_date).
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year).
sort_by string
enum: site_name, total_energy, total_carbon, electricity, gas
sort_order string
enum: asc, desc
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_site_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","sort_by":"site_name","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "sites": [
        {
            "site_id": 1,
            "site_name": "Head Office",
            "energy_data": {
                "total_kwh": 620400,
                "electricity_kwh": 480200,
                "gas_kwh": 140200,
                "other_kwh": 0
            },
            "energy_carbon_data": {
                "total_tco2e": 161.21,
                "base_tco2e": 125.15,
                "wtt_tco2e": 27.46,
                "tnd_tco2e": 8.6
            },
            "carbon_data": {
                "total_tco2e": 242.15,
                "scope_1_tco2e": 45.8,
                "scope_2_tco2e": 99.35,
                "scope_3_tco2e": 97
            }
        }
    ],
    "time_period": "reporting_period",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "sorted_by": "site_name",
    "sort_order": "asc",
    "period": {
        "start": "2024-04-01",
        "end": "2025-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "\u2026": "\u2026"
    },
    "basis": {
        "figures": "\u2026",
        "kinds": "\u2026",
        "carbon": "\u2026",
        "more": "\u2026",
        "carbon_data": "carbon_data is the whole carbon footprint of the site by scope, every module, read from the carbon footprint register as it was last calculated: it can lag behind figures typed since. energy_carbon_data is the carbon of the energy alone, computed now."
    },
    "last_updated": "2025-04-14 09:30:00"
}

Sites

List all sites (buildings/locations) in your organisation with addresses, size, and staff counts.
POST get_sites_list
Get a list of the user's company sites/locations with basic information. Set include_details to attach postcode, floor area (size_sqft) and parsed site_type. For audit records, call get_audits. For the progress of an ESOS Phase 4 project, call get_workflow_progress.
ParameterTypeDescription
include_closed boolean Include closed/inactive sites
include_details boolean If true, populate site_type (from saved ESOS site-details preferences), size_sqft (from the "floor area" metric_value asset) and expose postcode as its own field. Default false.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_sites_list","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "sites": [
        {
            "id": 1,
            "name": "Head Office",
            "type": "General Office - Offices",
            "size_sqft": "15000",
            "num_of_staff": 120,
            "address": "10 Example Street, London, EC1A 1BB",
            "status": "active",
            "postcode": "EC1A 1BB"
        },
        {
            "id": 2,
            "name": "Warehouse North",
            "type": "Warehouse",
            "size_sqft": "50000",
            "num_of_staff": 35,
            "address": "5 Industrial Park, Manchester, M1 2AB",
            "status": "active",
            "postcode": "M1 2AB"
        }
    ],
    "total_sites": 2,
    "active_sites": 2,
    "last_updated": "2025-04-14 09:30:00"
}

Audits

On-site compliance audits (ESOS Phase 3/4, SECR, etc.) — status per site, surveyor, scheduled date.
POST get_audit_trail
The audit trail: who changed what and when, newest first, as the Audit Trail page under Settings lists it. Each entry has the time, who did it, the action (CREATE, UPDATE, DELETE, ADD, EDIT, UPLOAD, ARCHIVE…), the site, the line the platform wrote (for example: Updated the Purchased water value for site 'Porto', 2025-07 from 97,000 to 97,400 m3) and the fields that changed, before and after. Use it for: who changed, added or deleted something, what a user did, what changed on a day or at a site, what EnisticAI changed, and whether the Enistic team looked at an EnisticAI conversation (action VIEW). search matches words of the line, all of them: use the name of the thing (a meter, vehicle, supplier, site, report) and write a month as 2026-01, not as a word. An energy line carries meter_fuel, the fuel of its meter. Not every page writes to the trail, so an empty answer does not prove that nothing changed.
ParameterTypeDescription
search string Words the line must contain, any case, all of them (at most 6). Prefer one or two exact names over a sentence.
user string Only what this user did: part of their name or email.
only_mine boolean Only what the signed-in user did (default false).
action string Only this action, for example DELETE, CREATE, UPDATE (matches the stored action that contains it).
area string
enum: energy, vehicles, staff_mileage, supply_chain, deliveries, commuting, water, travel, waste, custom_modules, sites, users, reports, projects, audits, files, targets, settings, product_footprints
Only this kind of data. Use it instead of a word that describes the kind: a gas or electricity reading is area energy with the month in search (the line names the meter, not the fuel; meter_fuel of each entry says which fuel it is).
site string Only entries of this site: part of the site name.
start_date string From this day, YYYY-MM-DD (optional; without dates the newest entries of the whole trail are read).
end_date string Up to and including this day, YYYY-MM-DD (optional).
only_enisticai boolean Only changes EnisticAI made (default false).
include_views boolean Also list view-only lines, where someone looked at something and nothing changed (default false).
include_changes boolean List the changed fields with before and after (default true).
limit integer The most entries to list (default 20, max 100).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_audit_trail","arguments":{"area":"energy","start_date":"2024-04-01","end_date":"2025-03-31"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "entries": [
        {
            "id": 15131,
            "when": "2026-10-09 14:32:31",
            "by": "Sam Field",
            "done_through_this_login_by": null,
            "action": "EDIT",
            "site": "Leeds depot",
            "what": "Updated the Purchased water value for site 'Leeds depot', 2025-07 from 97,000 to 97,400 m3",
            "times": 1,
            "made_by_enisticai": false,
            "changes": [
                {
                    "field": "2025 07",
                    "before": "97000",
                    "after": "97400"
                }
            ]
        },
        {
            "id": 15072,
            "when": "2026-10-09 10:52:32",
            "by": "Pat Lee",
            "done_through_this_login_by": "someone signed in from outside the account (the Enistic team, a partner or a linked account)",
            "action": "DELETE",
            "site": "Leeds depot",
            "what": "Delete the MPAN 'Old boiler house'",
            "times": 1,
            "made_by_enisticai": false,
            "changes": []
        }
    ],
    "totals": {
        "matched": 6,
        "listed": 2,
        "truncated": true
    },
    "filters": {
        "search_words": [
            "leeds"
        ],
        "dates": "2026-10-01 to 2026-10-31"
    },
    "words_found": null,
    "trail": {
        "first_entry": "2024-05-13 09:15:59",
        "last_entry": "2026-11-04 09:56:22",
        "lines": 15150
    },
    "where": {
        "label": "Audit Trail",
        "url": "/plato/plato_entry_log.php"
    },
    "notes": [
        "Each entry is the line the platform wrote when the action happened. Not every page writes to the audit trail, so a change can be missing from it."
    ]
}
POST get_audits
List audits from the audits table (on-site compliance audits such as ESOS Phase 3/4 or SECR). Each row includes the site it belongs to, the compliance standard, status (e.g. "Signed Off", "Pending", "In Progress"), scheduled date, surveyor (on-site), consultant (office reviewer) and expected duration in days. Supports filters by standard (LIKE pattern), exact status, and site. For the progress of the ESOS project itself, call get_workflow_progress.
ParameterTypeDescription
standard string Optional: a word or phrase of the compliance standard, found anywhere in its name and in any case ("ESOS Phase 4" finds "ESOS Phase 4 ISO50002 level 1"; "SECR"). A LIKE pattern with % still works.
status string Optional: a word of the status, any case (e.g. "signed off", "pre-survey", "visit").
site_id integer Optional site id to restrict results to one site.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_audits","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "audits": [
        {
            "id": 101,
            "site_id": 43,
            "site_name": "Edinburgh",
            "standard": "ESOS Phase 3",
            "status": "Signed Off",
            "date_scheduled": "2024-10-12 10:00:00",
            "surveyor": "Jane Doe",
            "consultant": "Sam Lee",
            "expected_duration_days": 2.5,
            "last_updated": "2024-10-14 09:30:00"
        },
        {
            "id": 102,
            "site_id": 44,
            "site_name": "Sheffield",
            "standard": "ESOS Phase 3",
            "status": "Pending",
            "date_scheduled": "2025-03-20 09:00:00",
            "surveyor": null,
            "consultant": null,
            "expected_duration_days": 3,
            "last_updated": "2025-02-28 10:00:00"
        }
    ],
    "count": 2,
    "filters_applied": {
        "standard": "ESOS Phase%",
        "status": null,
        "site_id": null
    }
}

ESOS

The ESOS scope for a phase: key dates, the reference period the audit planner set, the qualification facts, every site with whether it is in scope and why, its energy over the period and its audit, the total energy consumption as the Data Summary Report prints it, and the audit sample.
POST get_esos_scope
Get the ESOS scope of this organisation for a phase (default: the phase the account is working in, Phase 4): the phase and its key dates, the reference period the audit planner set (pass its start and end as start_date and end_date to the energy and transport tools, which otherwise default to the calendar year), the qualification facts and the people recorded in the planner, every site with whether it is in scope and why, its floor area, its energy over the reference period and its audit, the total energy consumption as the Data Summary Report prints it, and the audit sample with how much of the energy the visited sites hold. Use it for: are we in scope, what period counts, which sites are in or out and why, how much energy is that, which sites were or will be visited, is the sample representative. For the project tasks and what is still to do, call get_workflow_progress.
ParameterTypeDescription
phase string The ESOS phase number, "4" or "3". Default: the phase the account is working in.
include_sites boolean Return the per-site rows (default true). The estate totals and the sample are returned either way.
include_energy boolean Run the Data Summary Report engine for the kWh per site and the total (default true). Set false for a faster answer about scope and dates only.
include_planner_text boolean Also return the free text the planner holds: the key activities, the corporate group changes and the planner notes (default false).
site_id integer Return the row of one site only (its scope, energy and audit). The estate totals still cover the whole estate.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_esos_scope","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "phase": {
        "key": "esos-phase-key-4",
        "label": "Phase 4",
        "number": 4,
        "is_current": true,
        "is_read_only": false,
        "qualification_date": "2026-12-31",
        "compliance_deadline": "2027-12-05",
        "action_plan_deadline": "2028-12-05",
        "deadline_note": null
    },
    "reference_period": {
        "start": "2026-01-01",
        "end": "2026-12-31",
        "source": "audit planner",
        "months": 12,
        "note": "Pass start and end as start_date and end_date to the energy and transport tools; they default to the calendar year otherwise."
    },
    "qualification": {
        "criterion_key": "headcount",
        "criterion_label": "Over 250 employees",
        "legal_name": "Acme Holdings Ltd",
        "company_number": "01234567",
        "website": "acme.example",
        "uk_parent": null,
        "overseas_parent": null
    },
    "people": {
        "consultant": "J. Patel",
        "surveyor": "S. Smith",
        "data_contact": "Facilities manager",
        "primary_contact": {
            "name": "A. Jones",
            "position": "Sustainability Manager"
        },
        "responsible_director": {
            "name": "B. Brown",
            "position": "Finance Director"
        }
    },
    "planner_flags": {
        "gas_and_electricity_in": true,
        "company_vehicles_in": false,
        "audits_complete": false,
        "eips_done": false,
        "report_produced": false,
        "filed": false
    },
    "industrial": null,
    "estate": {
        "sites_total": 3,
        "sites_uk": 3,
        "sites_in_scope": 2,
        "sites_out_of_scope": 1,
        "sites_tenure_not_set": 1,
        "floor_area_sqft_in_scope": 48000,
        "tec_kwh": 1234567,
        "tec_source": "Data Summary Report (metered energy of every UK site not leased without control of energy, plus fleet and staff mileage)",
        "by_fuel": {
            "electricity": 820000,
            "gas": 300000,
            "other": 0,
            "transport_fleet": 114567,
            "transport_staff_mileage": 0
        },
        "kwh_sites_in_scope": 1100000,
        "sites_in_tec_but_out_of_scope": [
            45
        ],
        "kwh_in_tec_but_out_of_scope": 20000,
        "sites_with_audit": 1,
        "sites_visited": 1,
        "with_audit_share_pct": 66.4,
        "visited_share_pct": 66.4,
        "visited_kwh": 820000,
        "de_minimis": {
            "kwh": 0,
            "pct": 0,
            "note": "The platform does not record a de minimis exclusion; the Data Summary Report prints 0."
        }
    },
    "sites": [
        {
            "id": 43,
            "name": "Edinburgh",
            "site_type": "General Office - Open-plan office",
            "site_type_group": "General Office",
            "tenure": "owned",
            "tenure_label": "Owned",
            "floor_area_sqft": 30000,
            "floor_area_note": null,
            "country": "GB",
            "is_uk": true,
            "in_scope": true,
            "scope_reason": "",
            "operational_in_period": true,
            "energy_kwh": {
                "electricity": 600000,
                "gas": 200000,
                "other": 0,
                "transport": 20000,
                "total": 820000
            },
            "months_with_data": 12,
            "share_of_tec_pct": 66.4,
            "audit": {
                "id": 101,
                "site_id": 43,
                "status": "post-survey",
                "status_label": "Post-survey",
                "stage": "visited",
                "date_scheduled": "2027-03-12 10:00:00",
                "surveyor": "S. Smith",
                "consultant": "J. Patel",
                "last_updated": "2027-03-14 09:00:00"
            }
        }
    ],
    "sample": {
        "sites_to_audit_planned": 2,
        "audits_in_phase": 1,
        "sites_with_audit": 1,
        "sites_visited": 1,
        "visited_share_pct": 66.4,
        "by_site_type_group": [
            {
                "group": "General Office",
                "sites": 2,
                "in_scope": 2,
                "with_audit": 1,
                "visited": 1,
                "kwh": 1100000,
                "visited_kwh": 820000,
                "visited_share_pct": 74.5,
                "share_of_tec_pct": 89.1
            }
        ],
        "eso_sample_selection": [
            43,
            44
        ],
        "audits": []
    },
    "note": "Total energy consumption over 2026-01-01 to 2026-12-31 is 1,234,567 kWh, as the Data Summary Report prints it. The 1 visited site holds 66.4% of it (820,000 kWh). 1 site is counted in the total but out of scope under the planner rule (no tenure recorded, or not open in the period): 20,000 kWh; see sites_in_tec_but_out_of_scope. The reference period comes from the audit planner; pass its start and end to the energy and transport tools.",
    "as_of": "2026-10-19 14:00:00"
}
POST get_esos_opportunities
Get the ESOS energy saving opportunities (the ESO register) as the ESO report prints them: every opportunity with its annual saving in kWh, currency and tonnes of CO2e, its capital cost, annual cost and payback, whether it is recommended, its organisational purpose (buildings, transport, industrial processes, other) and MESOS energy saving category (energy management, behaviour change, training, controls, capital investments, other), its sites, confidence, data sufficiency and status; the Summary totals by purpose and by category; the savings by site; and the estate scaling block. Filter by verdict, site, category, purpose, capital cost or payback; sort by payback, kWh, currency, tonnes or capital cost. A payback of "8+" means eight years or more. Use it for: what are the opportunities, what do they save and cost, which are quick wins, the totals for the MESOS notification, how much of the estate the audited sites cover. For project tasks call get_workflow_progress; for scope and sites call get_esos_scope.
ParameterTypeDescription
verdict string
enum: all, recommended, not_recommended
Keep every opportunity (default), the recommended ones, or the ones identified but not recommended.
site_id integer Keep only opportunities at this site (and, with include_pending_drafts, only that site's drafts).
energy_saving_category string
enum: EnergyManagement, BehaviourChange, Training, Controls, Capital, Other
Keep only this MESOS energy saving category.
purpose string
enum: Buildings, Transport, IndustrialProcesses, OtherProcesses
Keep only this organisational purpose.
max_capital_cost number Keep only opportunities whose capital cost is at or below this amount.
max_payback_years number Keep only opportunities whose payback is at or below this many years (opportunities with no payback are left out; a payback of "8+" counts as 8).
search string Keep only opportunities whose title or site label contains this text.
sort string
enum: report_order, payback, saving_kwh, saving_gbp, saving_tco2e, capital_cost
The order of the list (default report_order, the report's own: recommended first, then cheapest payback or the saved order).
limit integer At most this many opportunities (default 100, maximum 500). filtered_totals always cover every matching opportunity.
include_details boolean Add the full description, the detail rows and the lifecycle table to every opportunity (default false; the excerpt is always there).
include_summary boolean The Summary totals by purpose and by category (default true).
include_by_site boolean The by-site tables, kWh and currency (default true).
include_estate boolean The estate scaling block and each opportunity's scaling block (default true).
include_methodology boolean The report's methodology paragraphs (default false).
include_pending_drafts boolean Also list the AI drafts the analyst has not yet decided on — titles and reasons only, never their figures (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_esos_opportunities","arguments":{"verdict":"all","energy_saving_category":"EnergyManagement","purpose":"Buildings","sort":"report_order"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "report": {
        "company": "Acme Holdings Ltd",
        "currency_symbol": "\u00a3",
        "items_in_report": 14,
        "figures_note": "Annual figures for the audited sites, plus the estimate for similar sites where an opportunity is scaled.",
        "window": "1 Jan 2026 to 31 Dec 2026"
    },
    "items": [
        {
            "rank": 1,
            "id": 59,
            "title": "LED lighting in the warehouse",
            "site": {
                "label": "Northern Warehouse and 3 other Warehouse sites",
                "ids": [
                    377
                ]
            },
            "is_scaled_row": true,
            "is_recommended": true,
            "verdict": "Recommended",
            "purpose": {
                "key": "Buildings",
                "label": "Buildings"
            },
            "energy_saving_category": {
                "key": "Capital",
                "label": "Capital investments"
            },
            "type": {
                "key": "ShortTerm",
                "label": "Short term capital investments (with a payback period of less than 3 years)"
            },
            "measure_nature": "capital_oneoff",
            "fuel": {
                "key": "electricity",
                "label": "Electricity"
            },
            "saving_kwh_per_year": 60000,
            "saving_gbp_per_year": 12800,
            "saving_tco2e_per_year": 10.62,
            "saving_tco2e_stored": 2.655,
            "carbon_factor": {
                "kg_co2e_per_kwh": 0.177,
                "fuel": "electricity",
                "month": "2026-10"
            },
            "capital_cost": 30000,
            "cost_per_year": 0,
            "payback_years": "3",
            "payback_sort": 2.34,
            "payback_is_capped": false,
            "payback_stored": null,
            "site_specific": false,
            "actionable_by": "tenant",
            "confidence": "high",
            "data_sufficiency": "quantified",
            "savings_basis": "measured_usage",
            "adoption_status": "planned",
            "shown_in_projects": true,
            "source": {
                "audit_ref": "14658-3",
                "kind": "audit"
            },
            "recommended_action": null,
            "excluded_site_ids": [],
            "description_excerpt": "Replace the T8 fluorescent tubes with LED panels across the warehouse floor\u2026",
            "scaling": {
                "is_scaled": true,
                "status": "scaled",
                "group": "Warehouse",
                "driver": "energy",
                "unaudited_sites": 3,
                "additional_kwh": 45000,
                "additional_gbp": 9600,
                "audited": {
                    "saving_kwh_per_year": 15000,
                    "saving_gbp_per_year": 3200,
                    "capital_cost": 7500,
                    "cost_per_year": 0
                },
                "included_site_ids": [
                    378,
                    379,
                    380
                ],
                "line": "The printed saving includes the estimate for the similar sites not yet audited; the audited-only figures are in audited."
            }
        }
    ],
    "count": 1,
    "count_matching": 1,
    "filtered_totals": {
        "items": 1,
        "saving_kwh_per_year": 60000,
        "saving_gbp_per_year": 12800,
        "capital_cost": 30000,
        "saving_tco2e_per_year": 10.62,
        "items_with_carbon_factor": 1,
        "items_without_carbon_factor": 0
    },
    "filters_applied": {
        "verdict": "recommended",
        "site_id": null,
        "energy_saving_category": "",
        "purpose": "",
        "max_capital_cost": null,
        "max_payback_years": 3,
        "search": "",
        "sort": "payback",
        "limit": 100
    },
    "summary": {
        "totals": {
            "items": 14,
            "saving_kwh_per_year": 114240,
            "saving_gbp_per_year": 27877,
            "saving_tco2e_per_year": 15.22,
            "capital_cost": 140800,
            "items_with_carbon_factor": 9,
            "items_without_carbon_factor": 5
        },
        "by_purpose": [
            {
                "key": "Buildings",
                "label": "Buildings",
                "saving_kwh_per_year": 114240,
                "saving_gbp_per_year": 27877,
                "saving_tco2e_per_year": 15.22
            },
            {
                "key": "Transport",
                "label": "Transport",
                "saving_kwh_per_year": 0,
                "saving_gbp_per_year": 0,
                "saving_tco2e_per_year": null
            }
        ],
        "by_energy_saving_category": [
            {
                "key": "Controls",
                "label": "Controls improvements",
                "saving_kwh_per_year": 3643,
                "saving_gbp_per_year": 984,
                "saving_tco2e_per_year": 0.477
            },
            {
                "key": "Capital",
                "label": "Capital investments",
                "saving_kwh_per_year": 106361,
                "saving_gbp_per_year": 25748,
                "saving_tco2e_per_year": 14.33
            }
        ],
        "unassigned_purpose": 0,
        "unassigned_category": 0,
        "notes": [
            "Annual figures for the audited sites, plus the estimate for similar sites where an opportunity is scaled."
        ]
    },
    "by_site": {
        "kwh": {
            "measure": "kwh",
            "rows": [
                {
                    "site": "Northern Warehouse",
                    "total": 69240,
                    "by_purpose": {
                        "Buildings": 69240,
                        "Transport": 0,
                        "Industrial processes": 0,
                        "Other energy uses": 0
                    }
                }
            ],
            "unassigned_count": 0,
            "note": ""
        }
    },
    "estate": {
        "window": "1 Jan 2026 to 31 Dec 2026",
        "site_count": 7,
        "audited_site_count": 1,
        "audited_site_ids": [
            377
        ],
        "estate_kwh_total": 2134000,
        "audited_kwh_total": 110000,
        "coverage_pct": 5.2,
        "coverage_warning": true,
        "scaling_basis": "energy",
        "metric": {
            "label": "estate size",
            "unit": "employees"
        },
        "rollup_totals": {
            "scaled_saving_kwh": 60000,
            "additional_kwh": 45000,
            "additional_gbp": 9600
        },
        "unrepresented_kwh": 1980000,
        "de_minimis_warning": true,
        "groups": [],
        "not_covered": [],
        "notes": []
    },
    "note": "Every kWh and \u00a3 figure is the ESO report's own (Annual figures for the audited sites, plus the estimate for similar sites where an opportunity is scaled); 14 opportunities in the report, 1 matching the filters, 1 returned. Tonnes of CO2e are recalculated here as the ESO analysis page recalculates them: the kWh saving times the platform emission factor for 2026-10 for each measure's saving fuel (the audit draft's own fuel where the measure came from one), base factor only, no well-to-tank or distribution; the figure saved at adoption, where one was, is saving_tco2e_stored. 5 opportunities have no saving fuel recorded (or \"other\"), so no tonnes are claimed for them.",
    "as_of": "2026-10-20 10:00:00"
}
POST get_esos_audit_findings
Get what one ESOS site audit found, as the Site Audit Report prints it: the audit (status, stage, surveyor, consultant, dates) and its site, every significant energy consumer with its count, rating, operating pattern, bottom-up annual kWh and share of the site, grouped by zone, the energy balance of those estimates against the metered energy over the ESOS reference period with the platform red/amber/green verdict, the top consumers, the operating hours, the industrial months, the opportunity notes the surveyor made per consumer, the on-site answers and the pre-audit questionnaire. Pass audit_id, or site_id for the latest audit of that site in the phase. Use it for: what did the audit of site X find, what are the biggest consumers, does the audit balance against the meters, what did the client answer. For the opportunities and their savings call get_esos_opportunities; for the list of audits call get_audits or get_esos_scope.
ParameterTypeDescription
audit_id integer The audit to read (from get_audits or get_esos_scope).
site_id integer Instead of audit_id: the latest audit of this site in the phase.
phase string With site_id: the ESOS phase number, "4" or "3" (default: the phase the account is working in).
include_zones boolean The zones with their consumer counts and kWh (default true).
include_qna boolean The on-site questions and answers (default true).
include_pre_audit boolean The pre-audit questionnaire the client answered (default false).
include_photos boolean Photo counts and descriptions per zone and consumer (default false). Never the photos themselves.
include_monthly boolean The metered energy month by month over the reference period (default false).
top_secs integer At most this many consumers, biggest first (default all, maximum 200).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_esos_audit_findings","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "audit": {
        "id": 101,
        "name": "Retail unit survey",
        "standard": "ESOS Phase 4",
        "phase_key": "esos-phase-key-4",
        "phase_number": 4,
        "status": "post-survey",
        "status_label": "Post-survey",
        "stage": "visited",
        "survey_approval": "accepted",
        "survey_approval_label": "Accepted",
        "date_scheduled": "2027-03-12 10:00:00",
        "surveyor": "S. Smith",
        "consultant": "J. Patel",
        "expected_duration_days": 3.5,
        "last_updated": "2027-03-14 09:00:00",
        "energy_balanced_at": "2027-03-20 11:00:00",
        "industrial_approved_at": null
    },
    "site": {
        "id": 43,
        "name": "Edinburgh",
        "postcode": "EH1 1AA"
    },
    "reference_period": {
        "start": "2026-01-01",
        "end": "2026-12-31"
    },
    "operating_hours": [
        {
            "label": "Schedule 1",
            "days": "Mon \u2013 Fri",
            "times": "09:00 \u2013 17:00"
        },
        {
            "label": "Schedule 2",
            "days": "Closed",
            "times": ""
        }
    ],
    "energy_balance": {
        "lines": [
            {
                "group": "elec",
                "label": "Electricity",
                "metered_kwh": 110000,
                "audited_kwh": 103410,
                "variance_pct": -6,
                "rag": "green"
            },
            {
                "group": "total",
                "label": "Total",
                "metered_kwh": 110000,
                "audited_kwh": 103410,
                "variance_pct": -6,
                "rag": "green"
            }
        ],
        "thresholds": {
            "amber_pct": 10,
            "red_pct": 25
        },
        "note": "Variance = (audited \u2212 metered) \u00f7 metered over the ESOS reference period; green within 10%, amber within 25%, red beyond, as the energy balancing page and the Site Audit Report judge it."
    },
    "sec_totals": {
        "secs": 8,
        "annual_kwh": 103410,
        "by_fuel_group": {
            "elec": 103410,
            "gas": 0,
            "other": 0
        }
    },
    "top_consumers": [
        {
            "name": "Chilled multideck cabinets",
            "annual_kwh": 47174,
            "share_pct": 45.6,
            "is_bucket": false
        },
        {
            "name": "All other SECs",
            "annual_kwh": 9000,
            "share_pct": 8.7,
            "is_bucket": true
        }
    ],
    "secs": [
        {
            "uuid": "sec-1",
            "name": "Chilled multideck cabinets",
            "zone": "Chilled and frozen display",
            "zone_uuid": "zone-1",
            "category": "RefrigerationandCooling",
            "fuel_type": "Electricity kWh",
            "fuel_group": "elec",
            "is_industrial": false,
            "count": 5,
            "kw_per_unit": 1.8,
            "hours_per_day": 24,
            "days_per_week": 7,
            "months_per_year": 12,
            "utilization_pct": 60,
            "effective_hours_per_year": 5241.6,
            "kwh_per_item": 9434.9,
            "annual_kwh": 47174,
            "share_of_site_pct": 45.6,
            "is_site_top": true,
            "description": "Open-fronted multideck chilled cabinets",
            "surveyor_note": "No night blinds or doors fitted.",
            "auditor_opportunities": [
                {
                    "title": "Fit night blinds",
                    "rationale": "Open fronts lose cold air overnight."
                }
            ]
        }
    ],
    "secs_returned": 1,
    "zones": [
        {
            "uuid": "zone-1",
            "name": "Chilled and frozen display",
            "description": null,
            "secs": 2,
            "annual_kwh": 72159
        }
    ],
    "industrial": null,
    "qna": [
        {
            "group": "Lighting",
            "question": "What lighting is installed on the sales floor?",
            "answer": "T5 fluorescent general lighting with halogen display spots.",
            "note": "No LED except the emergency fittings."
        }
    ],
    "note": "Audit 101 of Edinburgh (Post-survey): 8 significant energy consumers estimated bottom-up at 103,410 kWh a year, as the Site Audit Report prints them. Against 110,000 kWh metered over 2026-01-01 to 2026-12-31 the balance is -6% (green). Photos are reported as counts and descriptions only.",
    "as_of": "2026-10-20 10:00:00"
}

Transport

Fleet vehicles, staff mileage, and public transport usage — distances, fuel, and associated carbon.
POST get_transport_data
Get company vehicle (fleet) emissions as totals by vehicle type: carbon, kWh, distance, fuel cost and litres as stored when each month was entered, over the reporting period the platform pages open on unless dates or a preset are passed. The stored figures can differ from the Company vehicles page, which works each month out again from the amount typed. The kWh here includes electric and plug-in hybrid vehicles and vehicles at sites outside the UK, which the ESOS report leaves out: for ESOS questions, vehicle by vehicle figures, missing months, unusual months and whether each vehicle counts for ESOS, call get_company_vehicles.
ParameterTypeDescription
start_date string Start date, YYYY-MM-DD. Use with end_date.
end_date string End date, YYYY-MM-DD. Use with start_date.
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year).
vehicle_type string Only vehicle types containing this text.
sort_by string
enum: vehicle_type, total_emissions, distance, fuel_cost
Order of the vehicle types (default total_emissions).
sort_order string
enum: asc, desc
Sort direction (default desc).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_transport_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","sort_by":"vehicle_type","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_data": {
        "total_carbon_kgco2e": 8540.3,
        "total_carbon_tco2e": 8.54,
        "total_distance_km": 42500,
        "total_distance_miles": 26407,
        "total_energy_kwh": 35200,
        "total_fuel_cost": 6240.5,
        "total_fuel_litres": 3800
    },
    "breakdown_by_vehicle_type": {
        "Car": {
            "carbon_kgco2e": 4200.15,
            "carbon_tco2e": 4.2,
            "distance_km": 25000,
            "distance_miles": 15534,
            "energy_kwh": 18000,
            "fuel_cost": 3200,
            "fuel_litres": 2100,
            "vehicle_count": 5
        },
        "Van": {
            "carbon_kgco2e": 4340.15,
            "carbon_tco2e": 4.34,
            "distance_km": 17500,
            "distance_miles": 10873,
            "energy_kwh": 17200,
            "fuel_cost": 3040.5,
            "fuel_litres": 1700,
            "vehicle_count": 3
        }
    },
    "time_period": "FY 2024/25",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "vehicle_count": 8,
    "sorted_by": "carbon",
    "sort_order": "desc",
    "last_updated": "2025-04-14 09:30:00"
}
POST get_transport_comparison
Compare company vehicle (fleet) emissions between two time periods as totals by vehicle type: carbon, energy, distance, fuel and expenses as stored when each month was entered (they can differ from the Company vehicles page, which works each month out again from the amount typed). All four dates are required. Useful for year-over-year or month-over-month comparisons of carbon and cost by vehicle type. For two periods vehicle by vehicle, or for ESOS kWh, call get_company_vehicles_comparison; for one period vehicle by vehicle, call get_company_vehicles.
ParameterTypeDescription
period1_start
required
string Start date of period 1 in YYYY-MM-DD format
period1_end
required
string End date of period 1 in YYYY-MM-DD format
period2_start
required
string Start date of period 2 in YYYY-MM-DD format
period2_end
required
string End date of period 2 in YYYY-MM-DD format
vehicle_type string Optional filter by vehicle type (partial match)
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_transport_comparison","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period1": {
        "date_range": {
            "start": "2023-04-01",
            "end": "2024-03-31"
        },
        "totals": {
            "carbon_kgco2e": 9200,
            "carbon_tco2e": 9.2,
            "distance_km": 46000,
            "fuel_cost": 7100,
            "vehicle_count": 8
        }
    },
    "period2": {
        "date_range": {
            "start": "2024-04-01",
            "end": "2025-03-31"
        },
        "totals": {
            "carbon_kgco2e": 8540.3,
            "carbon_tco2e": 8.54,
            "distance_km": 42500,
            "fuel_cost": 6240.5,
            "vehicle_count": 8
        }
    },
    "changes": {
        "absolute": {
            "carbon_kgco2e": -659.7,
            "carbon_tco2e": -0.66,
            "energy_kwh": -2700,
            "distance_km": -3500,
            "fuel_cost": -859.5,
            "fuel_litres": -250,
            "vehicle_count": 0
        },
        "percentage": {
            "carbon_kgco2e": -7.17,
            "energy_kwh": -7.14,
            "distance_km": -7.61,
            "fuel_cost": -12.1,
            "fuel_litres": -6.17,
            "vehicle_count": 0
        }
    },
    "vehicle_type_filter": null,
    "last_updated": "2025-04-14 09:30:00"
}
POST get_company_vehicles
Get the company vehicles vehicle by vehicle, as the Company vehicles page holds them, over a window (default: the ESOS reference period): each vehicle with its site, registration, type and fuel, whether its energy counts for ESOS and why not (vehicles charged at the sites are already in the electricity meters), the months it should have figures for and the months missing, months that look unusual against a year earlier, how each month was typed in (fuel litres, distance or money), kWh as recorded, miles, kgCO2e, litres and fuel cost; fleet totals by fuel, type and site; the fleet kWh per km; and, over the ESOS period, how the fleet kWh meets the ESOS report figure. Use it for: is our fleet data complete for ESOS, which vehicles or sites use the most, which figures are estimated from money, are electric vehicles counted, which vehicles to move to electric first. Efficiency per vehicle is not measured on the platform: every vehicle of a type uses the same standard figure. For totals by vehicle type only, get_transport_data is lighter; for staff business mileage (grey fleet), call get_staff_mileage_data.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD. Pass it with end_date, or neither for the ESOS reference period. A month counts when its 1st falls inside the window, as in the ESOS report.
end_date string Last day of the window, YYYY-MM-DD (at most 36 months after start_date).
site_id integer Only the vehicles based at this site.
search string Only vehicles whose registration contains this text.
fuel string
enum: petrol, diesel, electric, other
Only this fuel (hybrids count as their parent fuel; LPG and other fuels are other).
vehicle_type string Only vehicle types containing this text, for example van or diesel.
sort_by string
enum: kwh, distance, carbon, missing_months, anomalies
Order of the vehicles list, biggest first (default kwh). The summary always covers every vehicle.
limit integer How many vehicles to return (default 50, at most 500). The summary always covers every vehicle.
include_months boolean Also return each vehicle month by month (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_company_vehicles","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","fuel":"petrol","sort_by":"kwh"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2026-01-01",
        "end": "2026-12-31",
        "months": 12,
        "source": "ESOS reference period (audit planner)",
        "is_esos_reference_period": true,
        "last_month_due": "2026-09"
    },
    "summary": {
        "vehicles_total": 24,
        "vehicles_with_data": 22,
        "vehicles_with_missing_months": 5,
        "missing_months_total": 11,
        "esos_fleet_kwh": 412300,
        "kwh_not_counted_in_esos": {
            "charged_at_sites": 18400,
            "outside_uk": 0
        },
        "distance_miles": 318200,
        "carbon_kgco2e": 104500.2,
        "fuel_cost": {
            "amount": 52310.4,
            "currency": "GBP"
        },
        "by_fuel": [
            {
                "fuel": "diesel",
                "vehicles": 19,
                "esos_kwh": 398100,
                "kwh_recorded": 398100,
                "distance_miles": 296400,
                "carbon_kgco2e": 99800.4
            }
        ],
        "entry_basis": {
            "fuel_litres": 140,
            "distance": 88,
            "cost": 12,
            "energy": 0,
            "carbon": 0,
            "unknown": 0,
            "cost_share_pct": 5
        },
        "anomalies": {
            "enabled": true,
            "threshold_pct": 50,
            "months_flagged": 3,
            "vehicles_flagged": 2
        },
        "intensity": {
            "esos_kwh_per_km": 0.8051,
            "esos_kwh_per_vehicle": 18741
        },
        "esos_reconciliation": {
            "esos_report_fleet_kwh": 412300,
            "this_tool_fleet_kwh": 412300,
            "difference_kwh": 0
        }
    },
    "vehicles_total": 24,
    "vehicles_returned": 1,
    "sorted_by": "kwh",
    "vehicles": [
        {
            "id": 311,
            "reg": "AB12 CDE",
            "site_id": 4,
            "site_name": "Leeds Depot",
            "type": "Large Van over 2.0 litre diesel",
            "fuel": "diesel",
            "counts_in_esos": true,
            "not_counted_reason": null,
            "first_data_month": "2023-04",
            "added_month": "2023-03",
            "months_expected": 9,
            "months_with_data": 8,
            "missing_months": [
                "2026-03"
            ],
            "kwh": 41200,
            "distance_miles": 28100,
            "carbon_kgco2e": 10400.6,
            "entry_basis": {
                "fuel_litres": 8,
                "distance": 0,
                "cost": 0,
                "energy": 0,
                "carbon": 0,
                "unknown": 0
            },
            "anomaly_months": [
                {
                    "month": "2026-07",
                    "change_pct": 140.2,
                    "distance": 5830.4,
                    "usual_distance": 2423.4,
                    "unit": "miles"
                }
            ]
        }
    ],
    "note": "24 vehicles over 2026-01-01 to 2026-12-31 (ESOS reference period (audit planner)), 1 returned. ESOS fleet energy 412,300 kWh as recorded at entry, the basis of the ESOS report."
}
POST get_company_vehicles_comparison
Compare the company vehicles between two periods, vehicle by vehicle: which vehicles joined or resumed, which left (ended, archived or no longer listed) and which simply have no figures in the later period yet, which changed the most, the fleet totals and their change (kWh as recorded, the ESOS kWh, miles, kgCO2e, fuel cost), by fuel, vehicle type and site; and the previous ESOS phase as typed by the consultant on the Data Summary Report against this phase. Default: period 2 is the ESOS reference period and period 1 the same number of months before it; a month counts when its 1st falls inside a period, as in the ESOS report. Use it for: has our fleet energy gone up or down and why, which vehicles came or went, how does this phase compare with the last one. For one period in detail, call get_company_vehicles; for totals by vehicle type only, get_transport_comparison is lighter.
ParameterTypeDescription
period1_start string First day of the earlier period, YYYY-MM-DD. Pass with period1_end, or neither for the months before period 2.
period1_end string Last day of the earlier period, YYYY-MM-DD.
period2_start string First day of the later period, YYYY-MM-DD. Pass with period2_end, or neither for the ESOS reference period.
period2_end string Last day of the later period, YYYY-MM-DD.
site_id integer Only the vehicles based at this site.
fuel string
enum: petrol, diesel, electric, other
Only this fuel (hybrids count as their parent fuel; LPG and other fuels are other).
vehicle_type string Only vehicle types containing this text.
limit integer How many vehicles to list in each of vehicles_added, vehicles_left and biggest_changes (default 20, at most 100). The totals cover every vehicle.
include_previous_phase boolean Also return the previous ESOS phase against this one, as the Executive Summary prints it (default true).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_company_vehicles_comparison","arguments":{"fuel":"petrol"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period1": {
        "start": "2025-01-01",
        "end": "2025-12-31",
        "months": 12,
        "months_ended": 12,
        "source": "the 12 months before period 2",
        "is_esos_reference_period": false
    },
    "period2": {
        "start": "2026-01-01",
        "end": "2026-12-31",
        "months": 12,
        "months_ended": 9,
        "source": "ESOS reference period (audit planner)",
        "is_esos_reference_period": true
    },
    "periods_overlap": false,
    "comparison_caveats": [
        "Period 2 runs to 2026-12-31 but only 9 of its 12 months have ended, so its figures are not yet comparable with period 1; a vehicle without figures in period 2 is listed as no_figures_in_period_2, not as left."
    ],
    "totals": {
        "period1": {
            "vehicles_with_data": 22,
            "esos_kwh": 438900,
            "kwh_recorded": 457300,
            "distance_miles": 341200,
            "carbon_kgco2e": 112040.5,
            "fuel_cost": 55820.1
        },
        "period2": {
            "vehicles_with_data": 24,
            "esos_kwh": 412300,
            "kwh_recorded": 430700,
            "distance_miles": 318200,
            "carbon_kgco2e": 104500.2,
            "fuel_cost": 52310.4
        },
        "change": {
            "esos_kwh": -26600,
            "esos_kwh_pct": -6.1,
            "distance_miles": -23000,
            "distance_miles_pct": -6.7,
            "vehicles_with_data": 2
        }
    },
    "vehicle_counts": {
        "in_both": 20,
        "added": 3,
        "resumed": 1,
        "left": 1,
        "no_figures_in_period_2": 1,
        "in_neither": 1
    },
    "vehicles_added": [
        {
            "id": 340,
            "reg": "EV26 ABC",
            "site_name": "Leeds Depot",
            "type": "Electric van",
            "fuel": "electric",
            "counts_in_esos": false,
            "status": "added",
            "first_data_month": "2026-03",
            "period2": {
                "kwh": 6100,
                "distance_miles": 9800,
                "months_with_data": 7
            }
        }
    ],
    "vehicles_left": [
        {
            "id": 211,
            "reg": "DE19 FGH",
            "site_name": "Leeds Depot",
            "type": "Large Van over 2.0 litre diesel",
            "fuel": "diesel",
            "status": "left",
            "end_date": "2025-11-30",
            "is_archived": true,
            "listed_in_period_2": false,
            "period1": {
                "kwh": 38400,
                "distance_miles": 26100,
                "months_with_data": 11
            }
        },
        {
            "id": 302,
            "reg": "GH21 JKL",
            "site_name": "Leeds Depot",
            "type": "Medium car 1.7-2.0 litre diesel",
            "fuel": "diesel",
            "status": "no_figures_in_period_2",
            "end_date": null,
            "is_archived": false,
            "listed_in_period_2": true,
            "period1": {
                "kwh": 9100,
                "distance_miles": 6200,
                "months_with_data": 12
            }
        }
    ],
    "biggest_changes": [
        {
            "id": 311,
            "reg": "AB12 CDE",
            "site_name": "Leeds Depot",
            "type": "Large Van over 2.0 litre diesel",
            "fuel": "diesel",
            "status": "in_both",
            "period1": {
                "kwh": 52900,
                "distance_miles": 36100
            },
            "period2": {
                "kwh": 41200,
                "distance_miles": 28100
            },
            "change": {
                "kwh": -11700,
                "kwh_pct": -22.1,
                "distance_miles": -8000
            }
        }
    ],
    "by_fuel": [
        {
            "fuel": "diesel",
            "period1_esos_kwh": 438900,
            "period2_esos_kwh": 412300,
            "period1_vehicles": 22,
            "period2_vehicles": 21,
            "change_kwh": -26600,
            "change_pct": -6.1
        }
    ],
    "by_site": [
        {
            "site_id": 4,
            "site_name": "Leeds Depot",
            "period1_esos_kwh": 438900,
            "period2_esos_kwh": 412300,
            "period1_vehicles": 22,
            "period2_vehicles": 21,
            "change_kwh": -26600,
            "change_pct": -6.1
        }
    ],
    "previous_phase": {
        "this_phase": "Phase 4",
        "previous_phase": "Phase 3",
        "account_phase_differs": false,
        "previous_figures_typed": true,
        "groups": [
            {
                "group": "Transport \u2013 Company owned",
                "rows": [
                    {
                        "fuel": "Diesel",
                        "previous_phase_kwh": 512000,
                        "this_phase_kwh": 412300,
                        "change_pct": -19.5,
                        "is_total": false,
                        "typed_in_field": "prev_transport_company_diesel"
                    }
                ]
            }
        ]
    },
    "note": "20 vehicles have figures in both periods, 3 joined, 1 resumed, 1 left and 1 have no figures in period 2. ESOS fleet energy 438,900 kWh in period 1 and 412,300 kWh in period 2 (-6.1%). Period 2 runs to 2026-12-31 but only 9 of its 12 months have ended, so its figures are not yet comparable with period 1; a vehicle without figures in period 2 is listed as no_figures_in_period_2, not as left."
}
POST get_public_transport_data
Get business travel by public transport (bus, train, and tram or tube) over a window, by default the reporting period the pages open on: the miles, the kilometres and the carbon of each type, their totals, and each site's share (by_site). The miles and the carbon are those of the Bus travel, Train travel and Tram and tube travel pages for the period: the sites those pages list, each month's miles at that month's factor, well-to-tank included. Each type also gives its carbon in parts, the part in months a site was not open, the figures the page does not list (a site whose name contains "transport", a site not open in the period) and, for the whole account, the comparison with the carbon footprint. Travel to and from work by public transport (commuting) is a different tool: get_commuting_data.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD (a month alone, YYYY-MM, is that whole month). Pass it with end_date, or neither. The window is read in whole months, at most 36, as the pages show it.
end_date string Last day of the window, YYYY-MM-DD.
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year).
transport_type string
enum: all, bus, train, tram_tube
One type (bus, train, or tram_tube for tram or tube), or all of them (the default). The totals are the types asked for.
sort_by string
enum: transport_type, total_emissions, distance
Order of breakdown_by_transport_type: total_emissions (the default, by carbon), distance (by miles) or transport_type (by name).
sort_order string
enum: asc, desc
desc (the default) or asc.
site_id integer Only the figures of this site (an id from get_sites_list). Without it, every site the login can see. The comparison with the carbon footprint is made for the whole account only.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_public_transport_data","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_data": {
        "total_carbon_kgco2e": 600,
        "total_carbon_tco2e": 0.6,
        "total_distance_miles": 7200,
        "total_distance_km": 11587.28,
        "carbon_breakdown": {
            "base_kgco2e": 492,
            "wtt_kgco2e": 108,
            "tnd_kgco2e": 0
        }
    },
    "breakdown_by_transport_type": {
        "train": {
            "carbon_kgco2e": 360,
            "carbon_tco2e": 0.36,
            "distance_miles": 6000,
            "distance_km": 9656.06,
            "carbon_base_kgco2e": 300,
            "carbon_wtt_kgco2e": 60,
            "carbon_tnd_kgco2e": 0,
            "sites_with_figures": 2,
            "miles_outside_site_dates": 0,
            "carbon_outside_site_dates_kgco2e": 0,
            "not_on_the_page": {
                "entries": 1,
                "miles": 300,
                "note": "1 entry holds figures in the period and is not listed on the Train travel page: 300.00 miles that are in none of the figures here. The carbon footprint counts 300.00 miles of it all the same (a site whose name contains \"transport\")."
            },
            "footprint_reconciliation": {
                "this_tool_kgco2e": {
                    "base": 300,
                    "wtt": 60,
                    "tnd": 0,
                    "total": 360
                },
                "footprint_kgco2e": {
                    "base": 378,
                    "wtt": 0,
                    "tnd": 0,
                    "total": 378
                },
                "difference_kgco2e": -18,
                "explained_by": {
                    "months_outside_site_dates": 0,
                    "months_footprint_not_built_for": 0,
                    "figures_the_page_does_not_list": -18,
                    "changes_since_the_footprint_was_built": 0
                },
                "footprint_needs_updating": false,
                "footprint_months_built": 12,
                "footprint_months_missing": [],
                "basis": "Base, well-to-tank and T&D kg CO2e together. The carbon footprint shows Train travel on one line (\"Train\") with its well-to-tank part included in it, so its parts are split differently from this tool's and only the totals compare. It is rebuilt when someone opens it, not when a figure is typed in.",
                "note": "This tool has 18.0 kg CO2e less than the carbon footprint: figures the page does not list and the footprint counts: a site whose name contains \"transport\" (-18.0 kg)."
            },
            "footprint_note": "This tool has 18.0 kg CO2e less than the carbon footprint: figures the page does not list and the footprint counts: a site whose name contains \"transport\" (-18.0 kg)."
        },
        "bus": {
            "carbon_kgco2e": 240,
            "carbon_tco2e": 0.24,
            "distance_miles": 1200,
            "distance_km": 1931.21,
            "carbon_base_kgco2e": 192,
            "carbon_wtt_kgco2e": 48,
            "carbon_tnd_kgco2e": 0,
            "sites_with_figures": 2,
            "miles_outside_site_dates": 0,
            "carbon_outside_site_dates_kgco2e": 0,
            "not_on_the_page": {
                "entries": 0,
                "miles": 0,
                "note": "Every site that holds figures in the period is listed."
            },
            "footprint_reconciliation": {
                "this_tool_kgco2e": {
                    "base": 192,
                    "wtt": 48,
                    "tnd": 0,
                    "total": 240
                },
                "footprint_kgco2e": {
                    "base": 240,
                    "wtt": 0,
                    "tnd": 0,
                    "total": 240
                },
                "difference_kgco2e": 0,
                "explained_by": {
                    "months_outside_site_dates": 0,
                    "months_footprint_not_built_for": 0,
                    "figures_the_page_does_not_list": 0,
                    "changes_since_the_footprint_was_built": 0
                },
                "footprint_needs_updating": false,
                "footprint_months_built": 12,
                "footprint_months_missing": [],
                "basis": "Base, well-to-tank and T&D kg CO2e together. The carbon footprint shows Bus travel on one line (\"Bus\") with its well-to-tank part included in it, so its parts are split differently from this tool's and only the totals compare. It is rebuilt when someone opens it, not when a figure is typed in.",
                "note": "The carbon footprint and this tool agree on the Bus travel carbon of this window."
            },
            "footprint_note": "The carbon footprint and this tool agree on the Bus travel carbon of this window."
        },
        "tram_tube": {
            "carbon_kgco2e": 0,
            "carbon_tco2e": 0,
            "distance_miles": 0,
            "distance_km": 0,
            "carbon_base_kgco2e": 0,
            "carbon_wtt_kgco2e": 0,
            "carbon_tnd_kgco2e": 0,
            "sites_with_figures": 0,
            "miles_outside_site_dates": 0,
            "carbon_outside_site_dates_kgco2e": 0,
            "not_on_the_page": {
                "entries": 0,
                "miles": 0,
                "note": "Every site that holds figures in the period is listed."
            },
            "footprint_reconciliation": null,
            "footprint_note": "The Tram and tube travel page has not been used on this account, so there is nothing to compare."
        }
    },
    "by_site": [
        {
            "site_id": 1,
            "site_name": "Head Office",
            "distance_miles": 4800,
            "distance_km": 7724.85,
            "carbon_kgco2e": 400,
            "carbon_tco2e": 0.4
        },
        {
            "site_id": 2,
            "site_name": "Leeds Depot",
            "distance_miles": 2400,
            "distance_km": 3862.43,
            "carbon_kgco2e": 200,
            "carbon_tco2e": 0.2
        }
    ],
    "time_period": "reporting_period",
    "date_range": {
        "start": "2025-04-01",
        "end": "2026-03-31"
    },
    "period": {
        "start": "2025-04-01",
        "end": "2026-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2025-04-01",
            "end": "2026-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2025-04-01",
        "list_end": "2026-03-31",
        "last_month_ended": "2026-11"
    },
    "sorted_by": "total_emissions",
    "sort_order": "desc",
    "basis": {
        "figures": "One figure per site and month on each page: the miles travelled on business by bus, by train, or by tram or tube, typed on the Bus travel, Train travel and Tram and tube travel pages. distance_km is the miles times 1.609344.",
        "carbon": "Each month's miles times that month's kg CO2e per mile, well-to-tank included where the factor has it: the Carbon column of each page. The factor is per kilometre and the pages are in miles, so it is converted once (1 mile = 1.609344 km). An account's own factor, where one is set, is used before the platform set.",
        "list": "The sites are the ones the pages list for the period: sites the login sees, open at some time in the period, whose name does not contain \"transport\". Every month on view is added up, the months a site was not open included, as on the pages. by_site adds the types asked for up, site by site.",
        "months": "miles_outside_site_dates and carbon_outside_site_dates_kgco2e are the part in months the site was not open at any time: the pages add them up, the carbon footprint leaves them out.",
        "footprint": "The carbon footprint prices the same figures the same way, leaves out the months a site was not open, also counts sites whose name contains \"transport\", shows the well-to-tank part on the same line as the rest, and is rebuilt when someone opens it. Each type's footprint_reconciliation names every difference; only its totals compare.",
        "commuting": "Business travel only. Travel to and from work by public transport is a different tool: get_commuting_data."
    },
    "note": "Bus travel, Train travel and Tram and tube travel over 2025-04-01 to 2026-03-31 (reporting period (the account ESOS scoping period)): 7,200.00 miles (11,587.28 km) and 0.600 tCO2e on 2 sites, each month's miles priced at that month's factor, as the pages show them. 1 entry holds figures in the period and is not listed on the Train travel page: 300.00 miles that are in none of the figures here. The carbon footprint counts 300.00 miles of it all the same (a site whose name contains \"transport\"). The Tram and tube travel page has not been used on this account, so it adds nothing.",
    "last_updated": "2026-12-01 09:30:00"
}
POST get_staff_mileage_data
Get staff business mileage (the grey fleet: employees driving their own cars for work) claimant by claimant, as the Staff mileage page lists them: miles, kgCO2e as the Staff mileage page shows it (each month's miles at that month's factor for the vehicle type, with the base, well-to-tank and T&D parts apart), the kWh the ESOS report counts for those miles, whether each claimant counts for ESOS, the months each should have claimed and the months missing, the vehicle type and fuel, a fuel-cost estimate at the platform pump prices, totals by fuel and site; and, with time_period esos_reference_period, how the grey-fleet kWh meets the ESOS report figure. Use it for: how much energy is grey fleet, who claims the most, is our mileage data complete for ESOS, which claimants have an unknown vehicle type. Company vehicles are get_company_vehicles; commuting is get_commuting_data.
ParameterTypeDescription
start_date string Start date, YYYY-MM-DD. Use with end_date; whole months are read.
end_date string End date, YYYY-MM-DD. Use with start_date.
time_period string
enum: reporting_period, current_year, last_year, last_month, last_12_months, esos_reference_period
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year). esos_reference_period reads the ESOS reference period of the current phase, counting a month when its 1st falls inside it as the ESOS report does, and compares the total with the report.
claimant_name string Only claimants whose name contains this text.
site_name string Only claimants based at sites whose name contains this text.
sort_by string
enum: total_emissions, distance, kwh, missing_months, claimant_name, site_name
Order of the claimants (default total_emissions).
sort_order string
enum: asc, desc
Sort direction (default desc).
limit integer How many claimants to return (default 100, at most 500). The totals always cover every claimant.
include_months boolean Also return each claimant month by month (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_staff_mileage_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","sort_by":"total_emissions","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_data": {
        "total_carbon_kgco2e": 1227.57,
        "total_carbon_tco2e": 1.23,
        "total_carbon_base_kgco2e": 973.62,
        "total_carbon_wtt_kgco2e": 242.14,
        "total_carbon_tnd_kgco2e": 11.81,
        "total_distance_miles": 5121,
        "total_distance_km": 8241.45,
        "claimant_count": 3,
        "claimants_listed": 3,
        "claimants_with_missing_months": 1,
        "missing_months_total": 1,
        "claimants_with_unknown_vehicle_type": 0,
        "claimants_without_kwh_conversion": 0,
        "claimants_archived": 0,
        "claimants_ended_in_window": 0,
        "total_kwh": 3946,
        "esos_grey_fleet_kwh": 3946,
        "kwh_not_counted_outside_uk": 0,
        "fuel_cost_estimate": {
            "amount": 470.2,
            "currency": "GBP",
            "basis_note": "An estimate at the platform UK pump prices per mile of each vehicle type, as the Staff mileage page shows it; a mileage claim holds no cost."
        },
        "litres_estimate": 327.9,
        "esos_kwh_per_mile": 0.7705,
        "claimants_with_months_with_no_factor": 0,
        "miles_outside_site_dates": 40,
        "carbon_outside_site_dates_kgco2e": 11.54,
        "by_fuel": [
            {
                "fuel": "diesel",
                "claimants": 1,
                "esos_kwh": 2403,
                "distance_miles": 2351,
                "carbon_kgco2e": 767.8
            },
            {
                "fuel": "petrol",
                "claimants": 1,
                "esos_kwh": 967,
                "distance_miles": 980,
                "carbon_kgco2e": 282.61
            },
            {
                "fuel": "electric",
                "claimants": 1,
                "esos_kwh": 576,
                "distance_miles": 1790,
                "carbon_kgco2e": 177.16
            }
        ],
        "by_site": [
            {
                "site_id": 1,
                "site_name": "Head Office",
                "claimants": 2,
                "esos_kwh": 2979,
                "distance_miles": 4141,
                "carbon_kgco2e": 944.96
            },
            {
                "site_id": 2,
                "site_name": "Leeds Depot",
                "claimants": 1,
                "esos_kwh": 967,
                "distance_miles": 980,
                "carbon_kgco2e": 282.61
            }
        ]
    },
    "breakdown_by_claimant": [
        {
            "claimant_id": 201,
            "claimant_name": "Jane Smith",
            "site_id": 1,
            "site_name": "Head Office",
            "carbon_kgco2e": 767.8,
            "carbon_tco2e": 0.77,
            "carbon_base_kgco2e": 616.8,
            "carbon_wtt_kgco2e": 151,
            "carbon_tnd_kgco2e": 0,
            "distance_miles": 2351,
            "distance_km": 3783.57,
            "vehicle_type": "Medium car 1.7-2.0 litre diesel",
            "vehicle_type_known": true,
            "kwh_convertible": true,
            "fuel": "diesel",
            "kwh": 2403,
            "counts_in_esos": true,
            "not_counted_reason": null,
            "fuel_cost_estimate": 328.41,
            "litres_estimate": 226.6,
            "is_archived": false,
            "end_date": null,
            "ended_in_window": false,
            "first_claim_month": "2024-12",
            "months_expected": 12,
            "months_with_claims": 11,
            "months_zero": 0,
            "missing_months": [
                "2025-08"
            ],
            "months_with_no_factor": 0,
            "miles_outside_site_dates": 0
        },
        {
            "claimant_id": 203,
            "claimant_name": "Sam Rees",
            "site_id": 2,
            "site_name": "Leeds Depot",
            "carbon_kgco2e": 282.61,
            "carbon_tco2e": 0.28,
            "carbon_base_kgco2e": 221.43,
            "carbon_wtt_kgco2e": 61.18,
            "carbon_tnd_kgco2e": 0,
            "distance_miles": 980,
            "distance_km": 1577.16,
            "vehicle_type": "Small car up to 1.4 litre petrol",
            "vehicle_type_known": true,
            "kwh_convertible": true,
            "fuel": "petrol",
            "kwh": 967,
            "counts_in_esos": true,
            "not_counted_reason": null,
            "fuel_cost_estimate": 141.79,
            "litres_estimate": 101.3,
            "is_archived": false,
            "end_date": null,
            "ended_in_window": false,
            "first_claim_month": "2024-10",
            "months_expected": 10,
            "months_with_claims": 11,
            "months_zero": 0,
            "missing_months": [],
            "months_with_no_factor": 0,
            "miles_outside_site_dates": 40
        },
        {
            "claimant_id": 202,
            "claimant_name": "Tom Patel",
            "site_id": 1,
            "site_name": "Head Office",
            "carbon_kgco2e": 177.16,
            "carbon_tco2e": 0.18,
            "carbon_base_kgco2e": 135.39,
            "carbon_wtt_kgco2e": 29.96,
            "carbon_tnd_kgco2e": 11.81,
            "distance_miles": 1790,
            "distance_km": 2880.73,
            "vehicle_type": "Electric car",
            "vehicle_type_known": true,
            "kwh_convertible": true,
            "fuel": "electric",
            "kwh": 576,
            "counts_in_esos": true,
            "not_counted_reason": null,
            "fuel_cost_estimate": 0,
            "litres_estimate": 0,
            "is_archived": false,
            "end_date": null,
            "ended_in_window": false,
            "first_claim_month": "2024-11",
            "months_expected": 12,
            "months_with_claims": 12,
            "months_zero": 0,
            "missing_months": [],
            "months_with_no_factor": 0,
            "miles_outside_site_dates": 0
        }
    ],
    "claimants_returned": 3,
    "time_period": "esos_reference_period",
    "date_range": {
        "start": "2025-01-01",
        "end": "2025-12-31"
    },
    "sorted_by": "total_emissions",
    "sort_order": "desc",
    "esos": {
        "is_reference_period": true,
        "reference_period": {
            "start": "2025-01-01",
            "end": "2025-12-31",
            "source": "audit planner"
        },
        "month_rule": "A month counts when its 1st falls inside the period: the ESOS report rule.",
        "months": 12,
        "grey_fleet_kwh": 3946,
        "reconciliation": {
            "esos_report_grey_fleet_kwh": 3949,
            "this_tool_grey_fleet_kwh": 3946,
            "difference_kwh": 3,
            "explained_by": {
                "claimants_the_page_does_not_list": {
                    "claimants": 0,
                    "kwh": 0
                },
                "rounding": 3
            },
            "note": "The ESOS report counts claimants the Staff mileage page does not list (a site outside its operating dates), and rounds each month per vehicle type and site."
        },
        "reconciliation_note": "The ESOS report counts claimants the Staff mileage page does not list (a site outside its operating dates), and rounds each month per vehicle type and site."
    },
    "conversion": {
        "kwh_basis": "The claimed miles converted as the ESOS report converts them: through the vehicle type standard miles per gallon to litres, then kWh per litre of its fuel; a private electric car at one kWh per litre-equivalent. Grey fleet counts for ESOS in full (vehicles charged at the sites are company vehicles, not claims).",
        "carbon_basis": "kgCO2e is each month's miles times that month's factor for the claimant's vehicle type, as the Staff mileage page shows it: the base figure plus well-to-tank plus transmission and distribution losses, with the three parts apart. The carbon footprint files the base under staff mileage and the other two under well-to-tank and T&D. The whole-kilogram figure stored with a claim when it was saved is not used.",
        "cost_basis": "A claim holds no cost: fuel_cost_estimate and litres_estimate are what the Staff mileage page shows, one mile of the vehicle type at the platform UK pump prices.",
        "no_kwh_conversion": "A claimant whose vehicle type the platform does not know, or whose type is a custom one without a miles-per-gallon figure, gives 0 kWh here and in the ESOS report (kwh_convertible false); set a standard vehicle type on the Staff mileage page."
    },
    "note": "3 claimants over 2025-01-01 to 2025-12-31 (ESOS reference period, audit planner), 3 with claims. ESOS grey-fleet energy 3,946 kWh, the claimed miles converted as the ESOS report converts them. 1 claimants have missing months (1 in all). 40.0 miles were claimed in months when the claimant's site was not open: the Staff mileage page counts them and so do these figures; the carbon footprint leaves them out. kgCO2e is each month's miles at that month's factor for the vehicle type, as the Staff mileage page shows it; the fuel cost and litres are estimates at the platform pump prices.",
    "last_updated": "2026-02-10 09:30:00"
}

Deliveries

Inbound and outbound delivery logistics: carbon from vehicle legs, grouped by product or supplier.
POST get_delivery_data
List the delivery routes (delivery types) with their emissions over a window (default: the reporting period the Deliveries page opens on; pass start_date and end_date for another): per route the deliveries counted in the window, the direct, well-to-tank and T&D kg CO2e as the Deliveries page computes them (each month's count times that month's per-delivery factor from the route's legs), the per-delivery factor, the legs' distance and the flags that explain a zero; totals across the routes. Filter by site and direction (inbound from suppliers / outbound to customers); sort by carbon, distance (the legs) or product. For blank months, totals by type, supplier or customer and vehicle, and the comparison with the carbon footprint, call get_delivery_routes.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD; pass it with end_date, or neither for the reporting period the Deliveries page opens on. Read in whole months.
end_date string Last day of the window, YYYY-MM-DD (at most 36 months after start_date).
site_id integer Filter by a specific site ID. If not provided, returns data for all accessible sites.
direction string
enum: inbound, outbound
Filter by delivery direction: "inbound" (from suppliers) or "outbound" (to customers).
sort_by string
enum: carbon, distance, product
Field to sort results by: carbon (total kg CO2e over the window), distance (the legs' miles) or product name. Defaults to carbon.
sort_order string
enum: asc, desc
Sort order: ascending or descending. Defaults to desc.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_delivery_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","direction":"inbound","sort_by":"carbon","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2025-08-01",
        "end": "2026-07-31",
        "months": 12,
        "source": "reporting period (your ESOS scoping period)",
        "is_reporting_period": true,
        "last_month_ended": "2026-10"
    },
    "totals": {
        "carbon_kgco2e": 101200.4,
        "carbon_tco2e": 101.2,
        "wtt_carbon_kgco2e": 27240.2,
        "wtt_carbon_tco2e": 27.24,
        "tnd_carbon_kgco2e": 0,
        "tnd_carbon_tco2e": 0,
        "total_carbon_kgco2e": 128440.6,
        "total_carbon_tco2e": 128.44,
        "deliveries": 9120
    },
    "delivery_type_count": 42,
    "breakdown": [
        {
            "delivery_type_id": 118,
            "product": "Overseas mixed products",
            "supplier_or_customer": "Acme Shipping",
            "direction": "inbound",
            "site_id": 4,
            "site_name": "Leeds Depot",
            "weight_kg": 12000,
            "calc_method": "WEIGHT_DISTANCE",
            "deliveries": 48,
            "carbon_kgco2e": 17100,
            "wtt_carbon_kgco2e": 4550.2,
            "tnd_carbon_kgco2e": 0,
            "total_carbon_kgco2e": 21650.2,
            "total_carbon_tco2e": 21.65,
            "per_delivery_kgco2e": 451.046,
            "legs_distance_miles": 6240,
            "is_estimated": false,
            "flags": {
                "no_legs": false,
                "weight_missing": false,
                "all_legs_zero_distance": false,
                "vehicle_unknown": false,
                "no_factor": false
            }
        }
    ],
    "filters": {
        "site_id": null,
        "direction": null
    },
    "sorted_by": "carbon",
    "sort_order": "desc",
    "last_updated": "2026-11-09 09:30:00"
}
POST get_delivery_type_details
Get one delivery route (delivery type) by id with its journey legs (vehicle, distance, whether the factor needs the route weight) and its emissions over a window (default: the reporting period the Deliveries page opens on; pass start_date and end_date for another): the deliveries counted, the direct, well-to-tank and T&D kg CO2e as the Deliveries page computes them, the per-delivery factor, the blank months and the flags that explain a zero; include_months adds each month's count and carbon. To find a route id by name, call get_delivery_routes with search.
ParameterTypeDescription
delivery_type_id
required
integer The ID of the delivery type (route) to retrieve details for.
start_date string First day of the window, YYYY-MM-DD; pass it with end_date, or neither for the reporting period the Deliveries page opens on. Read in whole months.
end_date string Last day of the window, YYYY-MM-DD (at most 36 months after start_date).
include_legs boolean Whether to include journey leg details (vehicle types and distances). Defaults to true.
include_months boolean Also return the route month by month: the count (null when never typed in), its carbon and the per-delivery factor (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_delivery_type_details","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "delivery_type": {
        "id": 118,
        "product": "Overseas mixed products",
        "supplier_or_customer": "Acme Shipping",
        "direction": "inbound",
        "direction_label": "From Supplier",
        "site_id": 4,
        "site_name": "Leeds Depot",
        "supplier_id": null,
        "weight_kg": 12000,
        "calc_method": "WEIGHT_DISTANCE",
        "is_estimated": false,
        "carbon": {
            "deliveries": 48,
            "carbon_kgco2e": 17100,
            "carbon_tco2e": 17.1,
            "wtt_carbon_kgco2e": 4550.2,
            "wtt_carbon_tco2e": 4.55,
            "tnd_carbon_kgco2e": 0,
            "tnd_carbon_tco2e": 0,
            "total_carbon_kgco2e": 21650.2,
            "total_carbon_tco2e": 21.65,
            "per_delivery_kgco2e": 451.046
        },
        "vehicle_distances": [],
        "notes": "Weekly container from the main distributor",
        "months_in_window": 12,
        "months_with_entries": 12,
        "months_zero": 0,
        "blank_months": [],
        "months_page_shows_zero_carbon": [],
        "first_month_recorded": "2019-01",
        "last_month_recorded": "2026-07",
        "flags": {
            "no_legs": false,
            "weight_missing": false,
            "all_legs_zero_distance": false,
            "vehicle_unknown": false,
            "no_factor": false
        },
        "legs_summary": {
            "leg_count": 2,
            "total_distance_miles": 6240,
            "total_distance_km": 10042.31
        }
    },
    "legs": [
        {
            "leg_id": 1,
            "vehicle_type": "systemTypeDeliveryRigids100Laden",
            "vehicle": "Rigids, 100% Laden",
            "distance_miles": 40,
            "distance_km": 64.37,
            "sort_order": 1,
            "factor_unit": "tonne-km",
            "needs_weight": true
        },
        {
            "leg_id": 2,
            "vehicle_type": "systemTypeDeliveryGeneralCargoAverage",
            "vehicle": "General cargo, Average",
            "distance_miles": 6200,
            "distance_km": 9977.93,
            "sort_order": 2,
            "factor_unit": "tonne-km",
            "needs_weight": true
        }
    ],
    "include_legs": true,
    "period": {
        "start": "2025-08-01",
        "end": "2026-07-31",
        "months": 12,
        "source": "reporting period (your ESOS scoping period)",
        "is_reporting_period": true,
        "last_month_ended": "2026-10"
    },
    "last_updated": "2026-11-09 09:30:00"
}
POST get_delivery_carbon_summary
Delivery emissions over a window (default: the reporting period the Deliveries page opens on; pass start_date and end_date for another) grouped by site or by direction (inbound from suppliers / outbound to customers), as the Deliveries page computes them: per group the routes, the deliveries counted, the direct, well-to-tank and T&D kg CO2e and tonnes, and totals. Filter by site. For route-level detail, blank months and the comparison with the carbon footprint, call get_delivery_routes.
ParameterTypeDescription
group_by string
enum: site, direction
How to group the results: "site" groups by location, "direction" groups by inbound/outbound. Defaults to site.
start_date string First day of the window, YYYY-MM-DD; pass it with end_date, or neither for the reporting period the Deliveries page opens on. Read in whole months.
end_date string Last day of the window, YYYY-MM-DD (at most 36 months after start_date).
site_id integer Filter by a specific site ID. If not provided, returns data for all accessible sites.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_delivery_carbon_summary","arguments":{"group_by":"site","start_date":"2024-04-01","end_date":"2025-03-31"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2025-08-01",
        "end": "2026-07-31",
        "months": 12,
        "source": "reporting period (your ESOS scoping period)",
        "is_reporting_period": true,
        "last_month_ended": "2026-10"
    },
    "totals": {
        "carbon_kgco2e": 101200.4,
        "carbon_tco2e": 101.2,
        "wtt_carbon_kgco2e": 27240.2,
        "wtt_carbon_tco2e": 27.24,
        "tnd_carbon_kgco2e": 0,
        "tnd_carbon_tco2e": 0,
        "total_carbon_kgco2e": 128440.6,
        "total_carbon_tco2e": 128.44,
        "deliveries": 9120,
        "delivery_type_count": 42
    },
    "group_by": "direction",
    "group_count": 2,
    "breakdown": [
        {
            "group": "inbound",
            "label": "From Suppliers (Inbound)",
            "delivery_count": 35,
            "deliveries": 8400,
            "carbon_kgco2e": 94400.1,
            "carbon_tco2e": 94.4,
            "wtt_carbon_kgco2e": 25400,
            "wtt_carbon_tco2e": 25.4,
            "tnd_carbon_kgco2e": 0,
            "tnd_carbon_tco2e": 0,
            "total_carbon_kgco2e": 119800.1,
            "total_carbon_tco2e": 119.8
        },
        {
            "group": "outbound",
            "label": "To Customers (Outbound)",
            "delivery_count": 7,
            "deliveries": 720,
            "carbon_kgco2e": 6800.3,
            "carbon_tco2e": 6.8,
            "wtt_carbon_kgco2e": 1840.2,
            "wtt_carbon_tco2e": 1.84,
            "tnd_carbon_kgco2e": 0,
            "tnd_carbon_tco2e": 0,
            "total_carbon_kgco2e": 8640.5,
            "total_carbon_tco2e": 8.64
        }
    ],
    "filters": {
        "site_id": null
    },
    "last_updated": "2026-11-09 09:30:00"
}
POST get_delivery_routes
Get the delivery routes route by route over a window (default: the reporting period the Deliveries page opens on): each route with its site, direction (inbound or outbound), supplier or customer, legs, the monthly delivery counts and the blank months, and its carbon as the page computes it: each month's count times the route's per-delivery kg CO2e for that month; totals by direction, site, delivery type, supplier or customer and vehicle; flags that explain a zero (no legs, no weight, zero distance, unknown vehicle) and estimator-made routes; and how the whole-account figure meets the carbon footprint (sections 3.04 and 3.09). Use it for delivery emissions over a period, the biggest routes, suppliers or sites, inbound against outbound, missing months, why a route shows zero. Deliveries are scope 3 and are not part of ESOS. get_delivery_data, get_delivery_type_details and get_delivery_carbon_summary read the same figures in their older shapes.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD. Pass it with end_date, or neither for the reporting period the Deliveries page opens on. The window is read in whole months (the month of start_date to the month of end_date), as the page shows it.
end_date string Last day of the window, YYYY-MM-DD (at most 36 months after start_date).
site_id integer Only the routes of this site.
direction string
enum: inbound, outbound
Only inbound routes (from suppliers; the page says Upstream, footprint section 3.04) or only outbound routes (to customers; Downstream, 3.09).
delivery_type string Only routes with this description (the Delivery type dropdown on the page), whole value, any case; "none" (or the page's own "__blank__") picks the routes with no description.
supplier_or_customer string Only routes with this supplier or customer name, whole value, any case; "none" picks the routes with no name.
search string Only routes whose name as the page prints it ("Site: description from supplier") contains this text.
sort_by string
enum: carbon, deliveries, blank_months, route
Order of the routes list: carbon (default, biggest first), deliveries (most first), blank_months (most first) or route (by name). The summary always covers every route.
limit integer How many routes to return (default 50, at most 500). The summary always covers every route.
include_legs boolean Return each route's legs (default true).
include_months boolean Also return each route month by month: the count (null when the month was never typed in), its carbon and the per-delivery factor (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_delivery_routes","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","direction":"inbound","sort_by":"carbon"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2025-08-01",
        "end": "2026-07-31",
        "months": 12,
        "source": "reporting period (your ESOS scoping period)",
        "is_reporting_period": true,
        "last_month_ended": "2026-10"
    },
    "summary": {
        "routes_total": 42,
        "routes_with_deliveries": 37,
        "routes_without_deliveries_in_window": 5,
        "routes_estimated": 0,
        "deliveries": 9120,
        "carbon_kgco2e": 128440.6,
        "carbon_tco2e": 128.441,
        "base_kgco2e": 101200.4,
        "wtt_kgco2e": 27240.2,
        "tnd_kgco2e": 0,
        "data_quality": {
            "routes_with_no_legs": 1,
            "routes_needing_weight": 2,
            "routes_with_zero_distance_legs": 0,
            "routes_with_unknown_vehicles": 0,
            "routes_with_no_factor": 0,
            "routes_with_blank_months": 9,
            "months_blank": 31,
            "months_zero": 140,
            "months_outside_site_dates": 0
        },
        "by_direction": [
            {
                "direction": "inbound",
                "page_label": "Upstream",
                "footprint_section": "3.04",
                "routes": 35,
                "routes_with_deliveries": 31,
                "deliveries": 8400,
                "carbon_kgco2e": 119800.1,
                "carbon_tco2e": 119.8
            }
        ],
        "by_site": [
            {
                "site_id": 4,
                "site_name": "Leeds Depot",
                "routes": 20,
                "deliveries": 6100,
                "carbon_kgco2e": 84100.3,
                "carbon_tco2e": 84.1
            }
        ],
        "by_vehicle": [
            {
                "vehicle": "General cargo, Average",
                "vehicle_key": "systemTypeDeliveryGeneralCargoAverage",
                "legs": 18,
                "routes": 18,
                "legs_distance_miles": 61200,
                "carbon_kgco2e": 70300.5,
                "carbon_tco2e": 70.301
            }
        ],
        "footprint_reconciliation": {
            "footprint_kgco2e": 128440.6,
            "this_tool_kgco2e": 128440.6,
            "difference_kgco2e": 0,
            "footprint_months_built": 12,
            "footprint_months_missing": []
        }
    },
    "routes_total": 42,
    "routes_returned": 1,
    "sorted_by": "carbon",
    "routes": [
        {
            "id": 118,
            "name": "Leeds Depot: Overseas mixed products from Acme Shipping",
            "description": "Overseas mixed products",
            "supplier_or_customer": "Acme Shipping",
            "direction": "inbound",
            "direction_page_label": "Upstream",
            "site_id": 4,
            "site_name": "Leeds Depot",
            "is_estimated": false,
            "calc_method": "weight_and_distance",
            "weight_kg": 12000,
            "legs_count": 2,
            "legs_distance_miles": 6240,
            "deliveries": 48,
            "carbon_kgco2e": 21650.2,
            "carbon_tco2e": 21.65,
            "base_kgco2e": 17100,
            "wtt_kgco2e": 4550.2,
            "per_delivery_kgco2e": 451.046,
            "months_in_window": 12,
            "months_with_entries": 12,
            "months_zero": 0,
            "months_blank": 0,
            "blank_months": [],
            "months_outside_site_dates": [],
            "flags": {
                "no_legs": false,
                "weight_missing": false,
                "all_legs_zero_distance": false,
                "vehicle_unknown": false,
                "no_factor": false
            },
            "legs": [
                {
                    "vehicle": "General cargo, Average",
                    "vehicle_key": "systemTypeDeliveryGeneralCargoAverage",
                    "vehicle_known": true,
                    "distance_miles": 6200,
                    "distance_km": 9977.9,
                    "factor_unit": "tonne-km",
                    "needs_weight": true
                }
            ]
        }
    ],
    "note": "42 delivery routes over 2025-08-01 to 2026-07-31 (reporting period (your ESOS scoping period)), 1 returned, 37 with deliveries in the window. 9,120 deliveries, 128.441 tCO2e, each month counted at that month's factor as the Deliveries page shows it."
}

Waste

Waste volumes by type and destination (landfill, recycling, composting, etc.) with recycling-rate metrics.
POST get_waste_data
Get waste totals with a breakdown by kind of waste and destination (landfill, recycle, combustion, composting, anaerobic digestion, rendering, incineration) over a window, with the recycling rate and, per row, the carbon as the Waste page computes it. With no dates and no time_period the window is the reporting period the Waste page opens on. Can filter by destination and site, and sort by weight, type or destination. For the types one by one, the months, the flags and the footprint comparison use get_waste_types.
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format (read in whole months, as the page shows them)
end_date string End date in YYYY-MM-DD format
time_period string
enum: reporting_period, current_year, last_year, last_month, last_12_months
A calendar preset (last_12_months = the last twelve whole months); omit it and the dates for the reporting period the Waste page opens on.
destination string
enum: landfill, recycle, combustion, composting, anaerobic_digestion, rendering, high_temperature_incineration
Filter by waste destination (the destination contains the word, any case). If not provided, returns all destinations.
site_id integer Filter by a specific site ID. If not provided, returns data for all accessible sites.
sort_by string
enum: weight, type, destination
Field to sort results by. Defaults to weight (highest first).
sort_order string
enum: asc, desc
Sort order: ascending or descending. Defaults to desc.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_waste_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","destination":"landfill","sort_by":"weight","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "summary": {
        "total_kg": 142600,
        "total_tonnes": 142.6,
        "recycling_rate_percent": 68.86,
        "landfill_kg": 31400,
        "recycled_kg": 98200,
        "other_kg": 13000,
        "carbon_kgco2e": 4180.4,
        "carbon_tco2e": 4.18
    },
    "breakdown": [
        {
            "waste_type": "Commercial and industrial waste",
            "destination": "Landfill",
            "total_kg": 31400,
            "total_tonnes": 31.4,
            "percentage_of_total": 22.02,
            "carbon_kgco2e": 3806.9,
            "carbon_tco2e": 3.807,
            "types": 2
        },
        {
            "waste_type": "Mixed Recycling",
            "destination": "Recycle",
            "total_kg": 98200,
            "total_tonnes": 98.2,
            "percentage_of_total": 68.86,
            "carbon_kgco2e": 2089.7,
            "carbon_tco2e": 2.09,
            "types": 4
        }
    ],
    "time_period": "reporting_period",
    "date_range": {
        "start": "2025-08-01",
        "end": "2026-07-31"
    },
    "period": {
        "start": "2025-08-01",
        "end": "2026-07-31",
        "months": 12,
        "source": "reporting period (your ESOS scoping period)",
        "is_reporting_period": true
    },
    "filters": {
        "destination": null,
        "site_id": null
    },
    "sorted_by": "weight",
    "sort_order": "desc",
    "last_updated": "2026-11-10 09:30:00"
}
POST get_waste_by_site
Get waste broken down by site over a window: each site's total weight, recycling rate, destination breakdown (landfill, recycle, combustion, composting and so on) and, new, its carbon as the Waste page computes it. With no dates and no time_period the window is the reporting period the Waste page opens on. Can sort by site name or total weight. For the types one by one, the months and the flags use get_waste_types.
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format (read in whole months, as the page shows them)
end_date string End date in YYYY-MM-DD format
time_period string
enum: reporting_period, current_year, last_year, last_month, last_12_months
A calendar preset (last_12_months = the last twelve whole months); omit it and the dates for the reporting period the Waste page opens on.
sort_by string
enum: site_name, total_weight
Field to sort results by. Defaults to total_weight (highest first); site_name is A to Z unless sort_order says desc.
sort_order string
enum: asc, desc
Sort order: ascending or descending.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_waste_by_site","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","sort_by":"site_name","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_kg": 142600,
    "total_tonnes": 142.6,
    "carbon_kgco2e": 4180.4,
    "carbon_tco2e": 4.18,
    "recycling_rate_percent": 68.86,
    "site_count": 2,
    "time_period": "reporting_period",
    "date_range": {
        "start": "2025-08-01",
        "end": "2026-07-31"
    },
    "sorted_by": "total_weight",
    "sort_order": "desc",
    "sites": [
        {
            "site_id": 4,
            "site_name": "Leeds Depot",
            "total_kg": 101200,
            "total_tonnes": 101.2,
            "recycled_kg": 70100,
            "recycling_rate_percent": 69.27,
            "carbon_kgco2e": 3010.5,
            "carbon_tco2e": 3.011,
            "types": 5,
            "destination_breakdown": [
                {
                    "destination": "Recycle",
                    "total_kg": 70100,
                    "total_tonnes": 70.1,
                    "carbon_kgco2e": 1491.7
                },
                {
                    "destination": "Landfill",
                    "total_kg": 31100,
                    "total_tonnes": 31.1,
                    "carbon_kgco2e": 1518.8
                }
            ]
        }
    ],
    "last_updated": "2026-11-10 09:30:00"
}
POST get_waste_comparison
Compare waste between two periods: total weight, recycling rate, kilograms by destination and, new, carbon as the Waste page computes it, with the absolute and percentage changes. Each period is read in whole months, as the page shows them, up to 36 months, and must run forwards. Useful for year-on-year, month-on-month or any custom period comparison. For the types one by one use get_waste_types.
ParameterTypeDescription
period1_start
required
string Start date of first (baseline) period in YYYY-MM-DD format
period1_end
required
string End date of first (baseline) period in YYYY-MM-DD format
period2_start
required
string Start date of second (comparison) period in YYYY-MM-DD format
period2_end
required
string End date of second (comparison) period in YYYY-MM-DD format
site_id integer Filter by a specific site ID. If not provided, compares data for all accessible sites.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_waste_comparison","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period1": {
        "date_range": {
            "start": "2024-08-01",
            "end": "2025-07-31"
        },
        "total_kg": 151000,
        "total_tonnes": 151,
        "recycling_rate_percent": 65.2,
        "carbon_kgco2e": 4650.1,
        "carbon_tco2e": 4.65,
        "by_destination": {
            "Landfill": 52500,
            "Recycle": 98500
        }
    },
    "period2": {
        "date_range": {
            "start": "2025-08-01",
            "end": "2026-07-31"
        },
        "total_kg": 142600,
        "total_tonnes": 142.6,
        "recycling_rate_percent": 68.86,
        "carbon_kgco2e": 4180.4,
        "carbon_tco2e": 4.18,
        "by_destination": {
            "Landfill": 31400,
            "Recycle": 98200
        }
    },
    "changes": {
        "weight_change_kg": -8400,
        "weight_change_tonnes": -8.4,
        "weight_change_percent": -5.56,
        "recycling_rate_change_points": 3.66,
        "carbon_change_kgco2e": -469.7,
        "carbon_change_percent": -10.1,
        "direction": "decrease"
    },
    "destination_changes": {
        "Landfill": {
            "period1_kg": 52500,
            "period2_kg": 31400,
            "change_kg": -21100,
            "change_percent": -40.19,
            "direction": "decrease"
        }
    },
    "filters": {
        "site_id": null
    },
    "last_updated": "2026-11-10 09:30:00"
}
POST get_waste_types
Get the waste types type by type over a window (default: the reporting period the Waste page opens on): each type with its site, kind of waste, destination (landfill, recycle, combustion, composting, anaerobic digestion and so on), unit, the monthly tonnes and the blank months, and its carbon as the page computes it: each month's tonnes times the type's kg CO2e per unit for that month; totals by site, kind and destination, the recycling rate; flags that explain a zero (no option key, unknown option, no factor, a unit other than tonnes) and estimator-made types; and how the whole-account figure meets the carbon footprint (module waste, section 3.05). Use it for waste emissions over a period, the biggest kinds, destinations or sites, the recycling rate, missing months, why a type shows zero. Waste is scope 3 and is not part of ESOS. get_waste_data, get_waste_by_site and get_waste_comparison read the same figures in their older shapes.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD. Pass it with end_date, or neither for the reporting period the Waste page opens on. The window is read in whole months (the month of start_date to the month of end_date), as the page shows it.
end_date string Last day of the window, YYYY-MM-DD (at most 36 months after start_date).
site_id integer Only the types of this site.
waste_type string Only types of this kind of waste (the Type column on the page), whole value, any case.
destination string Only types with this destination (the Destination column), whole value, any case; "none" picks the types with no destination.
search string Only types whose line ("Site: kind to destination") contains this text.
sort_by string
enum: carbon, tonnes, blank_months, type
Order of the types list: carbon (default, biggest first), tonnes (most first), blank_months (most first) or type (by name). The summary always covers every type.
limit integer How many types to return (default 50, at most 500). The summary always covers every type.
include_months boolean Also return each type month by month: the tonnes (null when the month was never typed in), its carbon and the factor (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_waste_types","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","sort_by":"carbon"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2025-08-01",
        "end": "2026-07-31",
        "months": 12,
        "source": "reporting period (your ESOS scoping period)",
        "is_reporting_period": true,
        "last_month_ended": "2026-10"
    },
    "summary": {
        "types_total": 9,
        "types_with_waste": 8,
        "types_without_waste_in_window": 1,
        "types_estimated": 0,
        "tonnes": 142.6,
        "kg_of_waste": 142600,
        "carbon_kgco2e": 4180.4,
        "carbon_tco2e": 4.18,
        "base_kgco2e": 4180.4,
        "wtt_kgco2e": 0,
        "tnd_kgco2e": 0,
        "recycled_kg": 98200,
        "landfill_kg": 31400,
        "recycling_rate_percent": 68.86,
        "data_quality": {
            "types_without_option_key": 0,
            "types_with_unknown_option": 0,
            "types_with_unit_not_tonnes": 0,
            "types_with_no_factor": 0,
            "types_with_waste_but_no_carbon": 0,
            "types_with_blank_months": 3,
            "months_blank": 7,
            "months_zero": 12,
            "months_outside_site_dates": 0
        },
        "by_site": [
            {
                "site_id": 4,
                "site_name": "Leeds Depot",
                "types": 5,
                "tonnes": 101.2,
                "share_of_tonnes_percent": 70.97,
                "carbon_kgco2e": 3010.5,
                "carbon_tco2e": 3.011
            }
        ],
        "by_destination": [
            {
                "destination": "Landfill",
                "types": 2,
                "tonnes": 31.4,
                "share_of_tonnes_percent": 22.02,
                "carbon_kgco2e": 3806.9,
                "carbon_tco2e": 3.807
            }
        ],
        "footprint_reconciliation": {
            "footprint_module": "waste",
            "footprint_section": "3.05",
            "footprint_kgco2e": 4180.4,
            "this_tool_kgco2e": 4180.4,
            "difference_kgco2e": 0,
            "footprint_months_built": 12,
            "footprint_months_missing": []
        }
    },
    "types_total": 9,
    "types_returned": 1,
    "sorted_by": "carbon",
    "types": [
        {
            "id": 31,
            "name": "Leeds Depot: Commercial and industrial waste to Landfill",
            "waste_type": "Commercial and industrial waste",
            "destination": "Landfill",
            "site_id": 4,
            "site_name": "Leeds Depot",
            "option_key": "customType6dc6f0fe1f5fCommercialandindustrialwaste",
            "option_found": true,
            "unit": "tonnes",
            "is_estimated": false,
            "tonnes": 7.3,
            "carbon_kgco2e": 3806.9,
            "carbon_tco2e": 3.807,
            "factor_kgco2e_per_unit": 520.335,
            "factor_source": "factor table",
            "months_in_window": 12,
            "months_with_entries": 12,
            "months_zero": 0,
            "months_blank": 0,
            "blank_months": [],
            "months_outside_site_dates": [],
            "flags": {
                "no_option_key": false,
                "option_unknown": false,
                "unit_not_tonnes": false,
                "no_factor": false
            }
        }
    ],
    "basis": {
        "carbon": "Each month's tonnes times the type's kg CO2e per unit for that month \u2026",
        "esos": "Waste is scope 3 and is not part of the ESOS energy figure."
    },
    "note": "9 waste types over 2025-08-01 to 2026-07-31 (reporting period (your ESOS scoping period)), 1 returned, 8 with waste in the window. 142.600 tonnes, 4.180 tCO2e, each month priced at that month's factor as the Waste page shows it; recycling rate 68.9% by the older tools' rule.",
    "as_of": "2026-11-10 09:30:00"
}

Supply Chain

Scope 3 upstream emissions from purchased goods and services. Spend-based and supplier-specific data.
POST get_supply_chain_data
Supply chain carbon and spend by Scope 3 category: what was bought from suppliers over a period, worked out as the carbon footprint works it out (each month the amount times the factor of the supplier for that month), with suppliers marked excluded left out as on the Supply chain page. Returns the total, each section with its carbon, spend and number of suppliers, the excluded suppliers, purchases with no supplier, and a comparison with the supply chain figure the carbon footprint holds. This is supply chain only: for waste, business travel, deliveries and the rest of Scope 3 use get_carbon_by_module with scope 3; for the suppliers one by one use get_supplier_emissions. Spend is in the account currency and counts money only (a supplier priced per product or material has a quantity, not spend). Defaults to the reporting period the Supply chain page opens on; whole months, at most 36.
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format
end_date string End date in YYYY-MM-DD format
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year).
section string Only suppliers filed under this section, written as stored with two digits, for example "3.01" (not "3.1").
site_id integer Only purchases whose purchase code belongs to this site.
sort_by string
enum: carbon, spend, section
Order of the sections (default section).
sort_order string
enum: asc, desc
Sort order. Defaults to asc.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_supply_chain_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","sort_by":"carbon","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_spend": 502800,
    "total_carbon_kgco2e": 214932,
    "total_carbon_tco2e": 214.932,
    "currency": "\u00a3",
    "time_period": "reporting_period",
    "date_range": {
        "start": "2025-04-01",
        "end": "2026-03-31"
    },
    "period": {
        "start": "2025-04-01",
        "end": "2026-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2025-04-01",
            "end": "2026-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2025-04-01",
        "list_end": "2026-03-31",
        "last_month_ended": "2026-10"
    },
    "section_filter": null,
    "site_id_filter": null,
    "section_count": 2,
    "breakdown": [
        {
            "section": "3.01",
            "section_name": "Purchased goods & services",
            "suppliers": 2,
            "suppliers_priced_by_quantity": 0,
            "spend": 436800,
            "carbon_kgco2e": 187872,
            "carbon_tco2e": 187.872,
            "percentage_of_total_carbon": 87.41
        },
        {
            "section": "3.06",
            "section_name": "Business travel",
            "suppliers": 1,
            "suppliers_priced_by_quantity": 0,
            "spend": 66000,
            "carbon_kgco2e": 27060,
            "carbon_tco2e": 27.06,
            "percentage_of_total_carbon": 12.59
        }
    ],
    "sorted_by": "section",
    "sort_order": "asc",
    "excluded_suppliers": {
        "count": 1,
        "carbon_tco2e": 4.2
    },
    "no_supplier": null,
    "not_counted": {
        "entries_with_no_purchase_code": 0,
        "entries_on_sites_not_counted": 0,
        "entries_outside_site_dates": 0
    },
    "compared_with_the_carbon_footprint": {
        "carbon_footprint_supply_chain_tco2e": 219.132,
        "this_tool_every_supplier_tco2e": 219.132,
        "difference_tco2e": 0,
        "agrees": true,
        "note": "The carbon footprint holds the same supply chain figure for these months and sites (it counts excluded suppliers too).",
        "covers": "every section of these months and sites, whatever section filter is set"
    },
    "where": {
        "label": "3.01 Supply chain",
        "url": "/plato/plato_supply_chain.php"
    },
    "notes": [
        "This is supply chain only: the carbon of what was bought from suppliers, each month's amount times the supplier's factor for that month. Waste, business travel, deliveries, commuting and the other Scope 3 categories are not in this figure: use get_carbon_by_module with scope 3 for those.",
        "Well-to-tank and transmission losses are inside each supplier's factor, so supply chain has no separate well-to-tank line.",
        "1 supplier is marked excluded: the Supply chain page leaves it out and so do these figures, but the carbon footprint still counts its 4.2 tCO2e."
    ],
    "last_updated": "2026-11-30 09:30:00"
}
POST get_supplier_list
List suppliers with their tier (1/2/3), grade (a+, a, a-, b, c or d), verification status, carbon module info and how their carbon is worked out. Can filter by tier, grade, verified status, and search by name. It has no carbon or spend figures: for those use get_supplier_emissions.
ParameterTypeDescription
tier integer
enum: 1, 2, 3
Filter by supplier tier (1, 2, or 3)
grade string
enum: a+, a, a-, b, c, d
Filter by supplier grade as the Supply chain page stores it: a+, a, a-, b, c or d (one grade exactly: "a" does not include a+ or a-).
verified_only boolean If true, only return verified suppliers
search string Search term to filter by supplier name or display name (partial match)
sort_by string
enum: name, tier, grade
Sort results by this field. Defaults to name.
sort_order string
enum: asc, desc
Sort order. Defaults to asc.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_supplier_list","arguments":{"tier":1,"grade":"a+","sort_by":"name","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_count": 3,
    "tier_breakdown": {
        "tier_1": 2,
        "tier_2": 1,
        "tier_3": 0
    },
    "grade_breakdown": {
        "a+": 1,
        "a": 0,
        "a-": 0,
        "b": 1,
        "c": 1,
        "d": 0,
        "none": 0
    },
    "filters_applied": {
        "tier": null,
        "grade": null,
        "verified_only": false,
        "search": null
    },
    "sorted_by": "name",
    "sort_order": "asc",
    "suppliers": [
        {
            "id": 21,
            "name": "Clearwater Office Supplies",
            "display_name": null,
            "tier": 2,
            "grade": "c",
            "verified": false,
            "carbon_module": "SC_PurchasedGoodsAndServices",
            "carbon_factor_type": "industry_average",
            "carbon_method": "an industry average",
            "email": null,
            "website": null,
            "code": "SUP-021"
        },
        {
            "id": 14,
            "name": "NORTHERN STEEL LIMITED",
            "display_name": "Northern Steel Ltd",
            "tier": 1,
            "grade": "b",
            "verified": true,
            "carbon_module": "SC_PurchasedGoodsAndServices",
            "carbon_factor_type": "defined_value",
            "carbon_method": "a factor set for this supplier",
            "email": "sustainability@northernsteel.example",
            "website": "northernsteel.example",
            "code": "SUP-014"
        },
        {
            "id": 30,
            "name": "Skyline Travel Management",
            "display_name": null,
            "tier": 1,
            "grade": "a+",
            "verified": true,
            "carbon_module": "SC_BusinessTravel",
            "carbon_factor_type": "industry_average",
            "carbon_method": "an industry average",
            "email": "accounts@skylinetravel.example",
            "website": "skylinetravel.example",
            "code": "SUP-030"
        }
    ],
    "last_updated": "2026-11-30 09:30:00"
}
POST get_supply_chain_comparison
Compare supply chain carbon and spend between two periods: the totals and each Scope 3 section with the absolute and percentage changes. Supply chain only: what was bought from suppliers, priced as get_supply_chain_data and get_supplier_emissions price it, with suppliers marked excluded left out, so each period's total is get_supply_chain_data's total for the same dates. Each period is read in whole months, up to 36, and must run forwards; a note says when the two periods are not the same length. Spend counts money only and is in the account currency. For the rest of Scope 3 (waste, business travel, deliveries) use get_carbon_by_module with scope 3.
ParameterTypeDescription
period1_start
required
string Start date of first (baseline) period in YYYY-MM-DD format
period1_end
required
string End date of first (baseline) period in YYYY-MM-DD format
period2_start
required
string Start date of second (comparison) period in YYYY-MM-DD format
period2_end
required
string End date of second (comparison) period in YYYY-MM-DD format
section string Only suppliers filed under this section, written as stored with two digits, for example "3.01" (not "3.1").
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_supply_chain_comparison","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period1": {
        "date_range": {
            "start": "2024-04-01",
            "end": "2025-03-31"
        },
        "total_spend": 512400,
        "total_carbon_kgco2e": 220056,
        "total_carbon_tco2e": 220.056,
        "months": 12,
        "suppliers": 3,
        "excluded_suppliers": {
            "count": 1,
            "carbon_tco2e": 4.2
        },
        "compared_with_the_carbon_footprint": {
            "carbon_footprint_supply_chain_tco2e": 224.256,
            "this_tool_every_supplier_tco2e": 224.256,
            "difference_tco2e": 0,
            "agrees": true,
            "note": "The carbon footprint holds the same supply chain figure for these months and sites (it counts excluded suppliers too).",
            "covers": "every section of these months and sites, whatever section filter is set"
        },
        "notes": [
            "1 supplier is marked excluded: the Supply chain page leaves it out and so do these figures, but the carbon footprint still counts its 4.2 tCO2e."
        ]
    },
    "period2": {
        "date_range": {
            "start": "2025-04-01",
            "end": "2026-03-31"
        },
        "total_spend": 502800,
        "total_carbon_kgco2e": 214932,
        "total_carbon_tco2e": 214.932,
        "months": 12,
        "suppliers": 3,
        "excluded_suppliers": {
            "count": 1,
            "carbon_tco2e": 4.2
        },
        "compared_with_the_carbon_footprint": {
            "carbon_footprint_supply_chain_tco2e": 219.132,
            "this_tool_every_supplier_tco2e": 219.132,
            "difference_tco2e": 0,
            "agrees": true,
            "note": "The carbon footprint holds the same supply chain figure for these months and sites (it counts excluded suppliers too).",
            "covers": "every section of these months and sites, whatever section filter is set"
        },
        "notes": [
            "1 supplier is marked excluded: the Supply chain page leaves it out and so do these figures, but the carbon footprint still counts its 4.2 tCO2e."
        ]
    },
    "changes": {
        "spend_change": -9600,
        "spend_change_percentage": -1.87,
        "spend_direction": "decrease",
        "carbon_change_kgco2e": -5124,
        "carbon_change_tco2e": -5.124,
        "carbon_change_percentage": -2.33,
        "carbon_direction": "decrease"
    },
    "breakdown_by_section": [
        {
            "section": "3.01",
            "section_name": "Purchased goods & services",
            "period1": {
                "spend": 464400,
                "carbon_kgco2e": 200376,
                "carbon_tco2e": 200.376,
                "suppliers": 2
            },
            "period2": {
                "spend": 436800,
                "carbon_kgco2e": 187872,
                "carbon_tco2e": 187.872,
                "suppliers": 2
            },
            "changes": {
                "spend_change": -27600,
                "spend_change_percentage": -5.94,
                "spend_direction": "decrease",
                "carbon_change_kgco2e": -12504,
                "carbon_change_tco2e": -12.504,
                "carbon_change_percentage": -6.24,
                "carbon_direction": "decrease"
            }
        },
        {
            "section": "3.06",
            "section_name": "Business travel",
            "period1": {
                "spend": 48000,
                "carbon_kgco2e": 19680,
                "carbon_tco2e": 19.68,
                "suppliers": 1
            },
            "period2": {
                "spend": 66000,
                "carbon_kgco2e": 27060,
                "carbon_tco2e": 27.06,
                "suppliers": 1
            },
            "changes": {
                "spend_change": 18000,
                "spend_change_percentage": 37.5,
                "spend_direction": "increase",
                "carbon_change_kgco2e": 7380,
                "carbon_change_tco2e": 7.38,
                "carbon_change_percentage": 37.5,
                "carbon_direction": "increase"
            }
        }
    ],
    "section_filter": null,
    "currency": "\u00a3",
    "where": {
        "label": "3.01 Supply chain",
        "url": "/plato/plato_supply_chain.php"
    },
    "notes": [
        "This is supply chain only: the carbon of what was bought from suppliers, each month's amount times the supplier's factor for that month. Waste, business travel, deliveries, commuting and the other Scope 3 categories are not in this figure: use get_carbon_by_module with scope 3 for those.",
        "Well-to-tank and transmission losses are inside each supplier's factor, so supply chain has no separate well-to-tank line."
    ],
    "last_updated": "2026-11-30 09:30:00"
}
POST get_supplier_emissions
Suppliers ranked by the carbon of what was bought from them over a period, worked out as the carbon footprint works it out: each month the amount times the factor of the supplier for that month. Each supplier has its tCO2e, its share, the amount (money, or a quantity for a supplier priced per product or material), the kg CO2e per unit, how its carbon is worked out (its own factor, disclosed in accounts, supplier portal, industry average, similar company), its Scope 3 section, tier and grade. Also totals, the suppliers marked excluded (left out of the ranking, still in the footprint), purchases with no supplier, and a comparison with the supply chain figure the carbon footprint holds. Use it for: top suppliers by emissions, which suppliers matter most, emissions or spend for one supplier, suppliers with spend but no carbon. Defaults to the reporting period the Supply chain page opens on.
ParameterTypeDescription
start_date string Start date YYYY-MM-DD (with end_date; omit both for the reporting period). Whole months are read.
end_date string End date YYYY-MM-DD.
search string Only suppliers whose name contains this text (any case).
section string Only suppliers filed under this Scope 3 section, for example "3.01".
sort_by string
enum: carbon, spend, name
Order of the list (default carbon, largest first).
include_excluded boolean Also list suppliers marked excluded, flagged (default false).
limit integer The most suppliers to list (default 20, max 200); the totals cover every supplier regardless.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_supplier_emissions","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","sort_by":"carbon"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2025-04-01",
        "end": "2026-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2025-04-01",
            "end": "2026-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2025-04-01",
        "list_end": "2026-03-31",
        "last_month_ended": "2026-10"
    },
    "currency": "\u00a3",
    "suppliers": [
        {
            "rank": 1,
            "supplier_id": 14,
            "name": "Northern Steel Ltd",
            "scope3_section": "3.01",
            "category": "Purchased goods and services",
            "method": "a factor set for this supplier",
            "tier": "1",
            "grade": "B",
            "excluded": false,
            "sites": 2,
            "months_with_entries": 12,
            "entries": 24,
            "amount": 412000,
            "amount_is": "money",
            "carbon_kgco2e": 181280,
            "carbon_tco2e": 181.28,
            "kgco2e_per_unit_of_amount": 0.44,
            "share_of_supplier_carbon_pct": 61.3
        },
        {
            "rank": 2,
            "supplier_id": 9,
            "name": "Pallet Supplies",
            "scope3_section": "3.01",
            "category": "Purchased goods and services",
            "method": "a factor per product",
            "tier": null,
            "grade": null,
            "excluded": false,
            "sites": 1,
            "months_with_entries": 6,
            "entries": 6,
            "amount": 9600,
            "amount_is": "a quantity (this supplier is priced per product or material)",
            "carbon_kgco2e": 86400,
            "carbon_tco2e": 86.4,
            "kgco2e_per_unit_of_amount": 9,
            "share_of_supplier_carbon_pct": 29.2
        },
        {
            "rank": 3,
            "supplier_id": 22,
            "name": "City Couriers",
            "scope3_section": "3.04",
            "category": "Upstream transportation and distribution",
            "method": "an industry average",
            "tier": "2",
            "grade": null,
            "excluded": false,
            "sites": 1,
            "months_with_entries": 12,
            "entries": 12,
            "amount": 52000,
            "amount_is": "money",
            "carbon_kgco2e": 28080,
            "carbon_tco2e": 28.08,
            "kgco2e_per_unit_of_amount": 0.54,
            "share_of_supplier_carbon_pct": 9.5
        }
    ],
    "totals": {
        "suppliers_with_entries": 38,
        "suppliers_with_carbon": 31,
        "carbon_tco2e": 295.76,
        "spend": 1264000,
        "matched": 38,
        "listed": 3,
        "truncated": true
    },
    "excluded_suppliers": {
        "count": 1,
        "carbon_tco2e": 4.2,
        "in_the_list": false
    },
    "no_supplier": null,
    "not_counted": {
        "entries_with_no_purchase_code": 0,
        "entries_on_sites_not_counted": 0,
        "entries_outside_site_dates": 0
    },
    "compared_with_the_carbon_footprint": {
        "carbon_footprint_supply_chain_tco2e": 299.96,
        "this_tool_every_supplier_tco2e": 299.96,
        "difference_tco2e": 0,
        "agrees": true,
        "note": "The carbon footprint holds the same supply chain figure for these months and sites (it counts excluded suppliers too)."
    },
    "where": {
        "label": "3.01 Supply chain",
        "url": "/plato/plato_supply_chain.php"
    },
    "notes": [
        "1 supplier is marked excluded: the Supply chain page leaves it out and so does this ranking, but the carbon footprint still counts its 4.2 tCO2e.",
        "7 suppliers have spend but no way of working out carbon set, so they show zero: choose a method by clicking the supplier name on the Supply chain page.",
        "Carbon is the amount of each month times the factor of the supplier for that month. A supplier filed under a Scope 3 section other than 3.01, or under gas or electricity, is counted there in the footprint."
    ]
}

Travel

Business flights, hotel stays, and employee commuting — distance, nights, and carbon.
POST get_flight_data
Get business flights route by route over a window (default: the reporting period the Flights page opens on): each route with its site, from and to, cabin class, flight type (Domestic, Shorthaul, Longhaul, International), whether it is a return, the trips typed in, the passenger km and its carbon as the Flights page works it out (each month's trips times that month's factor for the flight type and class, well-to-tank included, the direct part shown apart). The totals and the summary (by flight type, class, site and month) cover every matching route; breakdown lists the routes with flights, biggest carbon first. Use it for flight emissions, how many flights, which routes, classes, flight types or sites emit most, and flights month by month. For the factor itself use get_emission_factors.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD. Pass it with end_date, or neither. The window is read in whole months (the month of start_date to the month of end_date, at most 36), as the Flights page shows it.
end_date string Last day of the window, YYYY-MM-DD.
time_period string
enum: reporting_period, current_year, last_year, last_month, last_12_months
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year). last_12_months is the twelve whole months ending with last month.
flight_type string
enum: domestic, short-haul, long-haul, international
Only routes of this flight type: domestic (both airports in the UK), short-haul (the UK and Europe), long-haul (the UK and beyond Europe) or international (neither airport in the UK). The carbon and every total are those routes' alone.
class string
enum: economy, premium economy, business, first
Only routes flown in this cabin class.
site_id integer Only the routes of this site (an id from get_sites_list). Without it, every site the login can see.
search string Only routes whose name, from or to place, or site name contains this text.
sort_by string
enum: carbon, distance, flights, route
Order of the breakdown: carbon (default), distance (passenger km), flights or route (the name). The totals always cover every matching route.
sort_order string
enum: asc, desc
Defaults to desc for a figure (biggest first) and asc for route (A to Z).
limit integer How many routes the breakdown returns (default 50, at most 500). The totals always cover every matching route.
include_months boolean Also return each route month by month: the trips typed in (null when the month was never typed in) and the carbon (default false). The summary has every month for all routes together either way.
include_empty_routes boolean Also list the routes with no flights in the window, as the Flights page does (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_flight_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","flight_type":"domestic","class":"economy","sort_by":"carbon","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_flights": 28,
    "total_distance_km": 52576,
    "total_carbon_kgco2e": 23563.52,
    "total_carbon_tco2e": 23.564,
    "breakdown": [
        {
            "route_id": 12,
            "route_name": "London to New York",
            "from": "LHR",
            "to": "JFK",
            "class": "Business",
            "flight_type": "Longhaul",
            "is_return": true,
            "site_id": 1,
            "site_name": "Head Office",
            "distance_km": 5540,
            "trip_distance_km": 11080,
            "total_flights": 4,
            "total_distance_km": 44320,
            "carbon_kgco2e": 22160,
            "carbon_tco2e": 22.16,
            "base_kgco2e": 19944,
            "wtt_kgco2e": 2216,
            "kgco2e_per_flight": 5540,
            "months_with_entries": 3,
            "months_outside_site_dates": [],
            "flags": {
                "no_distance": false,
                "no_factor": false,
                "unknown_flight_type": false
            }
        },
        {
            "route_id": 15,
            "route_name": "London to Paris",
            "from": "LHR",
            "to": "CDG",
            "class": "Economy",
            "flight_type": "Shorthaul",
            "is_return": false,
            "site_id": 1,
            "site_name": "Head Office",
            "distance_km": 344,
            "trip_distance_km": 344,
            "total_flights": 24,
            "total_distance_km": 8256,
            "carbon_kgco2e": 1403.52,
            "carbon_tco2e": 1.404,
            "base_kgco2e": 1238.4,
            "wtt_kgco2e": 165.12,
            "kgco2e_per_flight": 58.48,
            "months_with_entries": 9,
            "months_outside_site_dates": [],
            "flags": {
                "no_distance": false,
                "no_factor": false,
                "unknown_flight_type": false
            }
        }
    ],
    "routes_total": 5,
    "routes_with_flights": 2,
    "routes_returned": 2,
    "summary": {
        "routes_total": 5,
        "routes_with_flights": 2,
        "flights": 28,
        "passenger_km": 52576,
        "carbon_kgco2e": 23563.52,
        "carbon_tco2e": 23.564,
        "base_kgco2e": 21182.4,
        "wtt_kgco2e": 2381.12,
        "tnd_kgco2e": 0,
        "by_flight_type": [
            {
                "flight_type": "Longhaul",
                "routes": 1,
                "flights": 4,
                "passenger_km": 44320,
                "carbon_kgco2e": 22160,
                "carbon_tco2e": 22.16,
                "base_kgco2e": 19944,
                "wtt_kgco2e": 2216,
                "share_of_carbon_pct": 94
            },
            {
                "flight_type": "Shorthaul",
                "routes": 1,
                "flights": 24,
                "passenger_km": 8256,
                "carbon_kgco2e": 1403.52,
                "carbon_tco2e": 1.404,
                "base_kgco2e": 1238.4,
                "wtt_kgco2e": 165.12,
                "share_of_carbon_pct": 6
            }
        ],
        "by_class": [
            {
                "class": "Business",
                "routes": 1,
                "flights": 4,
                "passenger_km": 44320,
                "carbon_kgco2e": 22160,
                "carbon_tco2e": 22.16,
                "base_kgco2e": 19944,
                "wtt_kgco2e": 2216,
                "share_of_carbon_pct": 94
            },
            {
                "class": "Economy",
                "routes": 1,
                "flights": 24,
                "passenger_km": 8256,
                "carbon_kgco2e": 1403.52,
                "carbon_tco2e": 1.404,
                "base_kgco2e": 1238.4,
                "wtt_kgco2e": 165.12,
                "share_of_carbon_pct": 6
            }
        ],
        "by_site": [
            {
                "site_id": 1,
                "site_name": "Head Office",
                "routes": 2,
                "flights": 28,
                "passenger_km": 52576,
                "carbon_kgco2e": 23563.52,
                "carbon_tco2e": 23.564,
                "base_kgco2e": 21182.4,
                "wtt_kgco2e": 2381.12,
                "share_of_carbon_pct": 100
            }
        ],
        "by_month": [
            {
                "month": "2024-04",
                "flights": 3,
                "passenger_km": 11768,
                "carbon_kgco2e": 5656.96
            },
            {
                "month": "2024-05",
                "flights": 2,
                "passenger_km": 688,
                "carbon_kgco2e": 116.96
            }
        ],
        "data_quality": {
            "routes_with_flights_but_no_carbon": 0,
            "routes_with_no_distance": 0,
            "routes_with_no_factor": 0,
            "routes_with_unknown_flight_type": 0,
            "route_months_outside_site_dates": 0
        },
        "footprint_reconciliation": {
            "this_tool_kgco2e": {
                "base": 21182.4,
                "wtt": 2381.1,
                "tnd": 0,
                "total": 23563.5
            },
            "footprint_kgco2e": {
                "base": 21182.4,
                "wtt": 2381.1,
                "tnd": 0,
                "total": 23563.5
            },
            "difference_kgco2e": 0,
            "explained_by": {
                "months_outside_site_dates": 0,
                "months_footprint_not_built_for": 0,
                "changes_since_the_footprint_was_built": 0
            },
            "footprint_needs_updating": false,
            "footprint_months_built": 12,
            "footprint_months_missing": [],
            "note": "The carbon footprint and this tool agree on the flight carbon of this window."
        },
        "footprint_reconciliation_note": "The carbon footprint and this tool agree on the flight carbon of this window."
    },
    "not_on_the_page": {
        "routes": 0,
        "flights": 0,
        "list": [],
        "note": "Every route that holds flights in the period is listed."
    },
    "time_period": "reporting_period",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "period": {
        "start": "2024-04-01",
        "end": "2025-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2024-04-01",
            "end": "2025-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2024-04-01",
        "list_end": "2025-03-31",
        "last_month_ended": "2025-03"
    },
    "filters": {
        "flight_type": null,
        "class": null,
        "site_id": null,
        "search": null
    },
    "sorted_by": "carbon",
    "sort_order": "desc",
    "basis": {
        "carbon": "Each month's flights times the kg CO2e per passenger km of the route's flight type and cabin class for that month, times the trip distance: the Total carbon of the Flights page. carbon_kgco2e includes well-to-tank; base_kgco2e is the direct part and wtt_kgco2e the well-to-tank part."
    },
    "note": "5 routes over 2024-04-01 to 2025-03-31 (reporting period (the account ESOS scoping period)), 2 with flights in the window, 2 returned. 28 flights, 52,576 passenger km and 23.564 tCO2e (21,182.40 kg direct, 2,381.12 kg well-to-tank), each month priced at that month's factor, as the Flights page shows it. The totals cover every route, not only the ones returned.",
    "last_updated": "2025-04-14 09:30:00"
}
POST get_hotel_stays_data
Get hotel stays over a window (default: the reporting period the Hotel stays page opens on): the room nights typed in and their carbon as the Hotel stays page works it out, each month's nights times that month's factor for the country. breakdown adds them up by country, each country at its own factor; locations lists the rows of the page one by one, each a country kept for one site; the summary adds every matching location up by site and month. Use it for hotel emissions, how many nights, which countries or sites stay the most, and nights month by month. For the factor itself use get_emission_factors.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD. Pass it with end_date, or neither. The window is read in whole months (the month of start_date to the month of end_date, at most 36), as the Hotel stays page shows it.
end_date string Last day of the window, YYYY-MM-DD.
time_period string
enum: reporting_period, current_year, last_year, last_month, last_12_months
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year). last_12_months is the twelve whole months ending with last month.
country string Only the locations whose country contains this text, any case. The carbon and every total are those locations' alone.
site_id integer Only the locations of this site (an id from get_sites_list). Without it, every site the login can see.
sort_by string
enum: nights, country, carbon
Order of breakdown and of locations: nights (default), country (the name) or carbon. The totals always cover every matching location.
sort_order string
enum: asc, desc
Defaults to desc for a figure (biggest first) and asc for country (A to Z).
limit integer How many locations the locations list returns (default 50, at most 500). breakdown always has every country, and the totals always cover every matching location.
include_months boolean Also return each location month by month: the nights typed in (null when the month was never typed in) and the carbon (default false). The summary has every month for all locations together either way.
include_empty_locations boolean Also list the locations with no nights in the window, as the Hotel stays page does (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_hotel_stays_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","sort_by":"nights","sort_order":"asc"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_nights": 85,
    "total_carbon_kgco2e": 1026.5,
    "total_carbon_tco2e": 1.027,
    "countries_count": 2,
    "breakdown": [
        {
            "country_name": "United Kingdom",
            "total_nights": 60,
            "carbon_kgco2e": 624,
            "carbon_tco2e": 0.624,
            "locations": 2,
            "kgco2e_per_night": 10.4,
            "share_of_carbon_pct": 60.8
        },
        {
            "country_name": "United States",
            "total_nights": 25,
            "carbon_kgco2e": 402.5,
            "carbon_tco2e": 0.403,
            "locations": 1,
            "kgco2e_per_night": 16.1,
            "share_of_carbon_pct": 39.2
        }
    ],
    "locations": [
        {
            "location_id": 3,
            "country_name": "United Kingdom",
            "site_id": 1,
            "site_name": "Head Office",
            "total_nights": 40,
            "carbon_kgco2e": 416,
            "carbon_tco2e": 0.416,
            "kgco2e_per_night": 10.4,
            "months_with_entries": 9,
            "months_outside_site_dates": [],
            "flags": {
                "no_factor": false
            }
        },
        {
            "location_id": 5,
            "country_name": "United States",
            "site_id": 1,
            "site_name": "Head Office",
            "total_nights": 25,
            "carbon_kgco2e": 402.5,
            "carbon_tco2e": 0.403,
            "kgco2e_per_night": 16.1,
            "months_with_entries": 4,
            "months_outside_site_dates": [],
            "flags": {
                "no_factor": false
            }
        },
        {
            "location_id": 8,
            "country_name": "United Kingdom",
            "site_id": 2,
            "site_name": "Warehouse North",
            "total_nights": 20,
            "carbon_kgco2e": 208,
            "carbon_tco2e": 0.208,
            "kgco2e_per_night": 10.4,
            "months_with_entries": 6,
            "months_outside_site_dates": [],
            "flags": {
                "no_factor": false
            }
        }
    ],
    "locations_total": 4,
    "locations_with_nights": 3,
    "locations_returned": 3,
    "summary": {
        "locations_total": 4,
        "locations_with_nights": 3,
        "nights": 85,
        "carbon_kgco2e": 1026.5,
        "carbon_tco2e": 1.027,
        "base_kgco2e": 1026.5,
        "wtt_kgco2e": 0,
        "tnd_kgco2e": 0,
        "by_site": [
            {
                "site_id": 1,
                "site_name": "Head Office",
                "locations": 2,
                "nights": 65,
                "carbon_kgco2e": 818.5,
                "carbon_tco2e": 0.819,
                "share_of_carbon_pct": 79.7
            },
            {
                "site_id": 2,
                "site_name": "Warehouse North",
                "locations": 1,
                "nights": 20,
                "carbon_kgco2e": 208,
                "carbon_tco2e": 0.208,
                "share_of_carbon_pct": 20.3
            }
        ],
        "by_month": [
            {
                "month": "2024-04",
                "nights": 9,
                "carbon_kgco2e": 105
            },
            {
                "month": "2024-05",
                "nights": 6,
                "carbon_kgco2e": 62.4
            }
        ],
        "data_quality": {
            "locations_with_nights_but_no_carbon": 0,
            "locations_with_no_factor": 0,
            "location_months_outside_site_dates": 0
        },
        "footprint_reconciliation": {
            "this_tool_kgco2e": {
                "base": 1026.5,
                "wtt": 0,
                "tnd": 0,
                "total": 1026.5
            },
            "footprint_kgco2e": {
                "base": 1026.5,
                "wtt": 0,
                "tnd": 0,
                "total": 1026.5
            },
            "difference_kgco2e": 0,
            "explained_by": {
                "months_outside_site_dates": 0,
                "months_footprint_not_built_for": 0,
                "changes_since_the_footprint_was_built": 0
            },
            "country_months_at_open_and_closed_sites": {
                "count": 0,
                "kgco2e": 0
            },
            "footprint_needs_updating": false,
            "footprint_months_built": 12,
            "footprint_months_missing": [],
            "note": "The carbon footprint and this tool agree on the hotel stay carbon of this window."
        },
        "footprint_reconciliation_note": "The carbon footprint and this tool agree on the hotel stay carbon of this window."
    },
    "not_on_the_page": {
        "locations": 0,
        "nights": 0,
        "list": [],
        "note": "Every location that holds nights in the period is listed."
    },
    "time_period": "reporting_period",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "period": {
        "start": "2024-04-01",
        "end": "2025-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2024-04-01",
            "end": "2025-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2024-04-01",
        "list_end": "2025-03-31",
        "last_month_ended": "2025-03"
    },
    "filters": {
        "country": null,
        "site_id": null
    },
    "sorted_by": "nights",
    "sort_order": "desc",
    "basis": {
        "carbon": "Each month's room nights times that month's kg CO2e per room night for the country: the Carbon column of the Hotel stays page. The factor differs a lot from country to country. An account's own factor for a country, where one is set, is used before the platform set."
    },
    "note": "4 locations over 2024-04-01 to 2025-03-31 (reporting period (the account ESOS scoping period)), 3 with nights in the window, 3 returned. 85 room nights in 2 countries and 1.027 tCO2e, each month priced at that month's factor for the country, as the Hotel stays page shows it. The totals cover every location, not only the ones returned.",
    "last_updated": "2025-04-14 09:30:00"
}
POST get_commuting_data
Employee commuting emissions as the carbon footprint holds them. Accounts that run the commuting survey get two figures, travel to work (one figure for every mode together: the carbon footprint keeps no split of it by mode, though the Commuting page shows each option on its own row, which this tool does not read) and working from home; accounts on the older pages get one figure per mode (car, bus, train, tube or tram, walk or bike, working from home). The well-to-tank part, which the footprint files under 3.03 and not under commuting, is returned apart and split by mode. Use it for: what are our commuting emissions, how much is working from home, commuting by mode.
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format
end_date string End date in YYYY-MM-DD format
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year).
mode string
enum: bus, car, train, tube, walk_bike, working_from_home, survey
Only one mode. working_from_home covers the survey figure and the older module; survey is the two survey figures; bus, car, train and tube also narrow the well-to-tank rows. If not provided, returns everything.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_commuting_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","mode":"bus"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_carbon_kgco2e": 4800,
    "total_carbon_tco2e": 4.8,
    "modes_count": 2,
    "breakdown": [
        {
            "mode_name": "Commuting survey: travel to work (all modes)",
            "module_name": "commutingSurveyWorkInOffice",
            "carbon_kgco2e": 3840,
            "carbon_tco2e": 3.84,
            "percentage_of_total": 80
        },
        {
            "mode_name": "Commuting survey: working from home",
            "module_name": "commutingSurveyWorkFromHome",
            "carbon_kgco2e": 960,
            "carbon_tco2e": 0.96,
            "percentage_of_total": 20
        }
    ],
    "well_to_tank": {
        "total_kgco2e": 910,
        "total_tco2e": 0.91,
        "by_mode": [
            {
                "mode_name": "Commuting - Small cars - Petrol (WTT)",
                "module_name": "WTT_Commuting-Small-cars---Petrol",
                "carbon_kgco2e": 700,
                "carbon_tco2e": 0.7
            },
            {
                "mode_name": "Commuting - Bus (WTT)",
                "module_name": "WTT_Commuting-Bus",
                "carbon_kgco2e": 210,
                "carbon_tco2e": 0.21
            }
        ]
    },
    "total_with_well_to_tank_tco2e": 5.71,
    "notes": [
        "This account runs the commuting survey: travel to work is one figure for every mode together (the carbon footprint keeps no split of it by mode; the Commuting page shows each option on its own row, which this tool does not read); only the well-to-tank part is split by mode.",
        "The well-to-tank part is filed in the carbon footprint under 3.03 (fuel and energy), not under 3.07 (commuting): the Commuting page shows the two together, the footprint shows them apart."
    ],
    "time_period": "reporting_period",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "filters": {
        "mode": null
    },
    "last_updated": "2025-04-14 09:30:00"
}

Water & Custom Modules

Water consumption, refrigerant losses, biomass and paper, and any custom emission modules your organisation has configured.
POST get_water_data
Get water over a window (default: the reporting period the Water page opens on): purchased water and waste water in cubic metres, with their carbon as the Water page works it out, each month's cubic metres times that month's factor for its kind. The totals and breakdown (by site) are purchased water; waste_water has the totals for the water sent to the drain, typed in or estimated as a share of purchased water; items lists the rows of the page one by one, each a kind of water at a site; the summary adds every matching row up by site and month. Use it for water use, water by site or by month, waste water, and water emissions. The two volumes are never added together: waste water is water that was purchased first. For the factor itself use get_emission_factors.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD. Pass it with end_date, or neither. The window is read in whole months (the month of start_date to the month of end_date, at most 36), as the Water page shows it.
end_date string Last day of the window, YYYY-MM-DD.
time_period string
enum: reporting_period, current_year, last_year, last_month, last_12_months
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year). last_12_months is the twelve whole months ending with last month.
site_id integer Only the rows of this site (an id from get_sites_list). Without it, every site the login can see.
water_type string
enum: purchased, waste_water
Only the rows of this kind: purchased (water the supplier delivered) or waste_water (water sent to the drain). Every figure is those rows' alone.
sort_by string
enum: volume, carbon, site
Order of items: volume (default, the most cubic metres first), carbon (the most first) or site (A to Z, purchased before waste water, as the page lists them). The totals always cover every matching row.
limit integer How many rows items returns (default 50, at most 500). breakdown always has every site, and the totals always cover every matching row.
include_months boolean Also return each row month by month: the cubic metres typed in (null when the month was never typed in) and the carbon (default false). The summary has every month for all rows together either way.
include_empty_items boolean Also list the rows with no water in the window, as the Water page does (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_water_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","time_period":"reporting_period","water_type":"purchased","sort_by":"volume"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_litres": 245000,
    "total_cubic_metres": 245,
    "total_carbon_kgco2e": 46.87,
    "total_carbon_tco2e": 0.047,
    "site_count": 2,
    "breakdown": [
        {
            "site_id": 1,
            "site_name": "Head Office",
            "litres": 180000,
            "cubic_metres": 180,
            "carbon_kgco2e": 34.43,
            "carbon_tco2e": 0.034
        },
        {
            "site_id": 2,
            "site_name": "Warehouse North",
            "litres": 65000,
            "cubic_metres": 65,
            "carbon_kgco2e": 12.43,
            "carbon_tco2e": 0.012
        }
    ],
    "waste_water": {
        "total_litres": 171000,
        "total_cubic_metres": 171,
        "total_carbon_kgco2e": 29.22,
        "total_carbon_tco2e": 0.029,
        "site_count": 1,
        "items": 1,
        "estimated_items": 1,
        "estimated_cubic_metres": 171
    },
    "items": [
        {
            "item_id": 4,
            "water_type": "purchased",
            "type_label": "Purchased water",
            "site_id": 1,
            "site_name": "Head Office",
            "estimated": false,
            "estimate_share_pct": null,
            "cubic_metres": 180,
            "carbon_kgco2e": 34.43,
            "carbon_tco2e": 0.034,
            "kgco2e_per_m3": 0.1913,
            "months_with_entries": 12,
            "months_outside_site_dates": [],
            "flags": {
                "no_factor": false,
                "figures_on_no_row_yet": false,
                "estimate_out_of_step": false
            }
        },
        {
            "item_id": 5,
            "water_type": "waste_water",
            "type_label": "Waste water",
            "site_id": 1,
            "site_name": "Head Office",
            "estimated": true,
            "estimate_share_pct": 95,
            "cubic_metres": 171,
            "carbon_kgco2e": 29.22,
            "carbon_tco2e": 0.029,
            "kgco2e_per_m3": 0.17088,
            "months_with_entries": 12,
            "months_outside_site_dates": [],
            "flags": {
                "no_factor": false,
                "figures_on_no_row_yet": false,
                "estimate_out_of_step": false
            }
        },
        {
            "item_id": 9,
            "water_type": "purchased",
            "type_label": "Purchased water",
            "site_id": 2,
            "site_name": "Warehouse North",
            "estimated": false,
            "estimate_share_pct": null,
            "cubic_metres": 65,
            "carbon_kgco2e": 12.43,
            "carbon_tco2e": 0.012,
            "kgco2e_per_m3": 0.1913,
            "months_with_entries": 10,
            "months_outside_site_dates": [],
            "flags": {
                "no_factor": false,
                "figures_on_no_row_yet": false,
                "estimate_out_of_step": false
            }
        }
    ],
    "items_total": 3,
    "items_with_water": 3,
    "items_returned": 3,
    "summary": {
        "items_total": 3,
        "items_with_water": 3,
        "purchased_water": {
            "items": 2,
            "items_with_water": 2,
            "cubic_metres": 245,
            "litres": 245000,
            "carbon_kgco2e": 46.87,
            "carbon_tco2e": 0.047,
            "base_kgco2e": 46.87,
            "wtt_kgco2e": 0,
            "tnd_kgco2e": 0,
            "kgco2e_per_m3": 0.1913
        },
        "waste_water": {
            "items": 1,
            "items_with_water": 1,
            "cubic_metres": 171,
            "litres": 171000,
            "carbon_kgco2e": 29.22,
            "carbon_tco2e": 0.029,
            "base_kgco2e": 29.22,
            "wtt_kgco2e": 0,
            "tnd_kgco2e": 0,
            "kgco2e_per_m3": 0.17088,
            "estimated_items": 1,
            "estimated_cubic_metres": 171
        },
        "both_carbon_kgco2e": 76.09,
        "both_carbon_tco2e": 0.076,
        "by_site": [
            {
                "site_id": 1,
                "site_name": "Head Office",
                "purchased_cubic_metres": 180,
                "purchased_carbon_kgco2e": 34.43,
                "waste_water_cubic_metres": 171,
                "waste_water_carbon_kgco2e": 29.22,
                "carbon_kgco2e": 63.65
            },
            {
                "site_id": 2,
                "site_name": "Warehouse North",
                "purchased_cubic_metres": 65,
                "purchased_carbon_kgco2e": 12.43,
                "waste_water_cubic_metres": 0,
                "waste_water_carbon_kgco2e": 0,
                "carbon_kgco2e": 12.43
            }
        ],
        "by_month": [
            {
                "month": "2024-04",
                "purchased_cubic_metres": 21,
                "purchased_carbon_kgco2e": 4.02,
                "waste_water_cubic_metres": 14.25,
                "waste_water_carbon_kgco2e": 2.44
            },
            {
                "month": "2024-05",
                "purchased_cubic_metres": 20,
                "purchased_carbon_kgco2e": 3.83,
                "waste_water_cubic_metres": 14.25,
                "waste_water_carbon_kgco2e": 2.44
            }
        ],
        "data_quality": {
            "items_with_water_but_no_carbon": 0,
            "items_with_no_factor": 0,
            "estimated_items_out_of_step": 0,
            "sites_with_figures_on_no_row_yet": 0,
            "item_months_outside_site_dates": 0
        },
        "footprint_reconciliation": {
            "purchased_water": {
                "footprint_module": "water",
                "this_tool_kgco2e": {
                    "base": 46.9,
                    "wtt": 0,
                    "tnd": 0,
                    "total": 46.9
                },
                "footprint_kgco2e": {
                    "base": 46.9,
                    "wtt": 0,
                    "tnd": 0,
                    "total": 46.9
                },
                "difference_kgco2e": 0,
                "explained_by": {
                    "months_outside_site_dates": 0,
                    "months_footprint_not_built_for": 0,
                    "water_the_page_does_not_list": 0,
                    "changes_since_the_footprint_was_built": 0
                },
                "footprint_needs_updating": false,
                "footprint_months_built": 12,
                "footprint_months_missing": [],
                "note": "The carbon footprint and this tool agree on the purchased water carbon of this window."
            },
            "waste_water": {
                "footprint_module": "wasteWater",
                "this_tool_kgco2e": {
                    "base": 29.2,
                    "wtt": 0,
                    "tnd": 0,
                    "total": 29.2
                },
                "footprint_kgco2e": {
                    "base": 29.2,
                    "wtt": 0,
                    "tnd": 0,
                    "total": 29.2
                },
                "difference_kgco2e": 0,
                "explained_by": {
                    "months_outside_site_dates": 0,
                    "months_footprint_not_built_for": 0,
                    "water_the_page_does_not_list": 0,
                    "changes_since_the_footprint_was_built": 0
                },
                "footprint_needs_updating": false,
                "footprint_months_built": 12,
                "footprint_months_missing": [],
                "note": "The carbon footprint and this tool agree on the waste water carbon of this window."
            }
        },
        "footprint_reconciliation_note": "The carbon footprint and this tool agree on the purchased water carbon of this window. The carbon footprint and this tool agree on the waste water carbon of this window."
    },
    "page_unit": {
        "name": "m3",
        "cubic_metres_per_unit": 1,
        "purchased_total": 245,
        "waste_water_total": 171
    },
    "not_on_the_page": {
        "entries": 0,
        "cubic_metres": 0,
        "cubic_metres_the_footprint_counts": 0,
        "list": [],
        "note": "Every row that holds water in the period is listed."
    },
    "time_period": "reporting_period",
    "date_range": {
        "start": "2024-04-01",
        "end": "2025-03-31"
    },
    "period": {
        "start": "2024-04-01",
        "end": "2025-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2024-04-01",
            "end": "2025-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2024-04-01",
        "list_end": "2025-03-31",
        "last_month_ended": "2025-03"
    },
    "filters": {
        "site_id": null,
        "water_type": null
    },
    "sorted_by": "volume",
    "basis": {
        "units": "The platform keeps cubic metres. cubic_metres is that figure and litres is it times 1,000. An account can have the Water page show US gallons instead; page_unit says which, and gives the totals in it.",
        "totals": "total_litres, total_cubic_metres, total_carbon_kgco2e, total_carbon_tco2e, site_count and breakdown are purchased water alone, as they always were. waste_water has the same for waste water. The two volumes are not added together: waste water is water that was purchased first."
    },
    "note": "3 water rows over 2024-04-01 to 2025-03-31 (reporting period (the account ESOS scoping period)), 3 with water in the window, 3 returned. Purchased water: 245.0 m3 and 0.047 tCO2e. Waste water: 171.0 m3 and 0.029 tCO2e, of which 171.0 m3 on 1 rows estimated as a share of purchased water. Each month is priced at that month's factor for its kind, as the Water page shows it. The totals cover every row, not only the ones returned. The two kinds are never one volume: waste water is water that was purchased first.",
    "last_updated": "2025-04-14 09:30:00"
}
POST get_other_module_data
Get the quantity and the carbon of one of three modules over a window (default: the reporting period the module's page opens on), by site: refrigerants (module airConLeaks, kg), biomass fuel (tonnes) or paper usage (sheets). The figures are the module page's, the Refrigerants, Biomass or Paper page: the sites that page lists, each month at that month's factor, and each site in breakdown carries its own carbon. For refrigerants the answer also names the gases of each site; for the rows gas by gas, the months and the comparison with the carbon footprint use get_refrigerant_data. For biomass and paper the answer also splits the carbon into base, well-to-tank and T&D, names the figures the page does not list (a site whose name contains "transport", a site not open in the period) and the part in months a site was not open, and, for the whole account, compares the carbon with the carbon footprint.
ParameterTypeDescription
start_date string Start date in YYYY-MM-DD format
end_date string End date in YYYY-MM-DD format
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year).
module
required
string
enum: airConLeaks, biomass, paper
The module to retrieve data for. airConLeaks = Refrigerants/Air con (kg), biomass = Biomass fuel (tonnes), paper = Paper usage (sheets).
site_id integer Filter by a specific site ID. If not provided, returns data for all accessible sites.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_other_module_data","arguments":{"module":"biomass"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "module_name": "biomass",
    "module_label": "Biomass",
    "unit": "tonnes",
    "total_quantity": 15.5,
    "total_carbon_kgco2e": 1302,
    "total_carbon_tco2e": 1.302,
    "site_count": 2,
    "breakdown": [
        {
            "site_id": 1,
            "site_name": "Head Office",
            "quantity": 12,
            "unit": "tonnes",
            "carbon_kgco2e": 1008,
            "carbon_tco2e": 1.008
        },
        {
            "site_id": 2,
            "site_name": "Leeds Depot",
            "quantity": 3.5,
            "unit": "tonnes",
            "carbon_kgco2e": 294,
            "carbon_tco2e": 0.294
        }
    ],
    "carbon_breakdown": {
        "base_kgco2e": 930,
        "wtt_kgco2e": 372,
        "tnd_kgco2e": 0
    },
    "outside_site_dates": {
        "quantity": 0.5,
        "carbon_kgco2e": 42
    },
    "data_quality": {
        "sites_with_quantity_but_no_carbon": 0,
        "site_months_with_no_factor": 0,
        "site_months_outside_site_dates": 1
    },
    "not_on_the_page": {
        "entries": 1,
        "quantity": 2,
        "list": [
            {
                "site_id": 7,
                "site_name": "North Transport Depot",
                "quantity": 2,
                "carbon_kgco2e": 168,
                "reason": "the page leaves out sites whose name contains \"transport\"",
                "counted_in_the_footprint": true
            }
        ],
        "note": "1 entry holds figures in the period and is not listed on the Biomass page: 2.00 tonnes that are in none of the figures here. The carbon footprint counts 2.00 tonnes of it all the same (a site whose name contains \"transport\")."
    },
    "footprint_reconciliation": {
        "this_tool_kgco2e": {
            "base": 930,
            "wtt": 372,
            "tnd": 0,
            "total": 1302
        },
        "footprint_kgco2e": {
            "base": 1020,
            "wtt": 408,
            "tnd": 0,
            "total": 1428
        },
        "difference_kgco2e": -126,
        "explained_by": {
            "months_outside_site_dates": 42,
            "months_footprint_not_built_for": 0,
            "figures_the_page_does_not_list": -168,
            "changes_since_the_footprint_was_built": 0
        },
        "footprint_needs_updating": false,
        "footprint_months_built": 12,
        "footprint_months_missing": [],
        "basis": "Base, well-to-tank and T&D kg CO2e together. The carbon footprint shows the base part on the line \"Biomass\" and adds the well-to-tank and T&D parts to its fuel- and energy-related line. It is rebuilt when someone opens it, not when a figure is typed in.",
        "note": "This tool has 126.0 kg CO2e less than the carbon footprint: figures in months a site was not open, which the page and this tool add up and the footprint leaves out (42.0 kg); figures the page does not list and the footprint counts: a site whose name contains \"transport\" (-168.0 kg)."
    },
    "footprint_note": "This tool has 126.0 kg CO2e less than the carbon footprint: figures in months a site was not open, which the page and this tool add up and the footprint leaves out (42.0 kg); figures the page does not list and the footprint counts: a site whose name contains \"transport\" (-168.0 kg).",
    "time_period": "reporting_period",
    "date_range": {
        "start": "2025-04-01",
        "end": "2026-03-31"
    },
    "period": {
        "start": "2025-04-01",
        "end": "2026-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2025-04-01",
            "end": "2026-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2025-04-01",
        "list_end": "2026-03-31",
        "last_month_ended": "2026-11"
    },
    "filters": {
        "module": "biomass",
        "site_id": null
    },
    "basis": {
        "figures": "One figure per site and month: the tonnes of biomass used, typed on the Biomass page.",
        "carbon": "\u2026",
        "list": "\u2026",
        "months": "\u2026",
        "footprint": "\u2026"
    },
    "note": "3 sites listed on the Biomass page over 2025-04-01 to 2026-03-31 (reporting period (the account ESOS scoping period)), 2 with figures in the window, 2 returned. 15.50 tonnes and 1.302 tCO2e, each month priced at that month's factor, as the Biomass page shows it. The totals cover every listed site, not only the ones returned. 0.50 tonnes (0.042 tCO2e) fall in 1 site-month the site was not open: counted here and on the page, left out of the carbon footprint. 1 entry holds figures in the period and is not listed on the Biomass page: 2.00 tonnes that are in none of the figures here. The carbon footprint counts 2.00 tonnes of it all the same (a site whose name contains \"transport\").",
    "last_updated": "2026-12-01 09:30:00"
}
POST get_custom_modules_list
List the account's own custom modules (modules the account set up itself, each with a name, a unit and a carbon factor; deleted ones are left out), by name. For each: the module_key to pass to get_custom_module_data, the unit, the scope and the category number it is counted under, the menu section it sits in (menu_section_name), the carbon factors saved with it in tonnes CO2e per unit (base, well-to-tank, T&D and their total), the kWh per unit and energy type where it has them, and whether its page has been used yet. For a module's figures use get_custom_module_data, which prices each month at the factor in force for that month.

No parameters required — call with an empty arguments object.

curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_custom_modules_list","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "total_count": 2,
    "modules": [
        {
            "module_key": "customModule0generator00a3f9c17b2e",
            "name": "Generator diesel",
            "description": "Diesel for the standby generators",
            "unit": "litres",
            "scope": "1",
            "section": "1",
            "carbon_factor_tco2e_per_unit": 0.00251,
            "menu_section": "energy",
            "menu_section_name": "Energy, gas and fuel",
            "wtt_tco2e_per_unit": 0.00061,
            "tnd_tco2e_per_unit": 0,
            "total_tco2e_per_unit": 0.00312,
            "kwh_per_unit": 10.9,
            "energy_type": "Other",
            "page_used": true
        },
        {
            "module_key": "customModule0office0pri07d2e4b91c0",
            "name": "Office printing",
            "description": "Reams of paper bought for the printers",
            "unit": "reams",
            "scope": "3",
            "section": "3.01",
            "carbon_factor_tco2e_per_unit": 0.0023,
            "menu_section": "",
            "menu_section_name": "Other",
            "wtt_tco2e_per_unit": 0,
            "tnd_tco2e_per_unit": 0,
            "total_tco2e_per_unit": 0.0023,
            "kwh_per_unit": null,
            "energy_type": null,
            "page_used": false
        }
    ],
    "note": "The factors are the ones saved with each module, in tonnes CO2e per unit: the base, well-to-tank and T&D, and their total. An account can also hold dated factors for a custom module: get_custom_module_data prices each month at the factor in force for that month (the dated factors where the account holds any for the months asked, else these saved ones) and lists the factors it used. page_used is false for a module whose page has never been opened, so nothing can have been entered for it yet.",
    "last_updated": "2026-12-01 09:30:00"
}
POST get_custom_module_data
Get the figures of one of the account's own custom modules (a module the account set up itself, with its own name, unit and carbon factor) over a window, by default the reporting period the module's page opens on: the quantity and the carbon in total and by site, as the module's own page shows them. Each month is priced at the factor in force for that month (the dated factors the account holds for the module, else the factors saved with it), well-to-tank and T&D included; carbon_breakdown and each breakdown line give those parts, and factors lists the factors used month by month. The sites are the ones the page lists: sites this login can see, open at some time in the period, whose name does not contain "transport"; not_on_the_page names the figures it leaves out. footprint_reconciliation compares the carbon with the carbon footprint (whole account only). Name the module by module_key (exact, from get_custom_modules_list) or by module_name; when a name fits several modules nothing is guessed and the answer lists them. To find out which custom modules exist, use get_custom_modules_list.
ParameterTypeDescription
module_name string The custom module's name, in any case. A module whose name is exactly this is used; otherwise the one module whose name contains this text (every character counts as itself). If several names contain it, the answer lists them with their keys and reads nothing. Use module_key when it is known.
module_key string The custom module's key, exactly as get_custom_modules_list gives it (it starts with customModule). Used before module_name when both are given.
start_date string First day of the window, YYYY-MM-DD (a month such as 2025-04 is the whole month). Pass it with end_date, or neither. The window is read in whole months, at most 36, as the module's page shows it.
end_date string Last day of the window, YYYY-MM-DD.
time_period string
enum: reporting_period, current_year, last_year, last_month
Preset when no dates are passed. Default reporting_period: the reporting period the platform pages open on (the scoping period chosen in the top bar, else the account one, else the last complete April to March year). current_year and last_year are calendar years.
site_id integer Only this site (an id from get_sites_list). Without it, every site the module's page lists. A site this login cannot see is an error; the comparison with the carbon footprint is for the whole account only.
sort_by string
enum: site_name, quantity, carbon
Order of breakdown: quantity (default), carbon, or site_name. The totals always cover every listed site.
sort_order string
enum: asc, desc
asc or desc. Default: desc (the biggest first) for quantity and carbon, asc (A to Z) for site_name.
include_months boolean Also give each breakdown line month by month: the quantity typed in (null when the month was never typed in) and its carbon. Default false.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_custom_module_data","arguments":{"module_name":"Generator diesel"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "module_key": "customModule0generator00a3f9c17b2e",
    "module_name": "Generator diesel",
    "module_description": "Diesel for the standby generators",
    "unit": "litres",
    "scope": "1",
    "section": "1",
    "total_quantity": 550,
    "total_carbon_kgco2e": 1716,
    "total_carbon_tco2e": 1.716,
    "site_count": 2,
    "breakdown": [
        {
            "site_id": 1,
            "site_name": "Head Office",
            "quantity": 400,
            "unit": "litres",
            "carbon_kgco2e": 1248,
            "carbon_tco2e": 1.248,
            "carbon_base_kgco2e": 1004,
            "carbon_wtt_kgco2e": 244,
            "carbon_tnd_kgco2e": 0,
            "months_with_no_factor": []
        },
        {
            "site_id": 2,
            "site_name": "Leeds Depot",
            "quantity": 150,
            "unit": "litres",
            "carbon_kgco2e": 468,
            "carbon_tco2e": 0.468,
            "carbon_base_kgco2e": 376.5,
            "carbon_wtt_kgco2e": 91.5,
            "carbon_tnd_kgco2e": 0,
            "months_with_no_factor": []
        }
    ],
    "carbon_breakdown": {
        "base_kgco2e": 1380.5,
        "wtt_kgco2e": 335.5,
        "tnd_kgco2e": 0
    },
    "factors": {
        "wtt_switch_on": true,
        "unit": "kg CO2e per unit (litres)",
        "by_month": {
            "2025-04": {
                "base": 2.51,
                "wtt": 0.61,
                "tnd": 0,
                "total": 3.12
            },
            "2025-05": {
                "base": 2.51,
                "wtt": 0.61,
                "tnd": 0,
                "total": 3.12
            },
            "\u2026": "\u2026"
        },
        "months_with_no_factor": []
    },
    "outside_site_dates": {
        "quantity": 0,
        "carbon_kgco2e": 0
    },
    "data_quality": {
        "sites_with_quantity_but_no_carbon": 0,
        "site_months_with_no_factor": 0,
        "site_months_outside_site_dates": 0
    },
    "not_on_the_page": {
        "entries": 0,
        "quantity": 0,
        "carbon_kgco2e": 0,
        "quantity_the_footprint_counts": 0,
        "carbon_the_footprint_counts_kgco2e": 0,
        "list": [],
        "note": "Every site that holds figures in the period is listed."
    },
    "footprint_reconciliation": {
        "this_tool_kgco2e": {
            "base": 1380.5,
            "wtt": 335.5,
            "tnd": 0,
            "total": 1716
        },
        "footprint_kgco2e": {
            "base": 1380.5,
            "wtt": 335.5,
            "tnd": 0,
            "total": 1716
        },
        "difference_kgco2e": 0,
        "explained_by": {
            "months_outside_site_dates": 0,
            "months_footprint_not_built_for": 0,
            "figures_the_page_does_not_list": 0,
            "changes_since_the_footprint_was_built": 0
        },
        "footprint_needs_updating": false,
        "footprint_months_built": 12,
        "footprint_months_missing": [],
        "basis": "Base, well-to-tank and T&D kg CO2e together. The carbon footprint shows the base part on the line \"Generator diesel\" and adds the well-to-tank and T&D parts to its fuel- and energy-related line. It is rebuilt when someone opens it, not when a figure is typed in.",
        "note": "The carbon footprint and this tool agree on the Generator diesel carbon of this window."
    },
    "footprint_note": "The carbon footprint and this tool agree on the Generator diesel carbon of this window.",
    "time_period": "reporting_period",
    "date_range": {
        "start": "2025-04-01",
        "end": "2026-03-31"
    },
    "period": {
        "start": "2025-04-01",
        "end": "2026-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2025-04-01",
            "end": "2026-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2025-04-01",
        "list_end": "2026-03-31",
        "last_month_ended": "2026-11"
    },
    "filters": {
        "module_key": "customModule0generator00a3f9c17b2e",
        "module_name": "Generator diesel",
        "site_id": null,
        "matched_by": "name"
    },
    "sorted_by": "quantity",
    "sort_order": "desc",
    "basis": {
        "figures": "One figure per site and month: the litres recorded, typed on the Generator diesel page.",
        "carbon": "\u2026",
        "list": "\u2026",
        "months": "\u2026",
        "footprint": "\u2026"
    },
    "note": "2 sites listed on the Generator diesel page over 2025-04-01 to 2026-03-31 (reporting period (the account ESOS scoping period)), 2 with figures in the window, 2 returned. 550.00 litres and 1.716 tCO2e, each month priced at that month's factor, as the Generator diesel page shows it. The totals cover every listed site, not only the ones returned.",
    "last_updated": "2026-12-01 09:30:00"
}

Workflows

Projects (workflows) such as ESOS Phase 4: list them, read one project’s full task and sub-task progress, read the template’s Instructions that explain each task, and its Playbooks: how to check each row (objective, required checks, output shape, then allowed tools: the notes on how each thing is read).
POST get_workflows
Get a list of projects/workflows, with options to filter by status, year, or search text. Returns high-level workflow information including progress percentages. If the result contains a single workflow, it includes detailed step information to identify missing data. If multiple workflows are found, follow up with get_workflow_progress (one project's full task and sub-task tree, with ids, checklists, status and evidence) or get_workflow_incomplete_items for details.
ParameterTypeDescription
status string
enum: active, archived, all
Filter by status. Default is "active".
year string Filter by year (YYYY). Returns workflows active during this year.
search string Search text to filter by workflow name or template name.
include_progress boolean Include progress calculations (completed/total tasks). Default is true. Set to false for faster queries when progress is not needed.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_workflows","arguments":{"status":"active"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "workflows": [
        {
            "id": 1,
            "name": "Net Zero Roadmap 2025",
            "template": "Custom",
            "status": "active",
            "period": {
                "start": "2024-04-01",
                "end": "2025-03-31"
            },
            "progress": {
                "completed_tasks": 18,
                "total_tasks": 25,
                "percentage": 72
            },
            "incomplete_actions": [
                "Finalise EV fleet transition plan",
                "Complete Scope 3 supply chain audit"
            ],
            "note": null
        }
    ],
    "count": 1,
    "filters_applied": {
        "status": null,
        "year": null,
        "search": null
    }
}
POST get_workflow_incomplete_items
Analyze a specific workflow/project to find incomplete actions, unassigned tasks, missing due dates, and overdue items. Prefer get_workflow_progress, which returns the same analysis with ids, checklists, status colours, evidence and template ids. Returns action names that can be analyzed with identify_workflow_required_data_types to determine what platform data is needed. Set include_all_tasks=true to additionally receive a full tasks list (every task, with each action's progress and completion status).
ParameterTypeDescription
workflow_id integer The ID of the workflow to analyze.
workflow_name string The name of the workflow to search for (if ID is not known).
include_all_tasks boolean If true, add a top-level "tasks" array with every task in the workflow and the progress/completion state of each action. Default false (existing behaviour preserved).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_workflow_incomplete_items","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "workflow_id": 1,
    "workflow_name": "Net Zero Roadmap 2025",
    "total_actions": 25,
    "incomplete_actions": [
        {
            "action": "Finalise EV fleet transition plan",
            "task": "Transport",
            "progress": "40%"
        }
    ],
    "unassigned_actions": [],
    "missing_due_dates": [],
    "overdue_actions": [],
    "counts": {
        "incomplete": 7,
        "unassigned": 0,
        "missing_dates": 0,
        "overdue": 0
    },
    "tasks": [
        {
            "task": "Getting Started",
            "actions": [
                {
                    "action": "Site List",
                    "progress": "100%",
                    "is_complete": true,
                    "due_date": null
                },
                {
                    "action": "Establish sites",
                    "progress": "100%",
                    "is_complete": true,
                    "due_date": null
                },
                {
                    "action": "Establish reporting period",
                    "progress": "50%",
                    "is_complete": false,
                    "due_date": "2025-06-30 00:00:00"
                }
            ]
        }
    ]
}
POST identify_workflow_required_data_types
Analyze a list of incomplete workflow action names and identify what types of platform data need to be provided (e.g., Energy, Transport, Waste). Returns specific URLs for data entry. This tool is typically used after calling get_workflow_incomplete_items to understand what data needs to be entered in the platform. Input is an array of action name strings.
ParameterTypeDescription
action_names
required
array List of incomplete action names to analyze (typically from get_workflow_incomplete_items)
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"identify_workflow_required_data_types","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "required_data": [
        {
            "data_type": "energy",
            "url": "/plato/plato_energy.php",
            "description": "Energy consumption data",
            "matched_actions": [
                "Reduce electricity consumption by 10%",
                "Switch to renewable tariff"
            ]
        }
    ],
    "total_data_types": 1,
    "unmatched_actions": [],
    "summary": "1 data type(s) required for this workflow"
}
POST get_workflow_progress
Get the full progress of ONE project (workflow): every task and sub-task with its id, checklist (description), progress, status colour, owner, due date, evidence (files, data requests, comments), last change and any reference code typed on a sub-task, plus overall figures (percent complete, tasks completed, overdue and unassigned counts). Use it for "how is our ESOS Phase 4 going?", "what is left to do?", "what is overdue?". Find the project by workflow_id, or by search (part of the project name or code, or of its template name or code, e.g. "ESOS4"); with neither, the account's only current project is returned, or the candidates to choose from. Rows carry template_task_id / template_step_id: call get_workflow_template once for the Instructions that say what each task and sub-task means and what counts as done, or set include_instructions=true to get them inline. Set include_playbook=true to also get each row Playbook: how to check it.
ParameterTypeDescription
workflow_id integer The project id (from get_workflows). An explicit id is always found, even when the project is archived.
search string Text to find the project by when the id is not known: part of the project name or code, or of its template name or code (e.g. "ESOS Phase 4", "ESOS4", "SECR"). Case-insensitive.
include_instructions boolean true = add the template Instructions (Markdown) to the project, each task and each sub-task. Default false: fetch them once per conversation with get_workflow_template instead.
include_inactive boolean true = also search archived and switched-off projects. Default false: current projects only.
include_playbook boolean true = add the template Playbook (objective; required checks, the rule in plain words; output shape; allowed tools, notes on how each thing is read) to the project, each task and each sub-task, and playbook_check to each sub-task. Default false.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_workflow_progress","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "project": {
        "id": 144,
        "name": "ESOS Phase 4",
        "code": "ESOS4",
        "period": {
            "start": "2026-01-01 00:00:00",
            "end": "2026-12-31 00:00:00"
        },
        "status": "active",
        "created_at": "2026-10-01 09:42:03",
        "last_activity_at": "2026-10-05 10:00:00",
        "template": {
            "id": 77,
            "name": "ESOS Phase 4",
            "code": "ESOS4",
            "has_instructions": true,
            "has_playbook": true,
            "is_retired": false
        },
        "progress": {
            "percent": 35,
            "tasks_completed": 1,
            "tasks_total": 7,
            "sub_tasks_completed": 9,
            "sub_tasks_total": 26
        },
        "attention": {
            "incomplete": 17,
            "overdue": 2,
            "unassigned": 0,
            "missing_due_date": 15
        },
        "tasks": [
            {
                "id": 767,
                "template_task_id": 385,
                "name": "Planning",
                "code": null,
                "description": null,
                "status": "green",
                "owner": {
                    "id": 112703,
                    "name": "Dennis Quill"
                },
                "due_date": null,
                "is_overdue": false,
                "updated_at": "2026-10-05 10:00:00",
                "progress": {
                    "percent": 70,
                    "sub_tasks_completed": 5,
                    "sub_tasks_total": 8
                },
                "sub_tasks": [
                    {
                        "id": 4928,
                        "template_step_id": 1716,
                        "name": "Kick Off Meeting",
                        "description": "Meeting Booked\nMeeting Completed",
                        "progress_type": "percent",
                        "progress_recorded": 100,
                        "progress": 100,
                        "progress_label": "Completed",
                        "reference": "ESOS4-0001",
                        "is_complete": true,
                        "status": "green",
                        "owner": {
                            "id": 112703,
                            "name": "Dennis Quill"
                        },
                        "due_date": "2026-01-15 00:00:00",
                        "is_overdue": false,
                        "updated_at": "2026-10-05 10:00:00",
                        "evidence": {
                            "files": 2,
                            "latest_file_at": "2026-10-03 11:20:00",
                            "requests": 0,
                            "open_requests": 0,
                            "comments": 1,
                            "latest_comment": {
                                "at": "2026-10-04 09:00:00",
                                "by": "Suzy Gill",
                                "text": "Minutes filed"
                            }
                        }
                    }
                ]
            }
        ]
    },
    "note": "Call get_workflow_template with template_id=77 for the Instructions behind each task and sub-task (join by template_task_id and template_step_id), or call this tool again with include_instructions=true. This template also has Playbooks (how to check each row): call get_workflow_template with template_id=77 and include_playbook=true, or this tool again with include_playbook=true.",
    "as_of": "2026-10-07"
}
POST get_workflow_template
Get a project template (e.g. ESOS Phase 4, code ESOS4) as its tasks and sub-tasks, each with the Instructions that explain what the row is for, what counts as done, the inputs and evidence, who does it and what it depends on, plus the template-level overview (stages, key dates, rules). Call it ONCE per conversation before interpreting a project from get_workflow_progress, then join by id: project.template.id = template.id, task.template_task_id = tasks[].id, sub_task.template_step_id = tasks[].sub_tasks[].id. With no arguments it lists every template. Each row can also carry a Playbook: its objective, the required checks (the rule in plain words), the result to give, and notes on how each thing a check names is read. Pass include_playbook=true to get them, and sub_task_id or task_id for one row; the template Playbook, which sets out the result, comes with it.
ParameterTypeDescription
template string The template name or code, case-insensitive (e.g. "ESOS4" or "ESOS Phase 4").
template_id integer The template id (project.template.id from get_workflow_progress). Wins over template when both are given.
include_playbook boolean true = add the Playbook (Markdown) of the template, each task and each sub-task: how to check that row, as its objective, required checks (the rule in plain words), output shape and allowed tools (notes on how each thing is read). Default false.
task_id integer Return only this task of the template (tasks[].id, or task.template_task_id from get_workflow_progress), with its sub-tasks. Needs template or template_id.
sub_task_id integer Return only this sub-task (sub_tasks[].id, or sub_task.template_step_id from get_workflow_progress), inside its task. Needs template or template_id. Wins over task_id.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_workflow_template","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "template": {
        "id": 77,
        "name": "ESOS Phase 4",
        "code": "ESOS4",
        "instructions": "## Purpose\nThis project takes one client through ESOS Phase 4, the UK Energy Savings Opportunity Scheme, from kick-off to the notification to the Environment Agency. ...",
        "has_playbook": true,
        "tasks": [
            {
                "id": 385,
                "code": null,
                "name": "Planning",
                "order": 0,
                "instructions": "## Purpose\nScope the assessment: who qualifies, which sites and energy uses are in, who does what, and the audit plan the client signs off. ...",
                "has_playbook": false,
                "sub_tasks": [
                    {
                        "id": 1716,
                        "name": "Kick Off Meeting",
                        "order": 0,
                        "description": "Meeting Booked\nMeeting Completed",
                        "progress_type": "percent",
                        "instructions": "## Purpose\nOpen the project with the client. ...\n\n## Done when\nThe meeting has been held and its actions are recorded. ...",
                        "has_playbook": true,
                        "playbook_check": "person"
                    }
                ]
            }
        ]
    },
    "note": "Join a project to this tree: project.template.id = template.id, task.template_task_id = tasks[].id, sub_task.template_step_id = tasks[].sub_tasks[].id (get_workflow_progress). A sub-task with progress_type \"done\" is recorded as done or not done, not as a percentage. has_playbook says a row has a Playbook: its objective, required checks and output shape in plain words, then its allowed tools, the notes on how each thing is read. Pass include_playbook=true to read them (with sub_task_id or task_id for one row; the template Playbook sets out the result to give). Each required check is labelled Data (work it out from platform data), Evidence (only look whether the file or reference is there), Person (a person confirms it; do not judge it from data), Sub-task or Task (the result of the Playbook of that row); blocking checks come first. playbook_check on a sub-task is the most the assistant can check by itself: data, evidence, person, or null when not set."
}

Account

The account itself: who is on it and their roles, how a user is added, the reports it holds, and the data a login has been given to enter.
POST get_users
The users on this account as the Users page lists them: name, email, job title, role (Admin, Manager, Contributor, View only), when they were added, whether they have confirmed their email, signed up and turned on two-factor authentication, plus counts by role, your own role and whether you can add users, what each role may do, and the steps to add a user (Administrators only: Settings, Users, Add a user; the person gets a confirmation email and starts as a Contributor). Use it for: who has access, who is an administrator, has someone signed up yet, how do I add or remove a user or change a role, how many users do we have. The platform keeps no last sign-in date.
ParameterTypeDescription
search string Only users whose name, email or username contains this text (any case).
role string
enum: Admin, Manager, Contributor, View only
Only users with this role.
limit integer The most users to return (default 100, max 500); counts cover every user regardless.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_users","arguments":{"role":"Admin"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "users": [
        {
            "id": 11,
            "name": "Sam Patel",
            "email": "sam.patel@acme.example",
            "username": "sam",
            "job_title": "Finance lead",
            "role": "Admin",
            "created": "2024-01-10",
            "email_confirmed": true,
            "has_signed_up": true,
            "two_factor_on": true,
            "is_you": true
        },
        {
            "id": 15,
            "name": "Kim Lee",
            "email": "kim.lee@acme.example",
            "username": "kim",
            "job_title": "Analyst",
            "role": "Contributor",
            "created": "2026-11-01",
            "email_confirmed": false,
            "has_signed_up": false,
            "two_factor_on": false,
            "is_you": false
        }
    ],
    "count": 2,
    "matched": 2,
    "returned": 2,
    "truncated": false,
    "counts_by_role": {
        "Admin": 1,
        "Manager": 0,
        "Contributor": 1,
        "View only": 0
    },
    "you": {
        "id": 11,
        "role": "Admin",
        "can_add_users": true,
        "can_change_roles": true
    },
    "roles": {
        "Admin": "can add and remove users, change roles and change every setting",
        "Manager": "everything except managing users",
        "Contributor": "enters data; the role a new user starts with",
        "View only": "reads only"
    },
    "how_to_add_a_user": {
        "who": "Administrators only",
        "steps": [
            "Open Settings, then Users (or the Users page link).",
            "Click \"Add a user\".",
            "Fill in the first name, last name, email and job title, then save."
        ],
        "what_happens": "The person receives a confirmation email and must confirm it before they can sign in. They start as a Contributor; an Administrator changes the role from the \u22ee menu beside the user on the Users page (\"Account type\"). Personal email addresses (gmail and the like) are refused.",
        "partner_note": "Accounts that belong to a partner programme support a single user; the partner support team adds users.",
        "pages": {
            "users": "/plato/plato_users.php",
            "add": "/user_detail.php"
        }
    },
    "notes": [
        "The platform does not record a last sign-in, and there is no per-user disabled flag: a user is removed, not disabled."
    ]
}
POST get_reports
The reports this account holds as the Reports page lists them: title, type (detailed carbon report as a Word document or a presentation, carbon reduction plan, ESOS audit plan, site audit report, data summary, executive summary, energy saving opportunities, product disclosures), whether it was made on the report pages or its page created it, status (draft or published), the reporting period, the compliance option (SECR, CRP or none), a UK-only filter, the intensity denominators, whether a Word file was generated, dates, and the audit or ESOS phase it belongs to; counts by type and status; and what the platform produces on click without keeping a row (the SECR summary, the ESOS Word report, CSRD and TCFD). Use it for: what reports do we have, is our SECR report done, when was the carbon reduction plan published, which period does the report cover. Figures are not stored with a report: for the total, call get_carbon_footprint with the report period and say the report itself may differ.
ParameterTypeDescription
type string Only reports whose type name or key contains this text (detailed, presentation, reduction plan, audit plan, site audit, data summary, executive, opportunities, product).
status string
enum: draft, published
Only reports with this status.
search string Only reports whose title contains this text (any case).
include_page_created boolean Include the rows a page created on first open, one per account, phase, audit or product (default true). false lists only reports made on the report pages.
limit integer The most reports to return (default 50, max 200); counts cover every report regardless.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_reports","arguments":{"status":"draft"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "reports": [
        {
            "id": 55,
            "title": "SECR FY24/25",
            "type": "Detailed carbon report",
            "type_key": "detailedCarbon",
            "kind": "made on the report pages",
            "form": "a Word document generated from the saved settings",
            "status": "published",
            "period": {
                "start": "2024-04-01",
                "end": "2025-03-31"
            },
            "compliance": "SECR",
            "uk_only": true,
            "intensity_denominator": {
                "site_size": 66835,
                "second": null
            },
            "has_generated_file": true,
            "published": "2025-06-10",
            "created": "2025-05-02",
            "updated": "2025-06-10",
            "note": null,
            "audit_id": null,
            "phase_key": null,
            "custom_modules_included": []
        },
        {
            "id": 85,
            "title": "Data summary report",
            "type": "ESOS data summary report",
            "type_key": "AUDIT_P4_DATA_SUMMARY",
            "kind": "created when its page is first opened (one per ESOS phase)",
            "form": "a presentation",
            "status": "draft",
            "period": {
                "start": "2026-01-01",
                "end": "2026-12-31"
            },
            "compliance": null,
            "uk_only": false,
            "intensity_denominator": null,
            "has_generated_file": false,
            "published": null,
            "created": "2025-11-01",
            "updated": "2025-11-01",
            "note": null,
            "audit_id": null,
            "phase_key": "ESOS4",
            "custom_modules_included": []
        }
    ],
    "count": 2,
    "matched": 2,
    "returned": 2,
    "truncated": false,
    "by_type": {
        "Detailed carbon report": {
            "draft": 0,
            "published": 1
        },
        "ESOS data summary report": {
            "draft": 1,
            "published": 0
        }
    },
    "by_status": {
        "draft": 1,
        "published": 1
    },
    "where": {
        "label": "Reports",
        "url": "/plato/carbonHome.php?show=reports",
        "who_can_open": "Administrators and Managers; a Contributor or view-only login is refused"
    },
    "produced_on_click_without_a_row": [
        {
            "name": "SECR report (Word)",
            "what": "the Streamlined Energy and Carbon Reporting summary for the reporting period",
            "who": "produced by the Enistic team on request (a supervisor-only item on the Reports page); ask your account manager; the account needs the SECR add-on"
        }
    ],
    "notes": [
        "1 of the rows were created when their page was first opened (one per account, phase, audit or product), not made deliberately; they are listed with that kind.",
        "No figure (total tCO2e, kWh, intensity ratio) is stored with a report; the pages compute them when they render."
    ]
}
POST get_my_data_tasks
The data this login has been given to enter: one row for each box on its Home page, with the site, the kind of data (electricity, waste, company vehicles and so on), how complete it is for the reporting period (the share of months that hold a figure), the status the box shows ("Data Required" or "Data OK") and the page it opens. Use it for: what do I have to do, what data am I responsible for, what is still missing from my sites, where do I enter my data. A Contributor enters data from these boxes; an Administrator gives them under Users, Responsibilities. With scope everyone (Administrators and Managers) it lists the boxes given to every user with who holds each, as their Home page does: use that for what data the organisation is still missing and who still owes data. In the chat this is the signed-in user; over the Integration API it is the login the key belongs to.
ParameterTypeDescription
scope string
enum: mine, everyone
mine (default): the boxes of this login. everyone: the boxes given to every user on the account, each with its owner (an Administrator; a Manager gets the sites they manage; any other login gets its own).
only_incomplete boolean List only the boxes that still need data (default false). The counts cover every box regardless.
limit integer The most boxes to list (default 100, max 300), least complete first.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_my_data_tasks","arguments":{"scope":"mine"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "user": {
        "id": 13,
        "role": "Contributor"
    },
    "scope": "mine",
    "period": {
        "start": "2025-04-01",
        "end": "2026-03-31",
        "source": "the account ESOS scoping period"
    },
    "tasks": [
        {
            "site_id": 4,
            "site": "Leeds depot",
            "data": "Company vehicles",
            "module": "transportFuel",
            "box_label": "Leeds depot: Company vehicles",
            "complete_pct": 25,
            "status": "Data Required",
            "link": "/plato/plato_transport_summary_expanded2.php?siteId=4"
        },
        {
            "site_id": 4,
            "site": "Leeds depot",
            "data": "Energy, gas and fuel",
            "module": "energyUse",
            "box_label": "Leeds depot: Energy, gas and fuel",
            "complete_pct": 100,
            "status": "Data OK",
            "link": "/plato/plato_energy_data.php?siteId=4"
        }
    ],
    "counts": {
        "boxes": 2,
        "data_required": 1,
        "data_ok": 1,
        "listed": 2,
        "truncated": false
    },
    "by_owner": null,
    "by_site": null,
    "complete_pct_means": "the share of the months of the period that hold a figure for that site and kind of data; 100 shows as \"Data OK\", less as \"Data Required\"",
    "where": {
        "label": "Home",
        "url": "/plato/carbonDashboard.php"
    },
    "how_boxes_are_given": "An Administrator opens Users, the Responsibilities part, \"Add Exception\", picks the user, the sites and the modules, then adds and confirms.",
    "notes": [
        "A Contributor finds these boxes on Home; clicking one opens the page where that data is typed in. The left menu does not list the data pages for a Contributor."
    ]
}
POST get_files
The files of the Files page ("My files"): name, kind (PDF, Excel spreadsheet, image…), the folder it is in, size, when it was uploaded, who uploaded it when that was recorded, and a link that opens its folder. Also counts the uploads that live on other pages (a bill given to the bill import, a letter of authority for automatic meter data, files attached to project sub-tasks, site audit photos), which never appear on the Files page, and names the ones that match a search. Use it for: where is the file I uploaded, do we have a file called X, what files do we have, what was uploaded last week, how much is stored. search reads file names only. It lists files; it cannot open, read, send or download one.
ParameterTypeDescription
search string Words the file name must contain, any case, all of them. Use a word likely to be in the name (a supplier, a month, "invoice"), not a description.
type string Only this kind: pdf, spreadsheet, document, presentation, image, video, audio, archive, or an extension such as docx.
folder string Only files in a folder whose path contains this text.
created_from string Uploaded on or after this day, YYYY-MM-DD.
created_to string Uploaded on or before this day, YYYY-MM-DD.
include_folders boolean Also list folders (default false).
sort_by string
enum: newest, name, size
Order of the list (default newest first).
limit integer The most files to list (default 25, max 200); the totals cover everything.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_files","arguments":{"sort_by":"newest"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "files": [
        {
            "name": "SECR report 2025.docx",
            "kind": "Word document",
            "folder": "My files \u203a SECR reports",
            "size": "439 KB",
            "size_bytes": 449536,
            "created": "2025-09-04 11:50",
            "uploaded_by": "Sam Field",
            "open_folder": "/plato/data/fileItems.php?parentItemKey=a1b2c3"
        }
    ],
    "totals": {
        "files_on_the_page": 10,
        "folders_on_the_page": 19,
        "total_size": "8.3 MB",
        "matched": 1,
        "listed": 1,
        "truncated": false
    },
    "elsewhere": {
        "by_kind": [
            {
                "kind": "a letter of authority for automatic meter data",
                "where": "Settings, Automatic data feeds",
                "files": 3,
                "newest": "2026-05-19"
            }
        ],
        "matching_uploads": []
    },
    "where": {
        "label": "Files",
        "url": "/plato/data/fileItems.php"
    },
    "notes": [
        "Files given to other pages (a bill for the bill import, a letter of authority, a file attached to a project, audit photos) are kept with those pages, not on the Files page: elsewhere counts them.",
        "The Files page holds what was uploaded on it, in folders. To see or download a file, open its folder with the link; the chat cannot open, read or send a file."
    ]
}

Other

Utility tools that don’t fit neatly into one category.
POST get_improvement_projects
Get the list of carbon reduction / improvement projects defined for this organisation. Returns each project's name, scope, expected savings (percentage or absolute), costs, adoption status, and duration. Use this to understand what reduction initiatives exist, identify unplanned or stalled projects, compare expected savings against actual emissions, and recommend priorities based on cost vs. savings. For the ESOS energy saving opportunities with payback, tonnes of CO2e, MESOS category and site, call get_esos_opportunities.
ParameterTypeDescription
adoption_status string Filter by adoption status. Leave empty to return all projects. Common values: "planned", "in_progress", "completed", "rejected".
scope string
enum: 1, 2, 3, all
Filter by GHG scope. Default is "all".
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_improvement_projects","arguments":{"scope":"1"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "projects": [
        {
            "id": 42,
            "name": "LED lighting upgrade",
            "scope": 2,
            "description": "Replace fluorescent tubes with LED panels across all offices",
            "start_date": "2024-06-01",
            "adoption_status": "in_progress",
            "is_enabled": true,
            "savings": {
                "type": "relative",
                "absolute_tco2e_per_year": null,
                "relative_percent": 15,
                "energy_kwh_per_year": 85000,
                "duration_years": 10
            },
            "cost": {
                "year1": 25000,
                "year2_onwards": 500
            }
        }
    ],
    "count": 1,
    "filters": {
        "adoption_status": null,
        "scope": null
    },
    "last_updated": "2025-04-14 09:30:00"
}
POST get_meter_list
Get the list of energy meters for this organisation, optionally filtered by site or kind of fuel. Returns each meter's ID, its name (reference), its fuel type (supply_type), the kind of fuel (electricity, renewable_electricity, gas or other), the unit it is entered in, its MPAN/MPRN when one is recorded, whether it is archived, and the site it belongs to. Use this to find meter IDs before calling get_estimated_annual_consumption. For each meter's readings month by month, use get_energy_meters. It lists every meter of the sites this login sees whatever the period, archived meters and meters on closed sites included; a refrigerant-gas meter is listed under kind other with counts_as_energy false.
ParameterTypeDescription
site_id integer Filter meters by a specific site ID. Leave empty to return meters for all sites. Get site IDs from get_sites_list.
supply_type string Filter by kind of fuel: "electricity" (every electricity fuel type, renewable included), "gas" (every natural gas fuel type) or "other"; or an exact fuel type name such as "Natural gas (m3)". Leave empty to return all meters.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_meter_list","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "meters": [
        {
            "meter_id": 101,
            "reference": "Main incomer",
            "supply_type": "Electricity kWh",
            "kind": "electricity",
            "unit": "kWh",
            "counts_as_energy": true,
            "meter_number": "2000012345678",
            "archived": false,
            "site_id": 1,
            "site_name": "Head Office"
        },
        {
            "meter_id": 102,
            "reference": "Boiler house",
            "supply_type": "Natural gas (m3)",
            "kind": "gas",
            "unit": "m3",
            "counts_as_energy": true,
            "meter_number": null,
            "archived": false,
            "site_id": 1,
            "site_name": "Head Office"
        }
    ],
    "count": 2,
    "filters": {
        "site_id": null,
        "supply_type": null
    },
    "last_updated": "2025-04-14 09:30:00"
}
POST get_estimated_annual_consumption
Get the estimated annual energy consumption (kWh) for one or more meters, taken from the financial year that holds the meter's last reading. That year can be incomplete: months_with_data says how many of its twelve months hold a reading and is_full_year whether all twelve do, so a part-year total is never read as a full year. Returns the kWh total, the financial year period used, and the last month data was received. A meter that records a refrigerant gas is not energy and has no kWh. The financial year is the account's reporting year (taken from the reporting period most recently used on the account, not necessarily the caller's own), and a meter with no kWh-per-unit set is added up from its stored figures, where get_energy_meters shows it as 0 kWh: for a meter over a period you choose, with its missing months and its carbon, use get_energy_meters. Use this to identify high-consuming meters and to spot meters with no recent data. Call get_meter_list first to get meter IDs.
ParameterTypeDescription
meter_id integer A single meter ID to query. Get meter IDs from get_meter_list. If omitted, all accessible meters are returned (may be slow for large accounts).
site_id integer Return estimates for all meters belonging to this site. Mutually exclusive with meter_id — if both are provided, meter_id takes priority.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_estimated_annual_consumption","arguments":{}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "estimates": [
        {
            "meter_id": 101,
            "reference": "Main incomer",
            "supply_type": "Electricity kWh",
            "site_id": 1,
            "site_name": "Head Office",
            "estimated_annual_kwh": 480200,
            "period_start": "2024-04-01",
            "period_end": "2025-03-31",
            "last_active_month": "2025-03",
            "months_with_data": 12,
            "is_full_year": true,
            "counts_as_energy": true,
            "note": null
        },
        {
            "meter_id": 102,
            "reference": "Boiler house",
            "supply_type": "Natural gas (m3)",
            "site_id": 1,
            "site_name": "Head Office",
            "estimated_annual_kwh": 61300,
            "period_start": "2025-04-01",
            "period_end": "2026-03-31",
            "last_active_month": "2025-09",
            "months_with_data": 6,
            "is_full_year": false,
            "counts_as_energy": true,
            "note": "Only 6 of the 12 months of this financial year hold a reading, so this is a part-year total, not a full year."
        }
    ],
    "count": 2,
    "financial_year_end_month": 3,
    "last_updated": "2025-04-14 09:30:00"
}
POST get_refrigerant_data
Get refrigerant losses gas by gas over a window (default: the reporting period the Refrigerants page opens on): each gas at each site with the kilograms topped up into air conditioning, refrigeration, chillers and heat pumps, and its carbon as the Refrigerants page works it out (each month's kilograms times that month's factor for the gas, its global warming potential). The summary has kg and carbon by gas, by site and by month, the rows that record an unspecified refrigerant (priced at one default factor), and how the total meets the carbon footprint. Use it for F-gas or refrigerant emissions, which gas or site matters most, refrigerant month by month, and what factor a gas was priced at. Scope 1, in kilograms of gas, not energy.
ParameterTypeDescription
start_date string First day of the window, YYYY-MM-DD. Pass it with end_date, or neither for the reporting period the Refrigerants page opens on. The window is read in whole months (the month of start_date to the month of end_date), as the page shows it.
end_date string Last day of the window, YYYY-MM-DD (at most 36 months after start_date).
site_id integer Only the rows of this site (an id from get_sites_list).
gas string Only rows of this gas: its name, whole value, any case, for example "HFC-134a" or "Unspecified refrigerant" (the gas of each row, as returned).
search string Only rows whose gas name or site name contains this text.
sort_by string
enum: carbon, kg, gas, site
Order of the rows list: carbon (default, biggest first), kg (biggest first), gas or site (A to Z). The summary always covers every row.
limit integer How many rows to return (default 50, at most 500). The summary always covers every row.
include_months boolean Also return each row month by month: the kilograms (null when the month was never typed in) and the carbon (default false). The summary has every month for all rows together either way.
include_empty_rows boolean Also list the rows with no kilograms in the window, as the Refrigerants page does (default false).
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"get_refrigerant_data","arguments":{"start_date":"2024-04-01","end_date":"2025-03-31","sort_by":"carbon"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "period": {
        "start": "2024-04-01",
        "end": "2025-03-31",
        "months": 12,
        "source": "reporting period (the account ESOS scoping period)",
        "is_reporting_period": true,
        "reporting_period": {
            "start": "2024-04-01",
            "end": "2025-03-31",
            "source": "the account ESOS scoping period"
        },
        "list_start": "2024-04-01",
        "list_end": "2025-03-31",
        "last_month_ended": "2025-03"
    },
    "unit": "kg",
    "summary": {
        "rows_total": 4,
        "rows_with_kg": 3,
        "kg": 12.5,
        "carbon_kgco2e": 21350,
        "carbon_tco2e": 21.35,
        "base_kgco2e": 21350,
        "wtt_kgco2e": 0,
        "tnd_kgco2e": 0,
        "by_gas": [
            {
                "gas": "Unspecified refrigerant",
                "gas_key": null,
                "rows": 1,
                "sites": 1,
                "kg": 4.5,
                "carbon_kgco2e": 9000,
                "carbon_tco2e": 9,
                "kgco2e_per_kg": 2000,
                "share_of_carbon_pct": 42.2
            },
            {
                "gas": "HFC-134a",
                "gas_key": "systemTypeRefrigerantHFC134a",
                "rows": 1,
                "sites": 1,
                "kg": 5,
                "carbon_kgco2e": 6500,
                "carbon_tco2e": 6.5,
                "kgco2e_per_kg": 1300,
                "share_of_carbon_pct": 30.4
            },
            {
                "gas": "R-410A",
                "gas_key": "systemTypeRefrigerantR410A",
                "rows": 1,
                "sites": 1,
                "kg": 3,
                "carbon_kgco2e": 5850,
                "carbon_tco2e": 5.85,
                "kgco2e_per_kg": 1950,
                "share_of_carbon_pct": 27.4
            }
        ],
        "by_site": [
            {
                "site_id": 1,
                "site_name": "Head Office",
                "rows": 2,
                "kg": 8,
                "carbon_kgco2e": 12350,
                "carbon_tco2e": 12.35,
                "kgco2e_per_kg": 1543.75,
                "share_of_carbon_pct": 57.8
            },
            {
                "site_id": 2,
                "site_name": "Warehouse North",
                "rows": 1,
                "kg": 4.5,
                "carbon_kgco2e": 9000,
                "carbon_tco2e": 9,
                "kgco2e_per_kg": 2000,
                "share_of_carbon_pct": 42.2
            }
        ],
        "by_month": [
            {
                "month": "2024-04",
                "kg": 5,
                "carbon_kgco2e": 6500
            },
            {
                "month": "2024-05",
                "kg": 0,
                "carbon_kgco2e": 0
            }
        ],
        "data_quality": {
            "rows_with_kg_but_no_carbon": 0,
            "rows_with_no_factor": 0,
            "unspecified_gas_rows": 1,
            "unspecified_gas_kg": 4.5,
            "unspecified_gas_carbon_kgco2e": 9000,
            "row_months_outside_site_dates": 0
        },
        "footprint_reconciliation": {
            "this_tool_kgco2e": {
                "base": 21350,
                "wtt": 0,
                "tnd": 0,
                "total": 21350
            },
            "footprint_kgco2e": {
                "base": 21350,
                "wtt": 0,
                "tnd": 0,
                "total": 21350
            },
            "difference_kgco2e": 0,
            "explained_by": {
                "months_outside_site_dates": 0,
                "months_footprint_not_built_for": 0,
                "refrigerant_the_page_does_not_list": 0,
                "changes_since_the_footprint_was_built": 0
            },
            "footprint_needs_updating": false,
            "footprint_months_built": 12,
            "footprint_months_missing": [],
            "note": "The carbon footprint and this tool agree on the refrigerant carbon of this window."
        },
        "footprint_reconciliation_note": "The carbon footprint and this tool agree on the refrigerant carbon of this window."
    },
    "rows_total": 4,
    "rows_with_kg": 3,
    "rows_returned": 3,
    "sorted_by": "carbon",
    "rows": [
        {
            "row_id": 7,
            "gas": "Unspecified refrigerant",
            "gas_key": null,
            "site_id": 2,
            "site_name": "Warehouse North",
            "kg": 4.5,
            "carbon_kgco2e": 9000,
            "carbon_tco2e": 9,
            "kgco2e_per_kg": 2000,
            "months_with_entries": 2,
            "months_outside_site_dates": [],
            "flags": {
                "unspecified_gas": true,
                "no_factor": false
            }
        },
        {
            "row_id": 3,
            "gas": "HFC-134a",
            "gas_key": "systemTypeRefrigerantHFC134a",
            "site_id": 1,
            "site_name": "Head Office",
            "kg": 5,
            "carbon_kgco2e": 6500,
            "carbon_tco2e": 6.5,
            "kgco2e_per_kg": 1300,
            "months_with_entries": 1,
            "months_outside_site_dates": [],
            "flags": {
                "unspecified_gas": false,
                "no_factor": false
            }
        },
        {
            "row_id": 4,
            "gas": "R-410A",
            "gas_key": "systemTypeRefrigerantR410A",
            "site_id": 1,
            "site_name": "Head Office",
            "kg": 3,
            "carbon_kgco2e": 5850,
            "carbon_tco2e": 5.85,
            "kgco2e_per_kg": 1950,
            "months_with_entries": 3,
            "months_outside_site_dates": [],
            "flags": {
                "unspecified_gas": false,
                "no_factor": false
            }
        }
    ],
    "not_on_the_page": {
        "entries": 0,
        "kg": 0,
        "kg_the_footprint_counts": 0,
        "list": [],
        "note": "Every row that holds refrigerant in the period is listed."
    },
    "refrigerant_on_energy_meters": 0,
    "basis": {
        "carbon": "Each month's kilograms times the kg CO2e per kg of the row's own gas for that month (its global warming potential): the Carbon column of the Refrigerants page. An \"Unspecified refrigerant\" row has no gas named and is priced at the module's one default factor."
    },
    "note": "4 gas rows over 2024-04-01 to 2025-03-31 (reporting period (the account ESOS scoping period)), 3 with refrigerant in the window, 3 returned. 12.50 kg of refrigerant topped up and 21.350 tCO2e, each month's kilograms priced at that month's factor for the row's own gas, as the Refrigerants page shows it.",
    "as_of": "2025-04-14 09:30:00"
}
POST report_tool_gap
Report a gap in your available tools. Call this when a user asks a question that IS within your scope (sustainability, carbon, energy, platform data) but you CANNOT answer it because you lack the necessary tool or data access. Do NOT call this for out-of-scope questions (cooking, code, trivia) — those are simply declined. Do NOT call this for questions you CAN answer using existing tools or general knowledge.
ParameterTypeDescription
user_question
required
string The user's original question, quoted verbatim or closely paraphrased.
reason
required
string Brief explanation of why you cannot answer. E.g. "No tool available to retrieve emission factor configuration", "Cannot access target/goal settings from the platform".
suggested_tool
required
string What tool or data access would be needed to answer this. E.g. "get_emission_factors", "get_reduction_targets", "get_audit_log".
category string
enum: missing_tool, missing_data, scope_limitation, integration_needed
"missing_tool" if a new tool is needed, "missing_data" if the data exists but is not exposed, "scope_limitation" if the current scope definition prevents answering, "integration_needed" if an external system connection is needed.
curl -X POST \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"tool":"report_tool_gap","arguments":{"category":"missing_tool"}}' \
  https://app.enistic.com/api/ai-tools/v1/execute.php
Example response
{
    "logged": true,
    "action": "created",
    "gap_id": 12,
    "message": "Tool gap reported successfully. Our team will review it."
}
Loading...
BICS Application £35 to £40 per MWh off your electricity bill, every year for five years. Government relief for UK manufacturers. Applications run from 1 October to 30 November 2026.Check if you qualify
+