SDK Usage
Key Concepts
Steps
A step is a single operation (parse, extract, segment). Each step has:| Field | Description |
|---|---|
step_key | Operation type (marker_parse, marker_extract, etc.) |
unique_name | Unique identifier within the workflow |
settings | Step-specific configuration |
depends_on | Steps that must complete first |
Dependencies
Steps execute based on theirdepends_on array:
Available Step Types
Get the list programmatically:marker_parse
Parse documents into markdown. Saves a checkpoint for downstream steps.marker_extract
Extract structured data using a schema. Requiresmarker_parse first.
marker_segment
Detect document boundaries. Requiresmarker_parse first.
conditional
Route based on step outputs:await_parse_quality
Wait for quality scoring before conditional routing:api_request
Make external API calls:Multi-File Processing
Workflows process multiple files in parallel:- Files execute independently and in parallel
- If one file fails, others continue
- Results are organized by file
Execution Lifecycle
| Status | Description |
|---|---|
PENDING | Queued, not started |
IN_PROGRESS | Steps running |
COMPLETED | All steps finished |
FAILED | Error occurred |
Error Handling
Errors are isolated per file:Next Steps
Creating Workflows
Step-by-step tutorial for building your first workflow
Conditional Routing
Add dynamic logic and quality-based branching to workflows
Document Conversion
Convert documents to Markdown, HTML, JSON, or chunks
Structured Extraction
Extract structured data from documents using JSON schemas