Documents
Upload Document
Endpoint:
POST /documents/uploadDescription: Upload a document for analysis and summarization.
Request Body:
file: The document file (PDF, DOCX, XML, etc.).
Response: Document object containing document details.
curl -X POST \
-H "Authorization: Bearer your_api_key_here" \
-F "[email protected]" \
https://api.pagepeek.com/v1/documents/uploadGet Document Analysis
Endpoint:
GET /documents/:document_id/analysisDescription: Retrieve the analysis of a specific document.
Response: Analysis object containing document analysis details.
curl -X GET \
-H "Authorization: Bearer your_api_key_here" \
https://api.pagepeek.com/v1/documents/abc123/analysisGet Document Summary
Endpoint:
GET /documents/:document_id/summaryDescription: Retrieve the summary of a specific document.
Response: Summary object containing document summary.
curl -X GET \
-H "Authorization: Bearer your_api_key_here" \
https://api.pagepeek.com/v1/documents/abc123/summaryLast updated