Upload Document
Upload a file to be processed through the Polyvia pipeline.Endpoint
POST /api/ingest
Request Body
The file to upload. Supported formats: PDF, DOCX, PPTX, MP3, MP4, WAV
Display name for the document
Optional metadata to attach to the document
Response
Unique identifier for the uploaded document
Document display name
Current processing status:
pending, processing, completed, failedSecure URL to access the uploaded file
ISO 8601 timestamp of when the document was uploaded
Example
Get Document Status
Retrieve the current status and metadata of an uploaded document.Endpoint
GET /api/ingest/{document_id}
Path Parameters
The document identifier returned from the upload endpoint
Response
Document identifier
Document display name
Processing status:
pending, processing, completed, failedURL to access the file
Document metadata
Error message if status is
failedExample
Supported File Formats
Documents
- PDF (.pdf)
- Word (.docx, .doc)
- PowerPoint (.pptx, .ppt)
Media
- Audio (.mp3, .wav, .m4a)
- Video (.mp4, .mov, .avi)
Maximum file size: 100 MB per file. Contact support for larger file processing.
Rate Limits
- Free tier: 10 uploads per day
- Pro tier: 100 uploads per day
- Enterprise: Custom limits
