Skip to main content
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

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: ff4adcc7-8172-45fe-9cf1-e90a6de53aa9
string
required
Your user UUIDExample: a1b2c3d4-e5f6-7890-abcd-ef1234567890

Query Parameters

integer
default:"1"
Page number for paginationExample: 1
integer
default:"50"
Number of items per page (max: 100)Example: 50
string
Filter facilities by name (partial match)Example: "Madrid Office"
integer
Filter by creation date start (Unix timestamp)Example: 1704067200 (January 1, 2024)
integer
Filter by creation date end (Unix timestamp)Example: 1735689600 (January 1, 2025)
string
Advanced filtering criteria (format: field:value)Example: "country:ES"
string
Sort criteria (format: field:asc or field:desc)Example: "name:asc"

Response

integer
Current page number
integer
Number of items per page
integer
Total count of active facilities (excluding logistics hubs)
integer
Total count of archived facilities (excluding logistics hubs)
array
Array of facility objects

Facility Object Fields:

  • id (string, UUID) - Unique facility identifier
  • name (string) - Facility name
  • country (string) - ISO 3166-1 alpha-2 country code
  • type (string) - Facility type
  • address (string, optional) - Full address
  • logistic_factor (float, optional) - Logistic efficiency factor (0.0 - 1.0)
  • categories (array of strings, optional) - Facility categories
  • cups_list (array of strings, optional) - CUPS codes for electricity meters
  • status (string) - "active" or "archived"
  • facility_fuels_ids (array of strings, optional) - Associated fuel IDs
  • co2e (float) - Total CO2 equivalent emissions in kg
  • co2e_biomass (float, optional) - Biomass CO2 emissions in kg
  • invoices_length (integer, optional) - Number of invoices
  • invoices_in_review_count (integer) - Number of enabled invoices with status='review' for this facility, across all categories (electricity, water, heat, recharge). Defaults to 0.
  • created_at (datetime) - Creation timestamp
  • updated_at (datetime) - Last update timestamp
  • facility_purpose_type (string) - Purpose classification
  • supercharger (boolean, optional) - Electric vehicle supercharger available
  • facility_id (string, optional) - External facility identifier
  • hub_category (string, optional) - Logistics hub category (null for regular facilities)

Example

Successful Response

Common Errors

400 Bad Request

Cause: Invalid query parameters or date format
Solution: Verify that dates are Unix timestamps (integers) and pagination parameters are positive integers.

403 Forbidden

Cause: Organization ID doesn’t match your API key or user doesn’t belong to organization
Solution: Verify that x-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 a hub_category field set to one of:
  • transshipment_ambient
  • transshipment_mixed
  • storage_transhipment_ambient
  • storage_transhipment_mixed
  • warehouse_ambient
  • warehouse_mixed
  • liquid_bulk_terminals_ambient
  • liquid_bulk_terminals_mixed
  • maritime_container_terminals_ambient
  • maritime_container_terminals_temperature_controlled
To access logistics hubs, use the dedicated logistics hubs endpoint (if available).

CO2e Field

The co2e 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.

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