Skip to main content

Facility Tools

Facilities are the physical locations where your organization operates — offices, factories, warehouses, data centers, waste water treatment plants, etc. They are the anchor entity for most environmental data: energy invoices, waste records, and water consumption are all linked to a specific facility.
Facilities are the starting point for most queries. Call list_facilities first to discover facility IDs, then use those IDs with list_invoices, list_wastes, or get_greenhouse_gas_emissions.

Read Operations

list_facilities

List facilities for an organization with optional filters. Parameters: Example response:
Key response fields: Example prompts:

get_facility

Get a single facility by ID with full details including address, categories, emission totals, and linked data such as waste water treatment configuration. Parameters: Returns the same fields as list_facilities items, plus additional fields for waste water treatment facilities: Example prompts:

Write Operations

create_facility

Create a new facility in the organization. Returns the created facility with its assigned ID.
Address or Country Required: You must provide either an address (from which the country is geocoded automatically) or a country code. If both are provided, the geocoded country from the address takes precedence.
Parameters: Example response:
Example prompts:
Common errors:

update_facility

Update an existing facility. Only provided fields are changed — omitted fields remain unchanged.
Archiving Side Effects: Setting status to archived will also archive any linked logistic hub and deactivate associated supply contracts.
Parameters: Example response:
Example prompts:

Workflows

Querying facility data

  1. Discover facilitieslist_facilities to find by name, country, or type
  2. Inspect a facilityget_facility for full details
  3. Query energy datalist_invoices with the facility_id to see electricity, gas, water consumption
  4. Query waste datalist_wastes with the facility_id for waste records and treatment methods
  5. Query emissionsget_greenhouse_gas_emissions with the facility_id for validated emission totals

Setting up a new facility

  1. Create the facilitycreate_facility with name, type, and location
  2. Verify it was createdget_facility to confirm details
  3. Upload energy data — Use the API or CLI to upload invoices for the new facility
  4. Check emissionsget_greenhouse_gas_emissions once invoices are processed

Managing existing facilities

  1. Find the facilitylist_facilities with name or country filter
  2. Update detailsupdate_facility to rename, change address, or update categories
  3. Archive if neededupdate_facility with status: "archived" (cascades to linked resources)

API: Create Facility

REST API endpoint for facility creation

API: Update Facility

REST API endpoint for facility updates

Invoices

Energy invoices linked to a facility

Wastes

Waste records linked to a facility

Emissions

Aggregated emissions by facility

CLI

Manage facilities from the command line