Workflow Runs Migration
What You Get
- Single-file runs β Each request processes one file, giving you a single
WorkflowRunback instead of an array - Typed step runs β
stepRunsnow includes all step types (extraction, classification, splitting, etc.) with typed results, replacing the oldoutputsarray - Cleaner request/response format β Simpler property names, unwrapped responses, predictable nullable fields
- Polling helpers β
createAndPoll/create_and_pollhandles polling with exponential backoff
The old /workflow_runs request and response shapes from 2025-04-21 are not carried forwardβyouβll need to update your integration to use the new format.
Quick Start: Common Patterns
Running a Workflow
TypeScript
Python
Java
Using Polling Helpers
The SDK provides createAndPoll / create_and_poll methods that handle polling automatically, returning when the run reaches a terminal state (PROCESSED, FAILED, CANCELLED, NEEDS_REVIEW, or REJECTED):
TypeScript
Python
Java
Processing Multiple Files
The old API accepted an array of files in a single request. The new API processes one file at a time. To process multiple files, make separate requests or use the batch endpoint:
TypeScript
Python
Listing Workflow Runs
TypeScript
Python
Getting a Workflow Run
TypeScript
Python
Using Raw Text Instead of Files
TypeScript
Python
Endpoint Changes Summary
Request Changes
File Properties (All Endpoints)
Creating a Workflow Run
Breaking change: The files array has been replaced with a single file object. If you previously processed multiple files in one request, youβll need to either make separate requests or use the Batch Run Workflow endpoint.
Example: Create Request
Batch Run Request
Response Changes
Response shape changes: Single object responses are now returned directly (no wrapper key), and list responses use { "object": "list", "data": [...] } format. See Simplified Response Shapes for details.
Key Differences
Example: Create Response
Example: Completed Response with Step Runs
The biggest change is how processor results are returned. Previously, results lived in the outputs array as ProcessorRun objects. Now, results are in stepRuns as typed StepRun objects:
Example: List Response
Example: Delete Response
Removed Endpoint: Correct Workflow Run Outputs
The POST /workflow_runs/{workflowRunId}/outputs/{outputId} endpoint for submitting corrected outputs has been removed. This was deprecated in the 2025-04-21 API.
SDK Method Reference
Detailed Schema Changes
WorkflowRun Schema
WorkflowRunSummary Schema (List Response)
StepRun Schema
Need Help?
If you encounter any issues while migrating, please contact our support team at support@extend.app.

