Skip to main content
Before you begin, make sure you have:
  1. A Datalab account with an API key (new accounts include $5 in free credits)
  2. Python 3.10+ installed
  3. The Datalab SDK: pip install datalab-python-sdk
  4. Your DATALAB_API_KEY environment variable set

Version Lifecycle

Every pipeline goes through a predictable lifecycle: When you edit a published pipeline, your changes go into a draft. The published version is untouched until you explicitly publish again.

Publish a Version

Create an immutable snapshot of the current pipeline steps:
Each call increments the version number. Published versions are immutable — their steps cannot be changed.

Edit and Iterate

After publishing, any edits create a draft that is separate from the published version:
version=0 explicitly runs the draft. Omitting version runs the active published version. See Run a Pipeline for version parameter details.

Discard a Draft

Revert unsaved changes and restore the published version’s steps:

Browse Version History

List all published versions for a pipeline:
Versions are returned newest-first.

Best Practices

Pin production integrations to a specific version. When calling run_pipeline() from production code, pass an explicit version number. This protects you from accidental changes:
Test drafts before publishing. Use version=0 to run the draft version against test documents:
Use descriptions. Include a meaningful description when publishing so your team can understand what changed:
Archive unused pipelines. Keep your pipeline list clean:

Next Steps

Run a Pipeline

Execute pipelines with version selection, overrides, and polling.

Create a Pipeline

Build pipelines with Forge or the SDK.

Pipeline Overview

Processor types, composition rules, and when to use pipelines.

SDK Reference

Full SDK reference for all pipeline methods.