> ## 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.

# [GUIDE_TITLE]

> [BRIEF_DESCRIPTION - one sentence summary of what the user will learn]

## Understanding \[TOPIC\_NAME]

**\[TOPIC\_NAME]** \[describe what this topic covers and why it matters]. According to the [relevant standard/reference](https://link-to-source), this includes:

* **\[Category 1]**: \[Description]
* **\[Category 2]**: \[Description]
* **\[Category 3]**: \[Description]
* **\[Category 4]**: \[Description]

```
┌─────────────────────────────────────────────────────────────────────────────┐
│                           [DIAGRAM_TITLE]                                   │
├─────────────────────┬─────────────────────┬─────────────────────────────────┤
│  [Column 1]         │  [Column 2]         │  [Column 3]                     │
│  [Header]           │  [Header]           │  [Header]                       │
├─────────────────────┼─────────────────────┼─────────────────────────────────┤
│  • [Item 1]         │  • [Item 1]         │  • [Item 1]                     │
│  • [Item 2]         │  • [Item 2]         │  • [Item 2]                     │
│  • [Item 3]         │  • [Item 3]         │  • [Item 3]                     │
│  • [Item 4]         │  • [Item 4]         │  • [Item 4]                     │
└─────────────────────┴─────────────────────┴─────────────────────────────────┘
```

> [!NOTE]
>
> **\[KEY\_CONCEPT\_TITLE]**
>
> \[Explain the key formula, concept, or methodology]
>
> **\[FORMULA\_NAME] = \[FORMULA]**
>
> Where:
>
> * **\[Variable 1]**: \[Description]
> * **\[Variable 2]**: \[Description]
> * **\[Variable 3]**: \[Description]

## Prerequisites

Before starting, ensure you have:

* Dcycle API credentials ([get them here](https://code.dcycle.io/docs/quickstart.md#step-1-get-your-api-key))
* \[Prerequisite 2]
* \[Prerequisite 3]

> [!TIP]
>
> **Using the Dcycle App?**
>
> You can also manage this through our web interface:
>
> * [Feature 1](https://app.dcycle.io) - \[Description]
> * [Feature 2](https://app.dcycle.io) - \[Description]
> * [Feature 3](https://app.dcycle.io) - \[Description]

## Data Map: \[TOPIC] Requirements Overview

Before diving into the calculations, here's a complete overview of the data you'll need:

```
┌─────────────────────────────────────────────────────────────────────────────────────────┐
│                        [TOPIC] DATA REQUIREMENTS OVERVIEW                               │
├─────────────────────────────────────────────────────────────────────────────────────────┤
│                                                                                         │
│  ┌─────────────────────────────────────────────────────────────────────────────────┐   │
│  │ [SECTION 1] (Steps X.1 - X.N)                                                   │   │
│  ├─────────────────────────────────────────────────────────────────────────────────┤   │
│  │                                                                                 │   │
│  │  [Category 1]              [Category 2]          [Category 3]                   │   │
│  │  ─────────────────         ────────────          ─────────────────              │   │
│  │  • [Field 1]               • [Field 1]           • [Field 1]                    │   │
│  │  • [Field 2]               • [Field 2]           • [Field 2]                    │   │
│  │  • [Field 3]               • [Field 3]           • [Field 3]                    │   │
│  │  • [Field 4]               • [Field 4]           • [Field 4]                    │   │
│  │                                                                                 │   │
│  └─────────────────────────────────────────────────────────────────────────────────┘   │
│                                                                                         │
│  ┌─────────────────────────────────────────────────────────────────────────────────┐   │
│  │ [SECTION 2] (Steps X.N+1 - X.M)                                                 │   │
│  ├─────────────────────────────────────────────────────────────────────────────────┤   │
│  │                                                                                 │   │
│  │  [Category 1]              [Category 2]                                         │   │
│  │  ────────────────────      ────────────────                                     │   │
│  │  • [Field 1]               • [Field 1]                                          │   │
│  │  • [Field 2]               • [Field 2]                                          │   │
│  │  • [Field 3]               • [Field 3]                                          │   │
│  │  • [Field 4]               • [Field 4]                                          │   │
│  │                                                                                 │   │
│  └─────────────────────────────────────────────────────────────────────────────────┘   │
│                                                                                         │
└─────────────────────────────────────────────────────────────────────────────────────────┘
```

## \[MAIN\_SECTION\_TITLE]

\[Introduction to this section - what it covers and how Dcycle handles it]

### Emission Sources Covered

| Source Type | \[Column 2] | Examples |
| - | - | - |
| **\[Type 1]** | `[value]` | \[Examples] |
| **\[Type 2]** | `[value]` | \[Examples] |
| **\[Type 3]** | `[value]` | \[Examples] |
| **\[Type 4]** | `[value]` | \[Examples] |

### Calculation Methods by \[CATEGORY]

> [tab] \[Option 1 Name]
>
> For \[context], Dcycle uses \[methodology] from **\[Source]**.
>
> ```
> [Flow diagram showing the process]
> [Input] → [Step 1] → [Step 2] → [Output]
>       ↓         ↓           ↓           ↓
>   [Detail]  [Detail]    [Detail]    [Detail]
> ```
>
> **Key characteristics:**
>
> * \[Characteristic 1]
>
> * \[Characteristic 2]
>
> * \[Characteristic 3]
>
> * \[Characteristic 4]
>
> > [!TIP]
> >
> > Access \[resource name] [here](https://link-to-resource).
>
> > [accordion] Emission Factor Sources - \[Option 1]
> >
> > For \[context], Dcycle uses emission factors from:
> >
> > * **\[Source 1]** (\[Full name])
> > * \[Additional details]
> > * Source: [Link to official source](https://link)
> >
> > Factors are automatically selected based on:
> >
> > * \[Selection criteria 1]
> > * \[Selection criteria 2]
> > * \[Selection criteria 3]
>
> > [accordion] Calculation Details - \[Option 1]
> >
> > \[Explain the calculation methodology]
> >
> > **\[Formula Name] = \[Formula]**
> >
> > Where:
> >
> > * **\[Variable 1]**: \[Description]
> > * **\[Variable 2]**: \[Description]
> > * **\[Variable 3]**: \[Description]
> >
> > **Example (\[specific case]):**
> >
> > ```
> > [Step-by-step calculation example]
> > ```

> [tab] \[Option 2 Name]
>
> For \[context], Dcycle uses \[methodology] from **\[Source]**.
>
> ```
> [Flow diagram showing the process]
> ```
>
> **Key characteristics:**
>
> * \[Characteristic 1]
>
> * \[Characteristic 2]
>
> * \[Characteristic 3]
>
> > [!TIP]
> >
> > Access \[resource name] [here](https://link-to-resource).
>
> > [accordion] Emission Factor Sources - \[Option 2]
> >
> > \[Emission factor source details]
>
> > [accordion] Calculation Details - \[Option 2]
> >
> > \[Calculation methodology details]

> [!NOTE]
>
> **Automatic \[Feature] Selection**
>
> You don't need to specify \[what]. Dcycle automatically detects \[criteria] and applies the correct \[settings]:
>
> * `[condition 1]` → \[result 1]
> * `[condition 2]` → \[result 2]

What you'll track:

```
[Stage 1] → [Stage 2] → [Stage 3]
      ↓           ↓            ↓
  [Detail]    [Detail]     [Detail]
```

### Data Flow

**1. \[Step 1 Title]**

\[Step 1 description]

**2. \[Step 2 Title]**

\[Step 2 description]

**3. \[Step 3 Title]**

\[Step 3 description]

**4. \[Step 4 Title]**

\[Step 4 description]

**5. \[Step 5 Title]**

\[Step 5 description]

### Step \[X.1]: \[Step Title]

> [accordion] 📋 Data Map: \[Step Name]
>
> | Field | Type | Required | Description | Example |
> | - | - | - | - | - |
> | `[field_name]` | string | ✅ | \[Description] | `"[example]"` |
> | `[field_name]` | UUID | ✅ | \[Description] | `"abc-123-..."` |
> | `[field_name]` | number | ✅ | \[Description] | `5000` |
> | `[field_name]` | date | ✅ | \[Description] | `"2024-01-01"` |
> | `[field_name]` | UUID | ❌ | \[Optional field description] | `"optional-uuid"` |
>
> **Where to get this data:**
>
> * **\[Field 1]**: \[Source/method to obtain]
> * **\[Field 2]**: \[API endpoint or manual source]
> * **\[Field 3]**: \[Data source description]

\[Brief introduction to what this step accomplishes]

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

# The API key goes in x-api-key (never as a Bearer token) and acts as the person who created it: no x-user-id.
headers = {
    "x-api-key": os.getenv("DCYCLE_API_KEY"),
    "x-organization-id": os.getenv("DCYCLE_ORG_ID"),
    "Content-Type": "application/json",
}

# [Comment explaining what this code does]
[variable] = "[value]"

# [Step 1 comment]
response = requests.get(
    f"https://api.dcycle.io/v2/[endpoint]/{[variable]}",
    headers=headers,
).json()

# [Step 2 comment]
data = {
    "[field_1]": "[value]",
    "[field_2]": [value],
    "[field_3]": "[value]",
}

# [Step 3 comment]
response = requests.post(
    "https://api.dcycle.io/v2/[endpoint]",
    headers=headers,
    json=data,
)

result = response.json()
print(f"✅ [Success message]: {result['id']}")
print(f"   [Additional info]: {result['field']}")
```

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

// The API key goes in x-api-key (never as a Bearer token) and acts as the person who created it: no x-user-id.
const headers = {
  'x-api-key': process.env.DCYCLE_API_KEY,
  'x-organization-id': process.env.DCYCLE_ORG_ID,
  'Content-Type': 'application/json',
};

// [Comment explaining what this code does]
const variable = 'value';

// [Step 1 comment]
const response = await axios.get(
  `https://api.dcycle.io/v2/[endpoint]/${variable}`,
  { headers }
);
const data = response.data;

// [Step 2 comment]
const requestData = {
  field_1: 'value',
  field_2: value,
  field_3: 'value',
};

// [Step 3 comment]
const result = await axios.post(
  'https://api.dcycle.io/v2/[endpoint]',
  requestData,
  { headers }
);

console.log(`✅ [Success message]: ${result.data.id}`);
console.log(`   [Additional info]: ${result.data.field}`);
```

> [!TIP]
>
> **\[Helpful Tip Title]**
>
> \[Tip content explaining a best practice, shortcut, or recommendation]

### Step \[X.2]: \[Step Title]

> [accordion] 📋 Data Map: \[Step Name]
>
> | Field | Type | Required | Description | Example |
> | - | - | - | - | - |
> | `[field_name]` | string | ✅ | \[Description] | `"[example]"` |
> | `[field_name]` | UUID | ✅ | \[Description] | `"abc-123-..."` |
> | `[field_name]` | number | ✅ | \[Description] | `250` |
>
> **Where to get this data:**
>
> * **\[Field 1]**: \[Source/method to obtain]
> * **\[Field 2]**: \[API endpoint or manual source]

\[Brief description of this step and when to use it]

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
# [Code example for this step]
data = {
    "[field_1]": "[value]",
    "[field_2]": [value],
}

response = requests.post(
    "https://api.dcycle.io/v2/[endpoint]",
    headers=headers,
    json=data,
)

print(f"✅ [Success message]: {response.json()['id']}")
```

> [!WARNING]
>
> **\[Warning Title]**
>
> \[Important warning about potential issues, high-impact items, or common mistakes]
>
> * **\[Item 1]**: \[Value/impact]
> * **\[Item 2]**: \[Value/impact]
> * **\[Item 3]**: \[Value/impact]
>
> \[Additional context or recommendation]

> [!NOTE]
>
> **\[Note Title]**
>
> \[Important information about behavior, distinctions, or clarifications]
>
> * Use `[option A]` when \[condition A]
> * Use `[option B]` when \[condition B]
>
> Example: \[Concrete example to illustrate the note]

## \[SECONDARY\_SECTION\_TITLE]

\[Introduction to secondary section]

> [accordion] \[Accordion 1 Title]
>
> \[Content]

> [accordion] \[Accordion 2 Title]
>
> \[Content with formula or methodology]
>
> **\[Formula] = \[Expression]**
>
> Where:
>
> * **\[Variable 1]**: \[Description]
> * **\[Variable 2]**: \[Description]

> [accordion] \[Accordion 3 Title]
>
> \[Content]

### CSV Format for \[Data Type]

```csv theme={"theme":{"light":"github-light","dark":"github-dark"}}
[column1],[column2],[column3],[column4],[column5]
[example_row_1]
[example_row_2]
[example_row_3]
```

### Query \[Data Type]

```python theme={"theme":{"light":"github-light","dark":"github-dark"}}
# [Code example for querying/retrieving data]
response = requests.get(
    f"https://api.dcycle.io/v2/[endpoint]/{[id]}",
    headers=headers,
    params={
        "page": 1,
        "size": 50,
        "[filter_1]": "[value]",
        "[filter_2]": "[value]",
    },
).json()

print(f"📊 [Data Type]:")
for item in response["items"]:
    print(f"   {item['field_1']} - {item['field_2']}")
    print(f"   [Label]: {item['field_3']}")
    print()
```

> [!TIP]
>
> **Best Practice: \[Practice Title]**
>
> For complete \[topic] accounting:
>
> 1. **\[Recommendation 1]**: \[Description]
> 2. **\[Recommendation 2]**: \[Description]
> 3. **\[Recommendation 3]**: \[Description]
>
> Use the `[field]` field (`[option A]` or `[option B]`) to distinguish.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.