Skip to main content
POST
Export LCA to Excel
← LCA API Exports the environmental impact results of an LCA portfolio to an Excel file. The file is uploaded to S3 and a presigned download URL is returned. Every line of the detailed sheet states the calculation behind its impact: the quantity, its unit, the emission factor and where that factor came from, so that quantity × factor gives the impact printed next to it. On the co-product views (product_total, product_unit) the quantities are scaled by the same allocation as the impacts.
The export always reflects the LCA as it is now. If the LCA changed since its impacts were last calculated, it is recalculated first — and with recursive: true, so is every LCA it references as a piece, up to max_depth levels. The request then takes as long as that recalculation.

Request

Headers

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa
string
required
Must be application/json

Path Parameters

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

Body Parameters

array
required
List of impact categories to include in the export (max 50)
boolean
default:"false"
Expand pieces that are themselves LCAs into their own lines, instead of one aggregated line each
integer
default:"10"
Maximum number of LCA levels to expand when recursive is true (1-10)
string
default:"system"
Visualization mode for the export
string
UUID of the co-product for product_total or product_unit views. Required when view is not system.

Response

string
Presigned S3 URL to download the Excel file. The URL expires after a limited time.

Example

Successful Response

Co-product View Example

To export impacts allocated to a specific co-product:

Common Errors

401 Unauthorized

Cause: Missing or invalid API key

403 Forbidden

Cause: The authenticated user is not a member of the organization

404 Not Found

Cause: LCA portfolio not found or doesn’t belong to your organization

422 Unprocessable Entity

Cause: Invalid view value or missing output_product_id for co-product views

Get LCA Impacts

Calculate impacts before exporting

LCA Dashboard

View aggregated impact results in the UI
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/....

Get LCA Portfolio

View portfolio details