Skip to main content
GET
Get LCA results

Authorizations

X-API-Key
string
header
required

Per-manufacturer API key in the X-API-Key header, format emidat-{key_id}-{secret} where key_id is a random public handle. Issued by an owner in the Emidat dashboard; carries its own permission scopes, optional plant restrictions, and optional expiry. A revoked, expired, or unknown key returns 401. See the Authentication guide for details.

Path Parameters

id
string<uuid>
required

The instance's Emidat UUID.

Response

LCA results.

LCA results for a product instance, one entry per reportable production year.

product_instance_id
string<uuid>
required
job
object
required

State of the recompute triggered by POST /v2/product-instances/{id}/lca-update. Recompute runs in the background, so this is how you tell finished results from in-flight ones.

results
object[]
required

One entry per reportable production year, ascending.

Reportable years run from produced_from to produced_to. An open-ended instance (produced_to: null) is instead capped at the last year production data can be entered for — the current calendar year.

Two consequences worth handling explicitly:

  • The current calendar year is reportable as soon as its production data is entered. Because the year is not over, that result covers only the part of the year entered so far.
  • Years lying in a future calendar year are listed when an explicit produced_to covers them, but stay blocked by a missing_input blocker of kind production_data until that year arrives and its production data is entered. They are not pending computation.

Do not read emptiness as "a job is running": while job.status is queued or processing this array is emptied because the stored results are mid-replacement, but it is equally empty when there is nothing to report. job.status is the only signal for whether to keep polling — poll while it is queued or processing, and stop once it reaches completed, failed, or idle, whatever results holds.