Site-owner opt-out API
Site owners asking for their domain to be excluded: public, with no key or session. Staff check and decide each request by hand.
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.
Ask to opt a domain out
/v1/opt-out-requestsAuthentication. None: anyone may call it, within a budget per client address where the description says so.
Asks for a domain, and everything under it, to be excluded: tasks against it refused. The request is stored and sent to our staff, who check that you speak for the domain and answer you by email; nothing changes until they decide. It needs no key or session. A browser's request must send no Sec-Fetch-Site but same-origin or none (csrf_rejected). Requests have a budget per client address, then per domain.
Request body JSON · NewOptOutRequest
| Field | What it is |
|---|---|
domain | The domain to exclude, such as |
email | Where staff answer you. |
message | Anything staff should know, such as how they can confirm you run the site: up to 2,000 characters. |
Responses
| Status | What it means |
|---|---|
| 202 Accepted | Received: staff will answer by email. OptOutReceipt (application/json) |
| 403 Forbidden | A browser's request from another site ( Problem (application/problem+json) |
| 422 Unprocessable Content | Not a domain, not an email address, or a message over 2,000 characters ( Problem (application/problem+json) |
| 429 Too Many Requests | Too many requests from this address, or for this domain ( Problem (application/problem+json) |
| 503 Service Unavailable | The request cannot be stored now ( Problem (application/problem+json) |
| Any other status | An error, as RFC 9457 problem details. Problem (application/problem+json) |
Error codes
The errors reference says what each means, whether a retry helps and what it costs.
Request
curl -X POST https://api.zerocaptcha.io/v1/opt-out-requests \ -H "Content-Type: application/json" \ -d '{ "domain": "example.com", "email": "owner@example.com"}'const response = await fetch("https://api.zerocaptcha.io/v1/opt-out-requests", { method: "POST", headers: { "Content-Type": "application/json", }, body: JSON.stringify({ "domain": "example.com", "email": "owner@example.com" }),});console.log(response.status, await response.text());import requests
response = requests.post( "https://api.zerocaptcha.io/v1/opt-out-requests", json={ "domain": "example.com", "email": "owner@example.com", }, timeout=30,)print(response.status_code, response.text)Response
{
"domain": "example.com",
"id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b",
"receivedAt": "2026-10-01T00:00:00Z"
}csrf_rejected
{
"type": "https://zerocaptcha.io/docs/reference/errors/#csrf_rejected",
"title": "Cross-site request refused",
"status": 403,
"instance": "/v1/opt-out-requests",
"code": "csrf_rejected",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}validation_failed
{
"type": "https://zerocaptcha.io/docs/reference/errors/#validation_failed",
"title": "Invalid request",
"status": 422,
"instance": "/v1/opt-out-requests",
"code": "validation_failed",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}rate_limited
{
"type": "https://zerocaptcha.io/docs/reference/errors/#rate_limited",
"title": "Too many requests",
"status": 429,
"instance": "/v1/opt-out-requests",
"code": "rate_limited",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}service_unavailable
{
"type": "https://zerocaptcha.io/docs/reference/errors/#service_unavailable",
"title": "Service unavailable",
"status": 503,
"instance": "/v1/opt-out-requests",
"code": "service_unavailable",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}bad_request
{
"type": "https://zerocaptcha.io/docs/reference/errors/#bad_request",
"title": "Bad request",
"status": 400,
"instance": "/v1/opt-out-requests",
"code": "bad_request",
"request_id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b"
}Example values in the contract's shape, version 0.1.0.