Skip to main content

November 3, 2026

[Breaking + API] Every VALIDATION_ERROR answers 400 with a list detailA VALIDATION_ERROR now always answers 400, never 422, and its detail is always a list of {type, loc, msg}. loc[0] names the request part: body, query, path, header or form (tool on MCP). A multipart or form field is now at form, not body, and an unknown query parameter is one item per name at ["query", <name>]. A semantic refusal keeps its own code at 422, such as GT_INVALID, DATASET_INVALID_REQUEST or EMPTY_EVAL.Action required: branch on error_code, not on 422, and read field errors from the detail list. Code that read a string or a {field: [msgs]} map from detail reads item["msg"] and item["loc"] instead.
[Breaking + API] An oversized upload answers 413 REQUEST_TOO_LARGEA file over the plan’s size limit now answers 413 REQUEST_TOO_LARGE with params.max_bytes, the smallest limit among the refused files, and detail.files naming each refused file. It was 400 UNSUPPORTED_FILE_TYPE. A request body over the server limit answers 413 too, where it was 400. A refusal for the file type alone stays 400 UNSUPPORTED_FILE_TYPE.Action required: handle 413 (or error_code == "REQUEST_TOO_LARGE") and send a file smaller than params.max_bytes. In the SDKs it is a plain APIError, no longer a BadRequest.
[Breaking + API] A backend status with no code of its own gets a precise codeA backend answer with no error_code now resolves by its status: 408 is GATEWAY_TIMEOUT (retryable), 409 is CONFLICT, 410 is GONE, 413 is REQUEST_TOO_LARGE, and any other 4xx is REQUEST_REJECTED, all but 408 not retryable. Each was INTERNAL_ERROR, and all but 409 were retryable. The status is unchanged.Action required: stop retrying 409, 410, 413 and the other 4xx, and branch on the new codes where you matched INTERNAL_ERROR on a 4xx.
[Breaking + API] The code_sandbox node is now the code nodeThe node type code_sandbox is now code, and a body with {"type": "code_sandbox"} answers 400. The results key sandbox_outputs is now code_outputs. The builders are code() in both SDKs. There is no alias for the old names. The product name is Code. Runs with a code node that started or were running during the deploy may fail or lose their code outputs.Action required: send "type": "code" in the node, read code_outputs from the results, and move to anyformat and @anyformat/sdk 2.0.0, which ship the new names and drop the old ones.
[Breaking + SDK] anyformat and @anyformat/sdk 2.0.0Both SDKs release a new major version for the code rename: workflow.code_sandbox(...) is workflow.code(...), codeSandbox(...) is code(...), and result.sandbox_outputs is result.code_outputs.Action required: upgrade both packages together with your calls to the old names.
[Improved + API] A report costs 5 credits Each report a run writes adds 5 credits to usage.credits. N reports behind a splitter cost 5N. A report that is not written costs nothing, and a failed report ends the run in error, which is not charged. It was free. See How credits work and Report generator. [Improved + API] An optimization says what it cost start, get and list of optimizations, the MCP tools and both SDKs carry credits. A measured run adds up the charges of its dataset runs, so the figure rises while it works. A one-shot run costs its flat 100 credits once it is done, and 0 while it runs or after it fails. It is null when the cost was not recorded, as for an optimization from before the field existed. [Improved + SDK] The TypeScript Result reads every section with a getter result.reports, result.codeOutputs, result.edits, result.splits, result.classifications, result.validations, result.partitions and result.usage match the Python Result. Python gains result.usage. See the TypeScript and Python SDK pages. [Improved + SDK] The parse builder sets annotation_reading parse(annotation_reading=True) in Python and parse({ annotationReading: true }) in TypeScript turn on the experimental handwriting re-read in standard mode.