# Diapleo API Reference

The Diapleo REST API provides programmatic access to DeFi risk intelligence — protocol composite risk scores (0–10 scale), six-dimension risk breakdowns, wallet scanning, and protocol screening.

Built for quantitative researchers, portfolio managers, and DeFi developers who need structured, machine-readable risk data delivered as clean JSON endpoints.

### Who uses this API?

* **DeFi funds & asset managers** — Integrate protocol risk scores into portfolio construction and rebalancing workflows.
* **Risk & compliance teams** — Continuous monitoring of protocol risk posture across treasury allocations.
* **Developers & aggregators** — Embed risk intelligence into dashboards, yield aggregators, and smart contract guards.

### TypeScript-first

All request and response shapes are defined as TypeScript interfaces. Engineers consuming the API in TypeScript get full autocomplete and type safety.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.diapleo.com/api-reference/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
