Retrieve all documents and categories for the authenticated user.
This endpoint returns a comprehensive list of all documents uploaded by the user, including their metadata, processing status, and available document categories with counts.
Returns:
List of document objects, each containing:
id: Unique document identifierfilename: Original filenametype: File type/MIME typesize: File size in bytesupload_date: ISO 8601 timestamp of uploadstatus: Processing status (e.g., completed, processing, failed)categories: List of category names assigned to this documentuploader: Username of the uploaderprocessing_progress (optional): Processing progress percentage (0-100)categories: List of category objects, each containing:
name: Category namecount: Number of documents in this categoryExample Request:
GET /api/v3/documents
Headers: {"Authorization": "Bearer <api_key>"}
Example Response:
{
"documents": [
{
"id": "doc-abc123",
"filename": "quarterly_report.pdf",
"type": "application/pdf",
"size": 102400,
"upload_date": "2024-01-15T10:30:00Z",
"status": "completed",
"categories": ["financial", "2024"],
"uploader": "john.doe@example.com",
"processing_progress": 100
},
{
"id": "doc-xyz789",
"filename": "meeting_notes.docx",
"type": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"size": 45678,
"upload_date": "2024-01-16T14:20:00Z",
"status": "processing",
"categories": ["meetings"],
"uploader": "john.doe@example.com",
"processing_progress": 65
}
],
"categories": [
{
"name": "financial",
"count": 5
},
{
"name": "2024",
"count": 12
},
{
"name": "meetings",
"count": 8
}
]
}
Notes:
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Returns a comprehensive list of all documents uploaded by the authenticated user, including their metadata, processing status, and available document categories with counts