> ## Documentation Index
> Fetch the complete documentation index at: https://code.dcycle.io/llms.txt
> Use this file to discover all available pages before exploring further.

# List LCA Portfolios

> Retrieve a paginated list of Life Cycle Assessment portfolios

# List LCA Portfolios

Retrieve a paginated list of LCA portfolios belonging to your organization.

## Request

### Headers

<ParamField header="x-api-key" type="string" required>
  Your API key for authentication
</ParamField>

<ParamField header="x-organization-id" type="string" required>
  Your organization UUID
</ParamField>

### Query Parameters

<ParamField query="page" type="integer" default="1">
  Page number for pagination
</ParamField>

<ParamField query="size" type="integer" default="10">
  Number of items per page (max 100)
</ParamField>

<ParamField query="filter_by" type="string">
  Filter expression. Supports filtering by name and status.

  **Example:** `"name:My Product"`
</ParamField>

<ParamField query="sort_by" type="string">
  Sort expression. Supports sorting by `name`, `created_at`, `updated_at`.

  **Example:** `"created_at:desc"`
</ParamField>

## Response

<ResponseField name="items" type="array[object]">
  Array of LCA portfolio objects

  <Expandable title="LCA Portfolio Object">
    <ResponseField name="id" type="string">Unique identifier (UUID)</ResponseField>
    <ResponseField name="organization_id" type="string">Organization UUID</ResponseField>
    <ResponseField name="name" type="string">LCA portfolio name</ResponseField>
    <ResponseField name="description" type="string | null">Portfolio description</ResponseField>

    <ResponseField name="impact_categories" type="array[string]">
      List of EN 15804+A2 impact categories selected for this LCA.

      **Example:** `["climate_change", "acidification", "ozone_depletion"]`
    </ResponseField>

    <ResponseField name="final_product_id" type="string | null">UUID of the final product</ResponseField>
    <ResponseField name="unit_id" type="string | null">UUID of the functional unit</ResponseField>
    <ResponseField name="value" type="number | null">Functional unit value (quantity)</ResponseField>
    <ResponseField name="start_date" type="date | null">Assessment start date</ResponseField>
    <ResponseField name="end_date" type="date | null">Assessment end date</ResponseField>
    <ResponseField name="status" type="string">LCA status: `active`, `draft`, `archived`</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="total" type="integer">Total number of LCAs matching the filter</ResponseField>
<ResponseField name="page" type="integer">Current page number</ResponseField>
<ResponseField name="size" type="integer">Number of items per page</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl -X GET "https://api.dcycle.io/lca/portfolio?page=1&size=20" \
    -H "x-api-key: ${DCYCLE_API_KEY}" \
    -H "x-organization-id: ${DCYCLE_ORG_ID}"
  ```

  ```python Python theme={"theme":{"light":"github-light","dark":"github-dark"}}
  import requests
  import os

  headers = {
      "x-api-key": os.getenv("DCYCLE_API_KEY"),
      "x-organization-id": os.getenv("DCYCLE_ORG_ID")
  }

  response = requests.get(
      "https://api.dcycle.io/lca/portfolio",
      headers=headers,
      params={"page": 1, "size": 20}
  )

  for lca in response.json()["items"]:
      print(f"{lca['name']} ({lca['status']})")
  ```

  ```javascript JavaScript theme={"theme":{"light":"github-light","dark":"github-dark"}}
  const axios = require('axios');

  const headers = {
    'x-api-key': process.env.DCYCLE_API_KEY,
    'x-organization-id': process.env.DCYCLE_ORG_ID
  };

  axios.get('https://api.dcycle.io/lca/portfolio', {
    headers,
    params: { page: 1, size: 20 }
  })
  .then(response => {
    response.data.items.forEach(lca => {
      console.log(`${lca.name} (${lca.status})`);
    });
  });
  ```
</CodeGroup>

### Successful Response

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "items": [
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "organization_id": "a8315ef3-dd50-43f8-b7ce-d839e68d51fa",
      "name": "Ceramic Tile 60x60",
      "description": "LCA for standard ceramic tile production",
      "impact_categories": [
        "climate_change",
        "acidification",
        "eutrophication_freshwater",
        "eutrophication_marine",
        "ozone_depletion",
        "water_scarcity"
      ],
      "final_product_id": "bf800281-bcc7-42f4-81e4-8ec9abb9745e",
      "unit_id": "c1d2e3f4-a5b6-7890-cdef-ab1234567890",
      "value": 1000.0,
      "start_date": "2025-01-01",
      "end_date": "2025-12-31",
      "status": "active"
    }
  ],
  "total": 5,
  "page": 1,
  "size": 20
}
```

## Related Endpoints

<CardGroup cols={2}>
  <Card title="LCA Dashboard" icon="chart-bar" href="/api-reference/lca/dashboard">
    Get environmental impact results for an LCA
  </Card>

  <Card title="LCA Overview" icon="leaf" href="/api-reference/lca/overview">
    LCA API introduction and concepts
  </Card>
</CardGroup>
