For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
CommunityAPI StatusAPI PricingSign Up
DocumentationAPI ReferencesCookbookIntegrationDeveloper Tools
DocumentationAPI ReferencesCookbookIntegrationDeveloper Tools
  • API Reference
    • Introduction
    • Authentication
    • Access to Beta APIs
    • Meta Prompt Guide
  • Endpoints
      • POSTCreate Document Intelligence Job
      • POSTGet Document Intelligence Upload URLs
      • POSTStart Document Intelligence Job
      • GETGet Document Intelligence Job Status
      • POSTGet Document Intelligence Download URLs
LogoLogo
CommunityAPI StatusAPI PricingSign Up
EndpointsDocument Intelligence

Get Document Intelligence Upload URLs

||View as Markdown|
POST
https://api.sarvam.ai/doc-digitization/job/v1/upload-files
POST
/doc-digitization/job/v1/upload-files
$curl -X POST https://api.sarvam.ai/doc-digitization/job/v1/upload-files \
> -H "api-subscription-key: <apiSubscriptionKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
> "files": [
> "invoice_2024.pdf"
> ]
>}'
1{
2 "job_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3 "job_state": "Accepted",
4 "upload_urls": {},
5 "storage_container_type": "Azure"
6}
Returns presigned URLs for uploading input files. **File Constraints:** - Exactly one file required (PDF or ZIP) - PDF files: `.pdf` extension - ZIP files: `.zip` extension
Was this page helpful?
Previous

Start Document Intelligence Job

Next
Built with

Returns presigned URLs for uploading input files.

File Constraints:

  • Exactly one file required (PDF or ZIP)
  • PDF files: .pdf extension
  • ZIP files: .zip extension

Authentication

api-subscription-keystring
API Key authentication via header

Request

This endpoint expects an object.
job_idstringRequired
Job identifier returned from Create Job
fileslist of stringsRequired

List of filenames to upload (exactly 1 file: PDF or ZIP)

Response

Successful Response
job_idstringformat: "uuid"
Job identifier
job_stateenum
Current job state
upload_urlsmap from strings to objects
Map of filename to presigned upload URL details
storage_container_typeenum
Storage backend type
Allowed values:

Errors

400
Bad Request Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error