> For the complete documentation index, see [llms.txt](https://docs.adasinnovative.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.adasinnovative.com/api-reference/readme.md).

# Developer Platform API

Learn more about documenting APIs in GitBook.

## API Reference

Base URL: `https://[VM-EXTERNAL-IP]`

### Data

| Method | Endpoint         | Description                                   |
| ------ | ---------------- | --------------------------------------------- |
| POST   | /upload          | Upload CSV, trigger BigQuery load job         |
| POST   | /upload-bill     | Upload utility bill with auto CO₂ calculation |
| GET    | /metrics         | Per-product CO₂ with Scope 2 and 3 labels     |
| GET    | /trends          | 12-month CO₂ trend data                       |
| GET    | /total-footprint | Aggregate KPI figures                         |
| GET    | /uploads         | Upload history audit log                      |

### Simulator

| Method | Endpoint          | Description                         |
| ------ | ----------------- | ----------------------------------- |
| POST   | /simulate         | Run green intervention simulation   |
| GET    | /simulate/prefill | Auto-fill from last 90 days of data |

### Scenarios

| Method | Endpoint        | Description              |
| ------ | --------------- | ------------------------ |
| GET    | /scenarios      | List all saved scenarios |
| POST   | /scenarios      | Save a named scenario    |
| GET    | /scenarios/{id} | Load a scenario by ID    |
| DELETE | /scenarios/{id} | Delete a scenario        |

### Settings

| Method | Endpoint                | Description                  |
| ------ | ----------------------- | ---------------------------- |
| GET    | /settings/factors       | Get active emission factors  |
| POST   | /settings/factors       | Save custom emission factors |
| POST   | /settings/factors/reset | Reset to system defaults     |

### Export

| Method | Endpoint      | Description               |
| ------ | ------------- | ------------------------- |
| GET    | /export/excel | Download Excel ESG report |
| GET    | /export/pdf   | Download PDF ESG report   |

### Health

| Method | Endpoint | Description                               |
| ------ | -------- | ----------------------------------------- |
| GET    | /health  | VM status and BigQuery connectivity check |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.adasinnovative.com/api-reference/readme.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
