> ## 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 R/D Codes

> Retrieve the kernel R/D (recovery/disposal) operation codes used by the waste pipeline

[← Wastes API](/api-reference/wastes/overview)

Returns the kernel `waste_rd_codes` reference table. Pass the `id` of an entry as `waste_rd_code_id` when creating or updating a waste ([POST /v1/wastes](/api-reference/wastes/create)). This field is optional — roughly a third of waste records name no treatment.

<Info>
  This replaces the deprecated `waste_efs_id` discovery. Pre-existing legacy records (created
  before this cutover) can still be inspected via
  [`GET /v1/waste-efs`](/api-reference/wastes/emission-factors), but that catalog is no longer
  accepted on create or update.
</Info>

## Request

### Headers

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

  **Example:** `sk_live_1234567890abcdef`
</ParamField>

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

  **Example:** `a8315ef3-dd50-43f8-b7ce-d839e68d51fa`
</ParamField>

### Query Parameters

<ParamField query="ler_code_id" type="uuid">
  Restrict results to R/D codes valid for this LER code (via `waste_matches`). Omit to get the
  full catalog.

  **Example:** `a1b2c3d4-e5f6-7890-abcd-ef1234567890`
</ParamField>

## Response

Returns a plain array — not paginated.

<ResponseField name="id" type="string">
  UUID to send as `waste_rd_code_id` when creating a waste
</ResponseField>

<ResponseField name="code" type="string">
  R/D operation code, e.g. `R3`, `D1`
</ResponseField>

<ResponseField name="name" type="string">
  R/D code name/slug
</ResponseField>

<ResponseField name="description" type="string | null">
  Human-readable description
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark"}}
  curl -X GET "https://api.dcycle.io/v1/wastes/rd-codes?ler_code_id=a1b2c3d4-e5f6-7890-abcd-ef1234567890" \
    -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/v1/wastes/rd-codes",
      headers=headers,
      params={"ler_code_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"},
  )

  for rd_code in response.json():
      print(f"{rd_code['code']} → {rd_code['id']}")
  ```

  ```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/v1/wastes/rd-codes', {
    headers,
    params: { ler_code_id: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' },
  }).then(response => {
    response.data.forEach(rdCode => {
      console.log(`${rdCode.code} → ${rdCode.id}`);
    });
  });
  ```
</CodeGroup>

### Successful Response

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
[
  {
    "id": "b2c3d4e5-f6a7-8901-bcde-fa2345678901",
    "code": "R03",
    "name": "recycling_recovery_of_organic_substances",
    "description": "Recycling/reclamation of organic substances"
  }
]
```

## Related Endpoints

<CardGroup cols={2}>
  <Card title="List LER Codes" icon="list" href="/api-reference/wastes/ler-codes">
    List waste type codes to scope this endpoint with `ler_code_id`
  </Card>

  <Card title="Create Waste" icon="plus" href="/api-reference/wastes/create">
    Create a waste record using the `waste_rd_code_id` from this endpoint
  </Card>
</CardGroup>
