> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mokaru.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Export Resume as PDF

> Export a resume as a professionally formatted PDF

## 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.

<Note>
  **Scope required:** `resume:export` | **Rate limit:** 5 requests/min
</Note>

## Request

```bash theme={null}
POST /v1/resume/{id}/export/pdf
```

### Body Parameters

<ParamField body="locale" type="string" default="en">
  Language for date formatting (e.g. "en", "nl")
</ParamField>

### Example

```bash theme={null}
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`

<Info>
  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.
</Info>

<Warning>
  PDF generation takes 5-15 seconds depending on resume complexity. The rate limit is 5 per minute to prevent overload.
</Warning>

<Warning>
  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.
</Warning>
