Skip to content

API versions

Lenz versions the shape of its responses by date. Choose a version with the X-Lenz-API-Version request header. Every response names the version it used in its own X-Lenz-API-Version header.

Contents
VersionShape
2026-10-11Current. One name for each field, status and error code across every endpoint.
2026-05-13The original shape. Served to integrations built before 2026-10-11.

Which version a request gets #

Lenz uses the first rule that applies:

  1. The header you send. Any date before 2026-10-11 gets the original shape.
  2. The official Lenz clients (the Python and Node SDKs, the CLI, the n8n node, the Zapier app, the MCP connector and the Google Docs add-on) get the version their release was built against.
  3. Your account. Accounts created on or after 2026-10-09 19:36 UTC get 2026-10-11. Older accounts get 2026-05-13.

Code that works today keeps working without a change. To deploy code written for the original shape on a newer account, send X-Lenz-API-Version: 2026-05-13.

Move to 2026-10-11 #

Add X-Lenz-API-Version: 2026-10-11 to one request and update the fields below. The header applies per request, so you can move one call at a time.

What2026-05-132026-10-11
Input with nothing checkablenot_a_claim (/extract, /verify), no_claim (/assess, /review)no_checkable_claim everywhere
An error responsevaries; detail can be a list; some have no code{detail, code}; a 422 adds errors[]
Something that failed inside a response (an /assess row, a verification, a review, a webhook)error, error_code, failure_reason at different placesstatus: "failed" and failure: {code, detail, hint, failure_class, retryable, docs_url}
An /assess row with no verdictverdict: "Error", confidence: "low"status: "failed", verdict and confidence null
Link to the docs in an errordoc_urldocs_url
Seconds to wait before retryingreset_in_seconds, retry_after_secondsretry_after
A citation check's 402remaining and credits_remaining (the same number)remaining
Claims found by /extractclaim + identified_claims (empty for one) + locationsclaims: [{claim, positions}], always a list
Unchecked claims on an /assess or review rowidentified_claimsmore_claims
Claim text in receipts and needs_input optionsclaim_text, textclaim
candidate_claimsalways []removed
When a verification finishedmodified_at (null on the same day)completed_at
Receipts200 for a repeated /verify; chain_id on /verify202 for every receipt; no chain_id
Review limit flagsclaim_limit_reached (>=), citation_limit_reached (>)claim_limit_exceeded, citation_limit_exceeded: true when some were left out
/me/usageper-capability blocks, credits.bonus, quota_resets_atthe credits pool, costs, cost_options
A run you cancelled (POST /verify/{task_id}/cancel, /reviews/{id}/cancel, /citechecks/{id}/cancel)status: "failed" with failure_class: "cancelled"; verification.failed, review.failed, citecheck.failedstatus: "cancelled"; verification.cancelled, review.cancelled, citecheck.cancelled
webhook_url: ""/verify: your key's default; /review, /citecheck: no webhookno webhook, on every endpoint (omit it for your key's default)
A claim no public record settles (amended into 2026-10-11 on 2026-10-11)status: "failed", failure_reason research_empty (no source found) or research_insufficient, failure_class: "insufficient_evidence"; verification.failed; GET /verifications/{id} 409; left out of GET /verifications; on a review, a failed deep checkstatus: "completed", verdict: "No Public Record", lenz_score: null, a confidence; verification.completed; on a review, an issue (not on the public record), with no suggested edit
A verification's failure code (amended into 2026-10-11 on 2026-10-11)the step it stopped at (framing_failed, conclusion_failed, task_stuck, ...); until 2026-10-11 also in this version, which now reads the collapsed code too, except research_empty / research_insufficientno_checkable_claim, upstream_unavailable, internal or cancelled; detail says the cause; failure_class never insufficient_evidence
A review's cancelled deep checkstatus: "failed"status: "cancelled"
Webhooksverification events flat, no event_id; review events nestedone envelope: event, event_id, the id, status, and the body polling returns

Both versions have status on /assess (ok, error, and not_a_claim / no_checkable_claim). Every response and webhook names its version in the X-Lenz-API-Version header.

Amended on 2026-10-11. 2026-10-11 changed once after it was published, before any caller outside Lenz depended on it: a claim no public record settles completes with verdict: "No Public Record" and lenz_score: null (it was a failed run); a verification's failure code is one of no_checkable_claim, upstream_unavailable, internal and cancelled, with the cause in detail; failure_class no longer includes insufficient_evidence; a review's cancelled deep check reads cancelled; and on a review a "No Public Record" deep check is an issue (not on the public record). The same day the quick check gained the answer too: an /assess row, and a review's quick-check row, can read verdict: "No Public Record" (its confidence medium or low, never high; on a review it is an issue, and escalate.verdicts accepts it and includes it by default), and a quick check whose reviewers reach no answer is a free failed row, upstream_unavailable. A 2026-05-13 request runs the quick check as before and never gets it; a 2026-05-13 reader of a 2026-10-11 result (a replay, a review read in the other version) reads it as Mixed at low. 2026-05-13 reads a "No Public Record" run as the failure it always did (research_empty / research_insufficient), and its other verification failures now read the same collapsed code instead of the pipeline step. Published versions do not change otherwise.

Amended again on 2026-10-11, the same day. One failure vocabulary on every other failed item: an /assess row, a review, its rows and a citation check carry a failure.code from no_checkable_claim, page_unreadable, upstream_unavailable, internal, cancelled, no_citations and insufficient_credits, with the cause in detail: timeout reads upstream_unavailable, framing_failed and citation_check_failed read internal, assessment_failed reads the code of its class, and a review's unreadable link (invalid_input) reads page_unreadable. A review stopped by its own time budget while reading the draft is upstream_unavailable and retryable (it read cancelled). /assess's and /extract's 502 say internal, and /extract answers an unreadable link with 422 page_unreadable instead of 502 extraction_failed. 2026-05-13 is unchanged: it reads every stored cause, class and status code exactly as before.

no_checkable_claim: the input states nothing that can be checked against public evidence (an opinion, a forecast, a claim about a private person, a statement whose only source is unidentified). hint says which.

The API reference describes 2026-10-11: a field 2026-05-13 still sends under an older name is listed as deprecated beside the current one, and where a shape differs, the operation names the ...Legacy component that version receives.

Webhooks #

The version applies to responses and webhooks alike: a webhook uses the version of the request that asked for it. In 2026-10-11 every event carries event_id (the same on every retry, so you can deduplicate), and a failure carries the same failure block as polling: code, detail, hint, failure_class, retryable and docs_url.

A run you cancel (POST /verify/{task_id}/cancel, or the review and citation-check equivalents) ends as status: "cancelled". In 2026-10-11 the webhook is verification.cancelled, review.cancelled or citecheck.cancelled, and polling reads cancelled too. A request made in 2026-05-13 keeps status: "failed" with failure_class: "cancelled", and its webhook is the matching *.failed event. A cancelled run is not charged.

Upgrading the SDKs #

lenz-io 3.x asks for 2026-10-11 on every request and reads only that shape. 2.21 and later read both, so they keep working on either side of the switch. A 3.x client that is answered in another version raises LenzApiVersionError (see errors).

  • Update every service that receives your webhooks to lenz-io 2.21 or later before the service that sends moves to 3.x. A call made with 3.x is answered, and its webhooks delivered, in 2026-10-11.
  • Code that reads raw bodies (exc.body, a webhook event’s raw) reads the current shape; the typed attributes keep the values they had in 2.x.
  • An idempotent request first sent with 2.x and replayed with the same key after the switch raises LenzApiVersionError in 3.x. Finish that work with 2.x; never change the key to get past it.
  • A run stopped elsewhere (the website’s Stop button, another process) reads status: "cancelled", where 2.x read failed. A polling loop of your own must treat cancelled as terminal, and a webhook receiver must handle verification.cancelled, review.cancelled and citecheck.cancelled for work submitted with 3.x.
  • Every 2.x field name keeps working with its 2.x value, as a deprecated alias of the current name (failure.code for error_code, more_claims for identified_claims, completed_at for modified_at, …); the SDK changelogs list them. In the Node SDK the wait options move to the second argument (verifyAndWait({ claim }, { timeoutMs, onProgress })) and batch items and citation pairs take camelCase (sourceUrl, webhookUrl, citedTitle, …); the 2.x forms still work and are deprecated. The Node SDK needs Node 22.12 or later.