Base URL
Every request is made to the host where you have deployed your own instance of the service:your-host with the hostname or IP address of your deployment. There is no shared cloud endpoint — you run the service yourself.
No API key or authentication is required. The service is designed to run inside a trusted network or behind your own authentication layer. Do not expose it to the public internet without adding an authentication proxy.
Content-Type
All requests that include a body must set theContent-Type header to application/json:
Response Format
On success, the API returns a binary PDF file:- Content-Type:
application/pdf - Content-Disposition:
attachment; filename="highlighted.pdf" - Body: raw PDF bytes
detail field describing the error:
Endpoints
The API exposes two endpoints:| Method | Path | Description |
|---|---|---|
| GET | / | Health check — verify the service is running |
| POST | /highlight | Highlight text chunks in a PDF and return the annotated file |
GET /
Verify your RAG PDF Highlighter instance is live and responding to requests.
POST /highlight
Submit a PDF URL and document chunks to receive an annotated, highlighted PDF.