# data-availability-api

> OpenAPI specification for Data Availability API.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.

Source: https://dev.flare.network/fdc/reference/data-availability-api

## Flare Data Availability Client API (v1.0.0)

OpenAPI specification for Data Availability Client API. The public API endpoints are rate limited, to request an API key for higher limits, create an [API Key Request Issue](https://github.com/flare-foundation/developer-hub/issues/new/choose).

Full specification: [/openapi/data-availability-api.yaml](/openapi/data-availability-api.yaml)

### Servers

- https://flr-data-availability.flare.network/
- https://ctn2-data-availability.flare.network/
- https://sgb-data-availability.flare.network/
- https://ctn-data-availability.flare.network/

### Endpoints

| Method | Path | Summary |
| --- | --- | --- |
| GET | `/api/health` | Checks whether the data availability runs correctly |
| GET | `/api/v0/fsp/latest-voting-round` | Retrieves the last voting round id and its starting timestamp |
| GET | `/api/v0/fsp/status` | Retrieves the last voting round id and its starting timestamp for fdc and ftso |
| GET | `/api/v0/ftso/anchor-feed-names` | Retrieves the feed id and feed name based on voting round id |
| POST | `/api/v0/ftso/anchor-feeds-with-proof` | Retrieves the feed values with there proofs based on voting round id and feed ids |
| GET | `/api/v1/fdc` | Returns full merkle tree with proof for each leaf for given round. Leaves are ABI decoded. |
| POST | `/api/v1/fdc/proof-by-request-round` | Retrieves the attestation request proof for given request bytes and voting round. Leaves are ABI decoded. |
| POST | `/api/v1/fdc/proof-by-request-round-raw` | Retrieves the attestation request proof for given request bytes and voting round. Leaves are ABI encoded. |
| GET | `/api/v1/fdc/raw` | Returns full merkle tree with proof for each leaf for given round. Leaves are ABI encoded. |


