Validate LCA
const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/lca/validate/{lca_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/lca/validate/{lca_id}"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.dcycle.io/lca/validate/{lca_id} \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'Validate LCA
Validate an LCA portfolio against a methodology and impact category
GET
/
lca
/
validate
/
{lca_id}
Validate LCA
const options = {
method: 'GET',
headers: {'x-api-key': '<x-api-key>', 'x-organization-id': '<x-organization-id>'}
};
fetch('https://api.dcycle.io/lca/validate/{lca_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.dcycle.io/lca/validate/{lca_id}"
headers = {
"x-api-key": "<x-api-key>",
"x-organization-id": "<x-organization-id>"
}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://api.dcycle.io/lca/validate/{lca_id} \
--header 'x-api-key: <x-api-key>' \
--header 'x-organization-id: <x-organization-id>'← LCA API
Validates an LCA portfolio by checking that the specified processes can produce valid impact calculations for a given methodology and impact category. Use this before requesting impact calculations to ensure all required data is in place.
Request
Headers
string
required
Your API key for authenticationExample:
sk_live_1234567890abcdefstring
required
Your organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
string
required
UUID of the LCA portfolio to validateExample:
550e8400-e29b-41d4-a716-446655440000Query Parameters
string
required
UUID of the methodology to validate againstExample:
d4e5f6a7-b8c9-0123-def4-567890123456string
required
Impact category identifier to validateCommon values:
gwp, ap, ep, pocp, adparray[string]
required
List of process block UUIDs to include in the validationExample:
process_id_list=uuid1&process_id_list=uuid2Example
curl -X GET "https://api.dcycle.io/lca/validate/${LCA_ID}?methodology_id=${METHODOLOGY_ID}&impact_category=gwp&process_id_list=${PROCESS_ID_1}&process_id_list=${PROCESS_ID_2}" \
-H "x-api-key: ${DCYCLE_API_KEY}" \
-H "x-organization-id: ${DCYCLE_ORG_ID}"
import requests
import os
lca_id = "550e8400-e29b-41d4-a716-446655440000"
response = requests.get(
f"https://api.dcycle.io/lca/validate/{lca_id}",
headers={
"x-api-key": os.getenv("DCYCLE_API_KEY"),
"x-organization-id": os.getenv("DCYCLE_ORG_ID"),
},
params={
"methodology_id": "d4e5f6a7-b8c9-0123-def4-567890123456",
"impact_category": "gwp",
"process_id_list": [
"a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"b2c3d4e5-f6a7-8901-bcde-f12345678901",
],
},
)
is_valid = response.json()
if is_valid:
print("LCA is valid — ready for impact calculation")
else:
print("LCA validation failed — check process data")
const axios = require('axios');
const lcaId = '550e8400-e29b-41d4-a716-446655440000';
axios.get(`https://api.dcycle.io/lca/validate/${lcaId}`, {
headers: {
'x-api-key': process.env.DCYCLE_API_KEY,
'x-organization-id': process.env.DCYCLE_ORG_ID,
},
params: {
methodology_id: 'd4e5f6a7-b8c9-0123-def4-567890123456',
impact_category: 'gwp',
process_id_list: [
'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
'b2c3d4e5-f6a7-8901-bcde-f12345678901',
],
},
})
.then(({ data }) => {
console.log(data ? 'Valid' : 'Invalid');
});
Successful Response
Returnstrue if the LCA portfolio is valid for the specified parameters, false otherwise.
true
Common Errors
401 Unauthorized
Cause: Missing or invalid API key{"detail": "Invalid API key for organization", "code": "INVALID_API_KEY"}
403 Forbidden
Cause: The authenticated user is not a member of the organization{"detail": "Logged User is not Member of Organization", "code": "LOGGED_USER_NOT_MEMBER"}
404 Not Found
Cause: LCA portfolio not found or doesn’t belong to your organization{"detail": "LCA Portfolio not found"}
422 Unprocessable Entity
Cause: Missing required query parameters{
"detail": [
{
"loc": ["query", "methodology_id"],
"msg": "field required",
"type": "value_error.missing"
}
]
}
Related Endpoints
Get LCA Impacts
Calculate impacts after validation passes
Get LCA Portfolio
View portfolio details
LCA routes are not versioned. Only portfolio creation is served under
/v1
(POST /v1/lca/portfolio); every other route in this module lives at /lca/....LCA Dashboard
View aggregated environmental impact results
Was this page helpful?