Upload Document
Upload a file to be processed through the Polyvia Engine pipeline (extraction, indexing, and fact connection).Endpoint
POST /ingest
Request Body
The file to upload. Supported formats: PDF, DOCX, PPTX, PNG, JPG
Display name for the document
Optional metadata to attach to the document
Processing options
Response
Unique identifier for the uploaded document
Document display name
Processing status:
pending, processing, completed, failedISO 8601 timestamp of when the document was uploaded
Example
Get Document Status
Check the processing status of an uploaded document.Endpoint
GET /ingest/{document_id}
Path Parameters
The document identifier returned from the upload endpoint
Response
Document identifier
Document display name
Processing status:
pending, processing, completed, failedNumber of facts extracted from the document
Number of pages processed
Error message if status is
failedExample
List Documents
List all documents in your knowledge base.Endpoint
GET /ingest
Query Parameters
Maximum documents to return (1-100)
Number of documents to skip
Filter by status:
pending, processing, completed, failedExample
Delete Document
Remove a document from your knowledge base.Endpoint
DELETE /ingest/{document_id}
Example
Supported File Formats
Documents
- PDF (.pdf)
- Word (.docx)
- PowerPoint (.pptx)
Images
- PNG (.png)
- JPEG (.jpg, .jpeg)
- TIFF (.tiff)
Maximum file size: 100 MB per file. Contact support for larger file processing.
Processing Pipeline
When you upload a document, Polyvia automatically:- Extracts visual logic from charts, tables, diagrams, and infographics
- Indexes facts into your knowledge base with source tracking
- Connects related facts across documents for cross-document reasoning
