Skip to main content

Endpoint

Upload one or more documents to receive document IDs for extraction. Upload stores the files; schema generation and extraction perform document conversion later.

Authentication

string
required
API key for authentication. Your unique API key.

Request Parameters

file[]
required
One or more document files to upload.Extraction-compatible formats:
  • application/pdf (.pdf)
  • image/jpeg (.jpg, .jpeg)
  • image/png (.png)
  • image/tiff (.tiff)
  • image/bmp (.bmp)
Other file types may upload, but schema generation and extraction can fail if the backend cannot convert the file.

Response

string[]
Array of UUID v4 document identifiers. Use these IDs for extraction requests.

Examples

File Size & Limits

The backend does not enforce a documented per-file or per-request count limit in application code. Infrastructure may still reject oversized requests before they reach the backend. For larger batches, split files into multiple upload requests and retry failed requests.

Storage Duration

No public retention SLA is exposed by the backend. Keep your own source documents if you need long-term archival.

Processing Time

The API returns document IDs after the files are stored. OCR, layout analysis, and model processing happen later during schema generation or extraction; the backend does not expose a public upload timing SLA.

Error Responses

400 Bad Request

Malformed multipart request:
Common causes:
  • Missing files form field
  • Invalid multipart body
  • Corrupt upload stream

413 Payload Too Large

Request exceeds size limits:
Solution: Split your batch into smaller requests.

500 Internal Server Error

Server-side processing error:
Solution: Retry the request. If the error persists, contact support.

Best Practices

Upload multiple documents in a single request to reduce API calls:
Always close file handles after upload:
Check file format before uploading:
Map document IDs to original filenames for tracking:

Next Steps

After uploading documents, you can:

Generate Schema

Auto-generate extraction schema from a sample document

Extract Data

Extract structured data using a schema

List Documents

View documents with extraction records