Download OpenAPI specification:
You can use the Alasco API to integrate your application with Alasco. The Alasco API is REST-based and follows JSON:API principles for structuring responses.
Starting from version 1.0, the API is stable. We are continuously improving our API and new endpoints will be added. Any updates or changes within this major version will be backward-compatible and can be found in this documentation.
For getting acccess to the Alasco API, please reach out to us: kontakt@alasco.de.
The base URL for all endpoints is: https://api.alasco.de/esg/v1
The Alasco API supports compressed payloads. If you would like to make use of this, you have to specify the Accept-Encoding
header. Supported encodings are gzip
and br
.
The Alasco API uses pagination. The page size is 100, additional pages can be accessed using a next
link.
include | string (Include) Default: "" Example: include=energy_certificates,building_certificates
|
{- "data": [
- {
- "attributes": {
- "building_certificates": [
- {
- "description": "string",
- "issued_at": "2019-08-24",
- "level": {
- "id": "EXCELLENT",
- "label": "string"
}, - "schema": {
- "id": "BREEAM_COMMUNITIES",
- "label": "string"
}, - "valid_until": "2019-08-24"
}
], - "energy_certificates": [
- {
- "co2_emissions": "string",
- "description": "string",
- "efficiency_class": "string",
- "end_energy_electricity": "string",
- "end_energy_heating": "string",
- "is_residential": true,
- "issued_at": "2019-08-24",
- "primary_energy": "string",
- "primary_energy_non_renewable": "string",
- "type": "CONSUMPTION",
- "valid_until": "2019-08-24"
}
], - "external_id": "string",
- "name": "string"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
required | Array of objects (Data) |
{- "data": [
- {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "consumption_value": 0,
- "end_date": "2019-08-24",
- "external_meter_id": "123XYZ",
- "start_date": "2019-08-24"
}, - "type": "CONSUMPTION_INTERVAL"
}
]
}
{- "data": {
- "created": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "type": "CONSUMPTION_INTERVAL",
- "updated": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
required | object (ConsumptionIntervalPayloadData) |
{- "data": {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "consumption_value": 0,
- "end_date": "2019-08-24",
- "external_meter_id": "123XYZ",
- "start_date": "2019-08-24"
}, - "type": "CONSUMPTION_INTERVAL"
}
}
{- "data": {
- "attributes": {
- "consumption_value": "string",
- "end_date": "2019-08-24",
- "start_date": "2019-08-24"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "CONSUMPTION_INTERVAL"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
required | object (alasco__components__public_api__esg__web__v1__schemas__utilities__utility_batch_info__UtilityDataBatchInfoWrite) |
{- "data": {
- "attributes": {
- "data_source_label": "string",
- "data_source_value": "string",
- "external_id": "string"
}, - "type": "UTILITY_DATA_BATCH_INFO"
}
}
{- "data": {
- "attributes": {
- "data_source_label": "string",
- "data_source_value": "string",
- "external_id": "string"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_DATA_BATCH_INFO"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
required | Array of objects (Data) |
{- "data": [
- {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "external_meter_id": "123XYZ",
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "type": "UTILITY_METER_READING"
}
]
}
{- "data": {
- "created": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "type": "UTILITY_METER_READING",
- "updated": [
- {
- "external_meter_id": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
]
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
building_uuid required | string <uuid> (Building Uuid) |
meter_uuid required | string <uuid> (Meter Uuid) |
required | object (UtilityMeterReadingPayloadData) |
{- "data": {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "type": "UTILITY_METER_READING"
}
}
{- "data": {
- "attributes": {
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER_READING"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
required | object (UtilityMeterReadingWithExternalIdPayloadData) |
{- "data": {
- "attributes": {
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "external_meter_id": "123XYZ",
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "type": "UTILITY_METER_READING"
}
}
{- "data": {
- "attributes": {
- "reading_timestamp": "2024-01-01T00:00:00Z",
- "reading_value": 1000
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER_READING"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
required | object (UtilityMeterCreatePayloadData) |
{- "data": {
- "attributes": {
- "activation_date": "2019-08-24",
- "batch_info_uuid": "97ca2641-83f7-40d5-8c06-55fdd6f134c5",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": 0,
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_building_id": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "meter_id": "string",
- "multiplication_factor": "1",
- "procured_by": "LANDLORD",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "type": "UTILITY_METER"
}
}
{- "data": {
- "attributes": {
- "activation_date": "2019-08-24",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": "string",
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": "string",
- "procured_by": "LANDLORD",
- "serial": "string",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
building_uuid required | string <uuid> (Building Uuid) |
{- "data": [
- {
- "attributes": {
- "activation_date": "2019-08-24",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": "string",
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": "string",
- "procured_by": "LANDLORD",
- "serial": "string",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER"
}
], - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}
meter_external_id required | string (Meter External Id) |
required | object (UtilityMeterPatchPayloadData) |
{- "data": {
- "attributes": {
- "activation_date": "2019-08-24",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": 0,
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": 0,
- "procured_by": "LANDLORD",
- "serial": "string",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "type": "UTILITY_METER"
}
}
{- "data": {
- "attributes": {
- "activation_date": "2019-08-24",
- "category": "COOLING",
- "cooling_system": "DISTRICT",
- "custom_conversion_factor": "string",
- "deactivation_date": "2019-08-24",
- "description": "string",
- "external_id": "string",
- "heating_system": "DISTRICT_HEATING",
- "multiplication_factor": "string",
- "procured_by": "LANDLORD",
- "serial": "string",
- "sub_category": "COLD_WATER",
- "units": "BRITISH_THERMAL_UNITS"
}, - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "UTILITY_METER"
}, - "errors": [
- {
- "code": "string",
- "detail": "string",
- "source": {
- "property1": "string",
- "property2": "string"
}, - "status": "string",
- "title": "string"
}
], - "included": [
- {
- "attributes": { },
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "relationships": { },
- "type": "BUILDING"
}
], - "links": {
- "next": "string",
- "prev": "string"
}
}