Version Control API
Manage document versions, variants, and version operations.List Versions
List all versions of a document with their processing variants.Path Parameters
Document ID
Response
Array of version objects with their variants
Total number of versions
Get Specific Version
Get a specific version with all its variants.Path Parameters
Document ID
Version number (1, 2, 3, etc.)
Response
Returns a version object with all its variants.Reprocess Document
Reprocess document with different configuration (creates new variant).Path Parameters
Document ID to reprocess
Request Body
Chunk size in tokens (128-2048)
Chunk overlap in tokens (0-512)
Chunking strategy:
semantic or recursiveProcess images and figures
Extract section numbers
Calculate quality scores
Extract tables
Generate table context
Response
Returns upload response for the new variant.Delete Version
Delete a specific version with auto-promotion.Path Parameters
Document ID
Version number to delete
Response
Deleted version ID
Resource type (
version)Deletion status (
deleted)Auto-promoted version info (if latest was deleted)
Cascade deletion info (if last version)
Revert to Version
Revert document to a previous version (creates new version).Path Parameters
Document ID
Version number to revert to
Response
Whether revert was successful
Document ID
Version number reverted from
New version number created
New version ID
Set Default Version
Set which version is returned by default.Path Parameters
Document ID
Request Body
Version number to set as default
Response
Whether update was successful
Document ID
New default version number
Latest version ID
Update Version Label
Update the human-readable version label.Path Parameters
Document ID
Request Body
New version label (e.g., “v2.0”, “Final Draft”)
Response
Whether update was successful
Document ID
New version label
Get Variant
Get specific processing variant information.Path Parameters
Variant ID
Response
Variant ID
Parent version ID
Configuration hash for deduplication
Processing configuration (sensitive fields filtered)
Processing status:
pending, processing, completed, failedError message if failed
Number of chunks
Total token count
Number of pages
Credits charged for processing
Whether this is the primary variant for its version
Deduplication statistics
Number of retry attempts
Whether variant is currently retrying
Whether variant is in dead letter queue
Cancel Variant Processing
Cancel processing for a variant (if still pending/processing).Path Parameters
Variant ID to cancel
Response
Cancelled variant ID
New status (
cancelled)Success message
Whether credits were refunded
Delete Variant
Delete a processing variant with auto-promotion.Path Parameters
Variant ID to delete
Response
Deleted variant ID
Resource type (
variant)Deletion status (
deleted)Auto-promoted variant info (if default was deleted)
Cascade info (if last variant)