List Facilities
List Facilities
Get a paginated list of facilities in your organization
GET
List Facilities
List Facilities
Retrieve all facilities registered in your organization with pagination support and flexible filtering options.This endpoint excludes logistics hubs from results. Logistics hubs are special facility types used for warehouse and distribution center operations.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
ff4adcc7-8172-45fe-9cf1-e90a6de53aa9Your user UUIDExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890Query Parameters
Page number for paginationExample:
1Number of items per page (max: 100)Example:
50Filter facilities by name (partial match)Example:
"Madrid Office"Filter by creation date start (Unix timestamp)Example:
1704067200 (January 1, 2024)Filter by creation date end (Unix timestamp)Example:
1735689600 (January 1, 2025)Advanced filtering criteria (format:
field:value)Example: "country:ES"Sort criteria (format:
field:asc or field:desc)Example: "name:asc"Response
Current page number
Number of items per page
Total count of active facilities (excluding logistics hubs)
Total count of archived facilities (excluding logistics hubs)
Array of facility objects
Facility Object Fields:
id(string, UUID) - Unique facility identifiername(string) - Facility namecountry(string) - ISO 3166-1 alpha-2 country codetype(string) - Facility typeaddress(string, optional) - Full addresslogistic_factor(float, optional) - Logistic efficiency factor (0.0 - 1.0)categories(array of strings, optional) - Facility categoriescups_list(array of strings, optional) - CUPS codes for electricity metersstatus(string) -"active"or"archived"facility_fuels_ids(array of strings, optional) - Associated fuel IDsco2e(float) - Total CO2 equivalent emissions in kgco2e_biomass(float, optional) - Biomass CO2 emissions in kginvoices_length(integer, optional) - Number of invoicesinvoices_in_review_count(integer) - Number of enabled invoices withstatus='review'for this facility, across all categories (electricity, water, heat, recharge). Defaults to0.created_at(datetime) - Creation timestampupdated_at(datetime) - Last update timestampfacility_purpose_type(string) - Purpose classificationsupercharger(boolean, optional) - Electric vehicle supercharger availablefacility_id(string, optional) - External facility identifierhub_category(string, optional) - Logistics hub category (null for regular facilities)
Example
Successful Response
Common Errors
400 Bad Request
Cause: Invalid query parameters or date format403 Forbidden
Cause: Organization ID doesn’t match your API key or user doesn’t belong to organizationx-organization-id matches your API key’s organization.
Use Cases
Facility Dashboard
Display all active facilities with emissions:Filter by Country
Get all facilities in a specific country:Date Range Query
Get facilities created within a specific time period:Pagination
When you have many facilities, use pagination to retrieve all results:Special Notes
Logistics Hubs Exclusion
This endpoint automatically excludes logistics hubs from results. Logistics hubs are special facility types with ahub_category field set to one of:
transshipment_ambienttransshipment_mixedstorage_transhipment_ambientstorage_transhipment_mixedwarehouse_ambientwarehouse_mixedliquid_bulk_terminals_ambientliquid_bulk_terminals_mixedmaritime_container_terminals_ambientmaritime_container_terminals_temperature_controlled
CO2e Field
Theco2e field represents the total carbon footprint of the facility calculated from all invoices (electricity, heat, water, etc.). A value of 0.0 means either:
- No invoices have been registered yet
- All invoices have zero emissions
- Calculations are pending
CUPS Codes
For Spanish facilities,cups_list contains electricity meter identifiers (Código Universal del Punto de Suministro). These are automatically populated when creating electricity invoices.
Related Endpoints
Create Invoice
Add consumption data to facilities
List Vehicles
View your vehicle fleet
Bulk Upload
Upload multiple facilities via CSV
Authentication
Learn about API authentication

