Developer API
Use MentorMakers' PDF tools directly from your own app, website, or script — the same engine behind the site, available as a REST API.
Getting Started
API access is currently granted by request. Contact us, or if you already have an account, generate your key once access is granted from Dashboard → Developer API.
Authentication
Pass your key in the X-API-Key header on every request.
curl -X POST https://mentormakers.pk/api/v1/compress \ -H "X-API-Key: mm_live_xxxxxxxxxxxx" \ -F "file=@document.pdf" \ -F "level=ebook"
Response Format
Every successful call returns a JSON object with a one-time download link (valid for 1 hour):
{
"success": true,
"download_url": "https://mentormakers.pk/download/abc123...",
"filename": "mentormakers.pk-compressed.pdf",
"expires_in_seconds": 3600
}
Endpoints
/api/v1/merge
Merge 2+ PDFs into one. Field: files[] (multiple PDF files, min 2).
/api/v1/compress
Compress a PDF. Fields: file (PDF), level (optional: screen, ebook, or printer — defaults to ebook).
/api/v1/pdf-to-jpg
Convert every page to a JPG, returned as a ZIP. Field: file (PDF).
/api/v1/watermark
Add a text watermark. Fields: file (PDF), text (string, max 60 chars).
/api/v1/protect
Password-protect a PDF. Fields: file (PDF), password (string, 4–60 chars).
Rate Limits
Each key has a daily call limit (set when your access is granted). A 429 response means you've hit today's limit — it resets at midnight. Need a higher limit? Get in touch.