CrawlCheck-Receipt header, v1
| Version | v1 |
|---|---|
| Status | — |
| Document kind | CrawlCheck-Receipt |
| Text sha256 | b0398b7270c9c556… |
The markdown source: /spec/receipt-header?format=md (or send Accept: text/markdown) · every published document: /spec/extensions.json · all specifications
Change log
Recorded automatically: each time this text changes, its sha256 and the date are added. Recording started 2026-10-14 (Mountain Time); earlier history is in the text where it states one.
2026-10-22· text sha256b0398b7270c9c556…· current2026-10-14· text sha2562aaa3bd78226ad2a…· first recorded
Worked example
- Request
curl -s -X POST https://crawlcheck.io/api/v1/preflight \ -H 'content-type: application/json' \ -d '{"domain":"example.com","action":"read","agent":"my-agent"}' > receipt.json - What comes back: a signed decision receipt (kind crawlcheck-decision) with its sha256, the value you send as CrawlCheck-Receipt: v=1; sha256=….
- Verify it offline
The verifier is one file with no dependencies;curl -O https://crawlcheck.io/crawlcheck-verify.mjs node crawlcheck-verify.mjs --online receipt.json--onlinefetches the published keys once.
The document
An agent that asked CrawlCheck before acting can prove it to the site it acts on.
Agent side
- POST https://crawlcheck.io/api/v1/preflight {"domain": "<site>", "action": "read|cite|connect|transact|administer", "agent": "<your agent name>"}
- If the decision is one your policy accepts, send the request to the site with:
CrawlCheck-Receipt: v=1; sha256=<the receipt's sha256>
The receipt itself is not sent; only its digest. Send it only to the domain the receipt names, and only before expires_at.
Site side
Check a header you receive:
GET https://crawlcheck.io/api/v1/decisions/<sha256>?host=<your host>
The answer gives accept (true when the receipt names your host, has not expired and its decision is allow or warn), the checks behind it, and the full signed receipt, which verifies offline with https://crawlcheck.io/crawlcheck-verify.mjs. What you do with an accepted receipt is your choice: a higher rate limit, fewer challenges, or only a log line. Every check you make is kept for your site: GET https://crawlcheck.io/api/v1/decisions/checked?domain=<your host> lists which agents asked before acting, and a domain on record sees the same on /manage.
Cloudflare Worker example (cache the answer per sha256 for its lifetime in your own code if you check often):
const RE = /sha256=([0-9a-f]{64})/i;
export default { async fetch(req, env, ctx) {
const m = (req.headers.get("crawlcheck-receipt") || "").match(RE);
if (m) {
const host = new URL(req.url).hostname;
const r = await fetch("https://crawlcheck.io/api/v1/decisions/" + m[1] + "?host=" + host).then((x) => x.json()).catch(() => null);
if (r && r.accept) { const res = await fetch(req); const h = new Response(res.body, res); h.headers.set("x-crawlcheck-receipt", "accepted"); return h; }
}
return fetch(req);
} };
Privacy
CrawlCheck counts site checks per day (checked, found, accepted, by decision and action). It keeps no domains and no agent names from these checks. Daily counts: https://crawlcheck.io/api/v1/decisions