The contract API
Documents about the API itself, such as this contract.
Every operation of the API reference is generated from the contract the API serves, version 0.1.0. Replace YOUR_API_KEY in the samples with your key; each response shows an example in the contract's shape.
This contract
GET
/openapi.jsonAuthentication. None: anyone may call it, within a budget per client address where the description says so.
The OpenAPI 3.1 document that describes this API.
Responses
| Status | What it means |
|---|---|
| 200 OK | The OpenAPI document. application/json |
| Any other status | An error, as RFC 9457 problem details. Problem (application/problem+json) |
Request
curl https://api.zerocaptcha.io/openapi.jsonconst response = await fetch("https://api.zerocaptcha.io/openapi.json");console.log(response.status, await response.text());import requests
response = requests.get( "https://api.zerocaptcha.io/openapi.json", timeout=30,)print(response.status_code, response.text)Response
The OpenAPI document this reference is generated from, too long to show here. Download openapi.json
bad_request
{
"type": "https://zerocaptcha.io/docs/reference/errors/#bad_request",
"title": "Bad request",
"status": 400,
"instance": "/openapi.json",
"code": "bad_request",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}Example values in the contract's shape, version 0.1.0.