Overview
The Export Resume as PDF endpoint generates a professionally formatted PDF of a resume using the user’s chosen template and design settings. The PDF is rendered server-side using Playwright and returned as a binary file.
Common use cases:
- AI agent job applications - export a tailored resume as PDF and attach it to a job application.
- Automated delivery - generate PDFs on demand and send via email or upload to a job portal.
- Archiving - save PDF snapshots of resumes at different stages of your job search.
Scope required: resume:export | Rate limit: 5 requests/min
Request
POST /v1/resume/{id}/export/pdf
Body Parameters
Language for date formatting (e.g. “en”, “nl”)
Example
curl -X POST "https://api.mokaru.ai/v1/resume/clx1234/export/pdf" \
-H "Authorization: Bearer mk_your_key" \
-H "Content-Type: application/json" \
-d '{}' \
-o resume.pdf
Response
The response is a binary PDF file, not JSON.
Headers:
Content-Type: application/pdf
Content-Disposition: attachment; filename="FirstName_LastName_JobTitle.pdf"
Cache-Control: private, max-age=0
This endpoint returns a binary file. Use -o filename.pdf with curl or handle the response as a blob/buffer in your code. The PDF is rendered with the resume’s template and design settings.
PDF generation takes 5-15 seconds depending on resume complexity. The rate limit is 5 per minute to prevent overload.
If the resume is currently being tailored by auto-prep, the endpoint returns 409 Conflict with code RESUME_PROCESSING. Wait a few seconds and retry.