# OpenAPI and Reference Formats

The SIMcloud API reference is available as web pages, plain Markdown and an OpenAPI contract. Read HTML for a browsable reference, pass Markdown to an agent that needs the documentation, or download the OpenAPI schema to inspect the operations and request fields in your tooling.

[Web guide](https://simcloud.co.za/docs/guide/api-formats/)

[API reference](https://simcloud.co.za/api/index.html)

## Read HTML or Markdown reference pages

Open the HTML index to browse service guides. The llms.txt index lists Markdown pages and schema downloads. The electricity reference is one example of a service Markdown URL.

### GET /api/index.html

```bash
curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/index.html"
```

### GET /api/llms.txt

```bash
curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/llms.txt"
```

### GET /api/electricity.md

```bash
curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/electricity.md"
```

## Download the OpenAPI contract

Open the HTML OpenAPI reference to read about the schema, or retrieve the YAML and JSON contracts for tooling. Use the paths and operation IDs to reconcile endpoint coverage. The reference routes are public and require no API token.

### GET /api/openapi.php

```bash
curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/openapi.php"
```

### GET /api/openapi.yaml

```bash
curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/openapi.yaml"
```

### GET /api/openapi.json

```bash
curl -4 -sS -i "${SIMCLOUD_API_BASE:-https://simcloud.co.za}/api/openapi.json"
```
