Skip to main content
GET
/
v1
/
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/v1/lca/validate/{lca_id}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));

Validate LCA

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

x-api-key
string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
x-organization-id
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

lca_id
string
required
UUID of the LCA portfolio to validateExample: 550e8400-e29b-41d4-a716-446655440000

Query Parameters

methodology_id
string
required
UUID of the methodology to validate againstExample: d4e5f6a7-b8c9-0123-def4-567890123456
impact_category
string
required
Impact category identifier to validateCommon values: gwp, ap, ep, pocp, adp
process_id_list
array[string]
required
List of process block UUIDs to include in the validationExample: process_id_list=uuid1&process_id_list=uuid2

Example

curl -X GET "https://api.dcycle.io/v1/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}"

Successful Response

Returns true 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"
    }
  ]
}

Get LCA Impacts

Calculate impacts after validation passes

Get LCA Portfolio

View portfolio details

LCA Dashboard

View aggregated environmental impact results