Upload a document for structured extraction.
Uploads a PDF document that can be used for structured data extraction. Only PDF files are supported.
Supported File Types:
.pdf extension)Document Processing:
Usage:
After uploading, you’ll receive a document_id that can be used with:
POST /jobs endpoint to start extraction jobsGET /documents/{document_id} to retrieve document informationDELETE /documents/{document_id} to remove the documentExample Response:
{
"document_id": "123e4567-e89b-12d3-a456-426614174000",
"file_name": "financial_report.pdf",
"file_size": 2048576,
"page_count": 45,
"uploaded_at": "2025-01-11T18:35:00Z",
"status": "uploaded"
}
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
Response model for document upload.
Unique ID of the uploaded document
Original filename of the uploaded document
File size in bytes
Number of pages in the document
Timestamp when the document was uploaded
Upload status