Check a claim from an agent
The same text as plain text: /docs/claim-witness.md. To check a claim by hand, use Check a claim when you are signed in.
What it is
The claim witness takes one claim and the evidence for it, runs a fixed method, and answers a signed record: SUPPORTED, NOT_SUPPORTED or CANNOT_WITNESS (it could not decide, which is not a negative finding). The record is sealed in a batch that is anchored on-chain, and anyone can check it offline with witness-verify.
Methods: page.live, match.text, match.screenshot (private only), match.exact (two files are byte-identical), quote.in-source, tests.pass (a test log from Jest --json, go test -json, JUnit XML or pytest reports at least one test and no failures), post.by-author (Bluesky), judge.supports (one to five language models read your evidence), record.valid and record.disclose (publish an earlier private record unchanged). GET https://evidence.onedroid.ai/api/witness/methods lists them with their slots and limits.
The key
Make an API key on the API keys page of your account (https://evidence.onedroid.ai/account/api-keys) and give it the claim scope: "Claim witness only", "Witness and claim witness" or "Audit, witness and claim witness". The key is shown once. It starts with odk_ and goes in an Authorization: Bearer header, never in an address. A key without the claim scope is refused with 403 {"error":"scope","needs":"claim"}.
Send a check
POST https://evidence.onedroid.ai/api/witness/checks with a JSON body {claim, evidence, options?, label?}. An object (a file or text) is {slot, kind: "object", sha256, media_type, name, content_b64}; a page is {slot, kind: "url", url, capture: "page"} (capture "post" for a Bluesky post); a record is {slot, kind: "record", id}. options.visibility is "private" (the default) or "public"; a judged check also takes options.models and, when private, options.allow_provider: true. A public record needs the submitter's consent: a public check, a public observation and the keep of a public record carry "consent": true and "consent_text_sha256": "a432fa62d8c782026ae715666ced72580edd19de6bea14f6db415242aef08bcb", the sha256 of "I confirm the claim and evidence use only public information, or information I am legally allowed to publish." (else 422 consent-required, nothing charged).
options.models is one of two shapes. {count: 1-5, require: n} asks the top count models of the ranked list (GET https://evidence.onedroid.ai/api/witness/price), called in rank order, rank 1 first; {count: 1} is the default. {ids: ["vendor/model", ...], require: n, max_credits_per_run: m} asks exactly the models you name (1 to 5, no repeats), in that order: a model on the list, or any other plain OpenRouter model id, written vendor/model in lower case. require is how many models must agree for a finding (1 to the number of models, all of them when you leave it out). One run of a model that is not on the list costs what OpenRouter charges for it, in credits (1 credit is US$0.001, rounded up), plus a run fee of 2, never more than max_credits_per_run (1 to 1,000, default 50; it goes only with ids). Routers, aliases and :free or -latest variants are refused with 422, and nothing is charged.
The list has two kinds of model. A chat model quotes the evidence it relied on, and the witness checks each quote against the evidence. A decision model answers with probabilities and no quotes, so its record carries no quotes. Each model on the list shows its kind and a rank note that says why it has its rank.
Send an Idempotency-Key header. A repeat with the same key and the same request answers the first answer and is charged once.
A 200 answer is {record_id, envelope, seal, disclosure?, price}. A 202 is {job_id, state}: poll GET https://evidence.onedroid.ai/api/witness/checks/{job_id} until its state is done (the answer is in it) or failed. A record is stored only when you keep it: POST https://evidence.onedroid.ai/api/witness/records/{record_id}/keep with {envelope, disclosure?}.
{
"claim": {
"method": "page.live",
"method_major": 1,
"params": { "url": "https://example.org/terms" },
"assertion": true,
"statement": null
},
"evidence": [
{ "slot": "page", "kind": "url", "url": "https://example.org/terms", "capture": "page" }
],
"options": { "visibility": "private" }
}curl
With your own key in place of odk_YOUR_KEY (keep it in your agent's secret store, not in a script) and the body in check.json:
curl -sS -X POST https://evidence.onedroid.ai/api/witness/checks \ -H "Authorization: Bearer odk_YOUR_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d @check.json
Price
GET https://evidence.onedroid.ai/api/witness/price (no key needed) lists it: a mechanical check over files costs 1 credit, a mechanical check over a page or an observation pays only for its fresh observations (0 when it reuses one), a page observation 5 (the first 50 fresh observations a day are free), a model run 10 or the model's credits_per_run, and a judged check is the check plus one run per model (a model not on the list: what OpenRouter charges for the run plus 2, never more than max_credits_per_run). Before the witness is called, the most the check can cost is held from your credits; you are charged the price the answer reports, never more than the hold. 1 credit is US$0.001.
Repeating a check over files (same claim, files, method, visibility, label and agent key) within 24 hours gives back the same record, not a new one: the answer has "replayed": true and price 0, and the response header Idempotent-Replayed: true. A record is charged once. To get a new record, change the label. Judged checks and checks over a web page always run again.
The ranked models a judged check can use (rank 1 first, with each one's kind and rank note), and what one run of each costs, are read from that price list when you open this page:
Reading the model list…
Your own model key
If your credits cannot cover a check, you can use your own OpenRouter API key instead. Save it on the Model key page of your account (https://evidence.onedroid.ai/account/model-key), signed in; an API key cannot save one. It is checked with OpenRouter when you save it, stored encrypted, never shown again (only its OpenRouter label and dates), and you can delete it on the same page.
It is used only when your credits cannot cover the hold. A check your credits cover is an ordinary paid check. Otherwise, with a key saved, the check runs in own-key mode: 0 credits are charged and none are held, the same models run on your OpenRouter account, page observations are free within the 50 fresh a day (beyond that the witness refuses), and keeping evidence files still needs credits.
The answer is the same signed record (SUPPORTED, NOT_SUPPORTED or CANNOT_WITNESS) and carries "anchoring": "own". Its seal is anchored on OneDroid's own chain only, never on Base Sepolia, so witness-verify says that it is anchored on the own chain only and --rpc expects no Base Sepolia anchor for it. The record page says so too.
422 {"error":"model-key-rejected"} is OpenRouter refusing your key (401 or 403: not valid or disabled; 402: no OpenRouter credit): nothing is signed or charged. 429 {"error":"own-key-daily-limit"} with a Retry-After header comes after the daily cap of own-key checks (1000 by default) in a UTC day. Without a key saved, a 402 insufficient_credits answer carries "own_key": "absent" and a hint with the page address.
When it is refused
402 {"error":"insufficient_credits","available":n,"needed":n,"contact":"michal@onedroid.ai","get_credits":"To get credits, email michal@onedroid.ai."}: your credits cannot cover the hold. Nothing was held and the witness was not called. "contact" is whom to ask for credits and "get_credits" says so in one sentence: To get credits, email michal@onedroid.ai. 402 {"error":"key_spend_limit"}: the key is over its spend limit (set by the key's owner, so it carries no contact).
429 with a Retry-After header: too many requests a minute, or too many credits spent this hour. Wait that many seconds and send the same request again with the same Idempotency-Key.
422 {"error": code, "detail": text} is the witness refusing the request (for example personal-data on a public check); nothing was charged.
Read, share, delete
GET https://evidence.onedroid.ai/api/witness/records/{id} gives anyone the envelope and the seal, and the owner (or a holder of ?token=) also the disclosure. A private record is shared with POST https://evidence.onedroid.ai/api/witness/records/{id}/shares {days?, evidence?} (the link carries the token once) and revoked with DELETE .../shares/{token_id}. A person reads a record at https://evidence-dev.onedroid.ai/r/{id}.
DELETE https://evidence.onedroid.ai/api/witness/records/{id} deletes a private record's stored data: its key is deleted, and its encrypted bytes stay on the chain where there is one. The signed envelope (commitments only) and its seal stay and still verify. A public record is taken down instead: POST .../takedown.
GET https://evidence.onedroid.ai/api/witness/search?q=words finds public records; GET https://evidence.onedroid.ai/api/witness/records lists your own private ones.
Verify
GET https://evidence.onedroid.ai/api/witness/records/{id}/bundle is a tar. Get witness-verify, the verifier (one Python 3 file, standard library only): git clone -b v1/claim-witness https://github.com/OneDro1d/onedroid-witness. Unpack the bundle into a folder (mkdir bundle, then tar -xf bundle.tar -C bundle) and run python3 onedroid-witness/claim_witness/verify.py --bundle bundle: it checks the signature, the ids, the key validity and the seal, and re-runs the method where it can. The steps, explained: /verify.
To check the seal on the public chain as well, add --rpc https://sepolia.base.org (or any Base Sepolia JSON-RPC address you trust): witness-verify reads the anchor transaction and prints PASS seal-chain only when that transaction carries this batch's fingerprint, in the block and at the time the seal names. The time used for the key check then comes from the chain. Without --rpc that line is a SKIP. The lab-qbft anchor is the operator's own chain and is never checked by --rpc.