Digitise Document
Creates and starts a digitise job from files or pre-uploaded handles. Digitise converts documents into structured HTML, Markdown, or JSON while preserving layout.
Input: Exactly one of file and upload_ids must be provided. Use POST /doc-ai/v1/job/upload to obtain upload IDs.
Processing: the job runs asynchronously. Poll GET /doc-ai/v1/job/{job_id}/status until a terminal status (completed, partially_completed, failed, rejected), then fetch output via the results or download-url endpoints.
Digitise JSON results include blocks with text, tag and bounding box.
Authentication
Request
Document file(s) to digitise. Repeatable multipart part. Exactly one of file and upload_ids must be provided.
Comma-separated upload IDs returned by POST /doc-ai/v1/job/upload. Exactly one of file and upload_ids must be provided.
Language of the document in BCP-47 format (e.g. hi-IN, en-IN). Defaults to Indic: when omitted, the document is processed as an Indic-language document. To process an English document, set language to en-IN. Sarvam Vision supports 22 Indian languages plus English; see the Sarvam Vision model page for the full list.