Download OpenAPI specification:
API to interact with Datalake data
Get tokens from app_id / app_secret.
Once you have the access_token, you can add it to the Authorization Header prefixed with the Bearer keyword to authenticate on protected endpoints: Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...
Authentication parameters
| app_id | string |
| app_secret | string |
| grant_type | string Enum: "client_credentials" "refresh_token" |
{- "app_id": "string",
- "app_secret": "string",
- "grant_type": "client_credentials"
}{- "access_token": "string",
- "refresh_token": "string"
}Returning all countries that have an emission factor stored in the API.
{- "available_countries": [
- "ASEAN (Ember)",
- "Afghanistan",
- "Africa",
- "Africa (Ember)",
- "Albania",
- "Algeria",
- "American Samoa",
- "Angola",
- "Antigua and Barbuda",
- "Argentina",
- "Armenia",
- "Aruba"
]
}Using string similarity to find a list of matching product with the given input
| user_input required | string String input from the user |
| certifications | boolean Boolean input for the intent |
{- "product_found": [
- {
- "product_name": "Alcatel-Lucent OmniSwitch 6360",
- "part_number": "OS6360-10"
}, - {
- "product_name": "Alcatel-Lucent OmniSwitch 6360",
- "part_number": "OS6360-24"
}, - {
- "product_name": "Alcatel-Lucent OmniSwitch 6360",
- "part_number": "OS6360-48"
}
]
}Get carbon footprint for a product
| part_number required | string |
| commercial_name | string Full commercial name of the product, if nothing provided, nothing will be displayed. |
| country required | number Could be alpha2, alpha3 or English country name. |
| year | number Default to current year when not provided. |
[- {
- "part_number": "OAW-AP1431",
- "commercial_name": "Alcatel-Lucent OmniAccess Stellar AP1431",
- "country": "DE",
- "year": 2023
}
]{- "message": "Bad request"
}Get table carbon footprint for a product
| part_number required | string |
| commercial_name | string Full commercial name of the product, if nothing provided, nothing will be displayed. |
| country required | number Could be alpha2, alpha3 or English country name. |
| year | number Default to current year when not provided. |
[- {
- "part_number": "OAW-AP1431",
- "commercial_name": "Alcatel-Lucent OmniAccess Stellar AP1431",
- "country": "DE",
- "year": 2023
}
]{- "items": [
- {
- "part_number": "AP1431",
- "commercial_name": "Alcatel-Lucent OmniAccess Stellar AP1431",
- "country": "Germany",
- "ale_operation": 8.5,
- "material_manufacturing": 23.7,
- "usage": 26.7,
- "transport": 2.5,
- "end_of_life": 650.7
}
]
}Get the specific certificate for the product
| part_number required | string |
| commercial_name | string Full commercial name of the product, if nothing provided, nothing will be displayed. |
| certificate required | string Could be a certificate type like that -> weee, rohs, reach |
[- {
- "part_number": "3ML27108AA",
- "commercial_name": "ALE-108 WIRELESS MODULE",
- "certificate": "weee"
}
]{- "message": "Bad request"
}