GET /api/history/documents
List recent processed documents for the authenticated user.Authentication
Requires valid JWT access token in Authorization header.Query Parameters
Maximum number of documents to return (1-100)
Response
Array of document summaries
Total number of documents returned
Example Request
cURL
Example Response
GET /api/history/documents/
Get detailed information about a specific document including extracted text and processing metadata.Authentication
Requires valid JWT access token. User must be the owner of the document.Path Parameters
Unique identifier of the document
Response
Document identifier
ID of the job that processed this document
Document title
Path or URL to the document
Source type:
url, s3, localFile size in bytes
MIME type (e.g.,
application/pdf)Processing status
Generated metadata tags
Full extracted text from the document
Metadata about how the document was processed
Error message if processing failed
When document was processed
When document record was created
Example Request
cURL
GET /api/history/documents/search
Search documents by title or tags.Authentication
Requires valid JWT access token.Query Parameters
Search query (minimum 1 character)
Maximum number of documents to return (1-100)
Response
Same format asGET /api/history/documents
Example Request
cURL
Search Behavior
- Searches in document title and tags
- Case-insensitive partial matching
- Returns results sorted by relevance
Error Responses
| Status | Description |
|---|---|
| 400 | Bad Request - Query parameter missing or too short |
| 401 | Unauthorized - Invalid or missing token |
| 500 | Internal Server Error |