# The contract API

> Documents about the API itself, such as this contract.

Source: https://zerocaptcha.io/docs/reference/api/contract

## This contract

`GET /openapi.json` (`getOpenApi`)

The OpenAPI 3.1 document that describes this API.

Responses:

- 200 OK: The OpenAPI document.
- Any other status: An error, as RFC 9457 problem details.

```bash
curl https://api.zerocaptcha.io/openapi.json
```

```js
const response = await fetch("https://api.zerocaptcha.io/openapi.json");
console.log(response.status, await response.text());
```

```python
import requests

response = requests.get(
    "https://api.zerocaptcha.io/openapi.json",
    timeout=30,
)
print(response.status_code, response.text)
```
