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/upload{
"documentId": "abc123",
"title": "Sample Document",
"size": 345678,
"status": "uploaded",
"createdAt": "2023-10-01T12:00:00Z",
"updatedAt": "2023-10-01T12:00:00Z"
}Get 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/analysis{
"documentId": "abc123",
"keywords": ["keyword1", "keyword2"],
"summary": "This document discusses..."
}Get Document Summary
Endpoint:
GET /documents/:document_id/summaryDescription: Retrieve the summary of a specific document.
Response: Summary object containing document summary.
Last updated