Create Facility
Create Facility
Add a new facility to your organization
POST
Create Facility
Create Facility
Create a new facility in your organization. The system will track energy consumption and calculate CO2e emissions for the facility.Address or Country Required: You must provide either an
address (from which the country is geocoded) or a country code. If both are provided, the geocoded country from the address takes precedence.Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faBody Parameters
string
required
Name of the facilityExample:
"Madrid Office"string
required
Type of facilityExample:
"office"string
ISO 3166-1 country code. Required if
address is not provided.Examples: "ES", "FR", "DE", "US"string
Physical address of the facility. If provided, the country is automatically geocoded from the address.Example:
"Calle Gran Vía 1, Madrid, Spain"number
default:"0.8"
Logistic factor for scope 2 calculation in logistics reports (0 to 1)Example:
0.8array[string]
Consumption categories enabled for this facilityAvailable values:
heat, electricity, water, rechargeExample: ["heat", "electricity", "water"]array[string]
List of CUPS (electricity supply point) codesExample:
["ES0021000000000001AA"]Response
Returns the created facility object with HTTP 201.string
Facility UUID
string
Facility name
string | null
Physical address
string
ISO country code (e.g.
ES, FR, DE)string
Facility type (e.g.
office, warehouse, factory)array[string] | null
Enabled consumption categories:
heat, electricity, water, rechargearray[string] | null
List of CUPS codes
string
Facility status:
active or archivednumber | null
Total CO2e emissions (tCO2e)
number | null
CO2e emissions from biomass sources
number | null
Logistic factor for scope 2 (0 to 1)
string | null
Purpose type of the facility
datetime
Creation timestamp (ISO 8601)
string | null
Last update timestamp (ISO 8601)
integer
Number of invoices in
review statusinteger
Number of configured categories with no invoices
string | null
Water type of the waste water treatment line (only for
waste_water_facilities)boolean | null
Whether methane is burned (only for
waste_water_facilities)object | null
Waste water treatment line config (only for
waste_water_facilities)object | null
Sludge treatment line config (only for
waste_water_facilities)object | null
Water discharge line config (only for
waste_water_facilities)Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization422 Validation Error
Cause: Neither address nor country providedRelated Endpoints
List Facilities
Retrieve all facilities
Update Facility
Modify facility details