Who this is for
Why we are doing this
You are building more on the API than you were a year ago: workflows with several steps, typed schemas, and reviews that trace each value back to the page it came from. This release makes the API fit that work. Results come back ready to use, every value can be traced to its exact place in the document, and the API behaves the same way on every route.What we did
We reviewed the whole public API, every route and every key, and brought it to one consistent shape:- A run returns every parse it produced, and document blocks have their own read.
- Extracted values come in their field’s type.
- Ids and workflow versions have one name on every route.
- Requests are validated strictly, and results that are still being prepared ask you to poll.
What gets better
Test it now on the API preview
The preview serves the new shape in front of production: same API key, same workflows, same runs.https://api.anyformat.ai/v3/ answers in the new shape.
Runs you start through the preview are real runs on your account and are charged as usual.
Preview only: leave out
delivery=url. The preview answers results inline, so a read that sends delivery=url answers 400 VALIDATION_ERROR. URL delivery cannot be tested on the preview. If your integration sends it, drop the parameter for your preview requests and keep it in production: delivery=url works on https://api.anyformat.ai/v3/ today and after the release.What breaks
Six things. Each one says what to change.1. Reading a run: GET /v3/runs/{id}/
Action: read
results.parses[0] where you read results.parse, and call the parse read when you need blocks.
2. Results that are not ready answer 202
Today the API waits up to 30 seconds and then answers 504 GATEWAY_TIMEOUT. From 10 December it answers at once with 202, a Retry-After header and results: null.
Action: treat 202 as “not ready”, wait Retry-After seconds, and ask again. A 200 is final.
3. The shape of a parse and its blocks
Action: update the code that walks blocks and tables. If you match anchors in the markdown, send
markdown_anchors=true.
4. Extracted values and evidence
Action: stop parsing
value from text, and handle null in value and in evidence[].page_number.
5. Renamed keys and parameters
A request that sends an old name answers
400 VALIDATION_ERROR with a retired item that names the new key. Answers carry only the new names.
Action: search your code for run_id, eval_id, version_id, source_version_id and ?version=.
6. Unknown parameters are refused
- On the run read and the parse read, an unknown query parameter, a repeated one, or a value the read does not take answers
400 VALIDATION_ERROR. That includesinclude=on the run read and anyexclude=value other thanparse. - On the multipart routes (
upload/run/,upload/,dataset/upload/,edit-references/,report-templates/andparse/), a form field the route does not take answers400withextra_forbiddenat["form", name].
New: the parse read
GET /v3/runs/{id}/parse/ answers one parse with its blocks, as {run_id, status, parse}.
?node=picks a parse node. Without it you get the entry parse. An unknown node answers404withparams.parse_node_ids.include=andexclude=take the partsmarkdown,blocks,content,cells,regions,sequencesandelements. The default ismarkdown,blocks,content,cells. A part you leave out isnull, so keys never disappear.- It answers
202withRetry-Afterwhile the run is processing or the parse is being prepared. A run that ended inerrororcancelledanswers200withparse: null. sequences(elements grouped by proximity, often a line),elements(words, or lines boxed as one) andregions(layout detections) are opt-in layers.- A layer too large to inline comes as
sequences_link,elements_link,markdown_linkorblocks_link:{url, size_bytes}, gzip, valid for 15 minutes. - A layer that cannot be served is
null, with alayer_unavailablewarning and areason:not_for_tier,not_for_file_type,processing_error,too_largeorparsed_before_available. - It refuses with
400a part named in bothincludeandexclude, the partscontent,cellsorregionsbesideexclude=blocks, andtable_format.
Also new
None of these break a client.results_url for results above 6 MB and delivery=url work as they do today. The preview is the one exception: it refuses delivery=url.
Known limitations
- A link’s box can be misplaced on a page that was rotated upright during parsing.
- Block types differ by tier. An
agenticparse has nocaption,list_item,footnoteorformula, and a form comes back asfigure. - The evidence
textof anagenticextraction is often empty. - Evidence
textis what the engine read, not a verbatim quote of the document.
SDKs and tools
- Python and TypeScript SDKs.
anyformat3.0.0 and@anyformat/sdk3.0.0 ship with the release and speak the new shape. The 2.x releases stop working againsthttps://api.anyformat.aiat the release. Until then, test the REST answers on the preview. - MCP. The tools take the new shape at the release.
Checklist
- Read one of your runs on
https://api-preview.anyformat.ai/v3/and compare it with production. - Read
results.parses[], and fetch blocks fromGET /v3/runs/{id}/parse/. - Poll on
202, honouringRetry-After. - Read
valuein its field’s type, and handlenull. - Handle
evidence[].page_number: null. - Replace
run_id,eval_id,version_id,source_version_idand?version=. - Remove
parse_formatand every parameter or form field a route does not document. - Update block handling:
page_number, thetypelist,confidence,linksandtable. - Send an
Idempotency-Keyon retried writes. - Upgrade the SDKs to 3.0.0 on 10 December.

