Skip to content

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

POST/v1/opt-out-requests

Authentication. 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

Fields of the request body
FieldWhat it is
domainstringRequired

The domain to exclude, such as example.com; everything under it is excluded with it. An internationalized one is kept in ASCII.

emailstring (email)Required

Where staff answer you.

messagestring

Anything staff should know, such as how they can confirm you run the site: up to 2,000 characters.

Responses

Responses of Ask to opt a domain out
StatusWhat it means
202 Accepted

Received: staff will answer by email.

OptOutReceipt (application/json)

403 Forbidden

A browser's request from another site (csrf_rejected).

Problem (application/problem+json)

422 Unprocessable Content

Not a domain, not an email address, or a message over 2,000 characters (validation_failed).

Problem (application/problem+json)

429 Too Many Requests

Too many requests from this address, or for this domain (rate_limited).

Problem (application/problem+json)

503 Service Unavailable

The request cannot be stored now (service_unavailable). Retry shortly.

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

Terminal window
curl -X POST https://api.zerocaptcha.io/v1/opt-out-requests \
-H "Content-Type: application/json" \
-d '{
"domain": "example.com",
"email": "owner@example.com"
}'

Response

202 Accepted OptOutReceipt (application/json)

{
  "domain": "example.com",
  "id": "0192f3a4-7b1c-7d2e-9f10-3c4d5e6f7a8b",
  "receivedAt": "2026-10-01T00:00:00Z"
}

Example values in the contract's shape, version 0.1.0.