Endpoint
Authentication
No authentication required. This is a public endpoint for demo purposes.Path Parameters
The theme ID for the example documents. Available themes are defined in
lib/example-themes.ts.Example: medical-reportResponse
Array of example document files
Error Responses
Error message explaining what went wrong
- 404 Not Found: Unknown theme ID or no PDFs found for the theme
- 500 Internal Server Error: Failed to read example files from disk
Example Request
Example Response
Implementation Details
The endpoint:- Validates the theme ID against configured themes
- Resolves the theme directory (checking multiple possible paths)
- Scans for
.pdffiles in the theme directory - Reads each PDF and encodes it as base64
- Returns all files in a JSON response
frontend/examples_docs/[theme-dir]/ and are used to demonstrate the platform’s document processing capabilities without requiring users to upload their own sensitive files.
Source
Implementation:frontend/app/api/example-docs/[id]/route.ts