TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Jatin-Mehra119/PDF-Insight-Beta/llms.txt
Use this file to discover all available pages before exploring further.
/upload-pdf endpoint is the entry point for every PDF Insight Pro conversation. It accepts a multipart/form-data POST request containing your PDF file, saves it to the server’s upload directory, extracts and chunks the text, embeds the chunks using BAAI/bge-large-en-v1.5, builds a FAISS index, and returns a session_id UUID that you must include in all subsequent /chat, /chat-history, /clear-history, and /remove-pdf requests.
Request
Method:POSTPath:
/upload-pdfContent-Type:
multipart/form-data
The PDF file to upload and index. Must be a valid PDF document. Maximum file size is 50 MB.
The Groq-hosted LLM model to associate with this session. This model is used for all
/chat calls on this session unless overridden in the request. Use GET /models to retrieve the full list of accepted values.curl example
Response
Status:200 OK
Always
"success" on a successful upload.A UUID v4 string that uniquely identifies the newly created session. Store this value — it is required for every subsequent API call on this document.
A human-readable confirmation string, e.g.
"Processed document.pdf".Errors
| Status | Detail |
|---|---|
| 500 | Error processing PDF: {error} |
Save the returned
session_id immediately. All subsequent /chat, /chat-history, /clear-history, and /remove-pdf calls require it. The server does not provide a way to recover a lost session ID.