Export Resume as PDF
curl --request POST \
--url https://api.mokaru.ai/v1/resume/{id}/export/pdf \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"locale": "<string>"
}
'import requests
url = "https://api.mokaru.ai/v1/resume/{id}/export/pdf"
payload = { "locale": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({locale: '<string>'})
};
fetch('https://api.mokaru.ai/v1/resume/{id}/export/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mokaru.ai/v1/resume/{id}/export/pdf",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'locale' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mokaru.ai/v1/resume/{id}/export/pdf"
payload := strings.NewReader("{\n \"locale\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mokaru.ai/v1/resume/{id}/export/pdf")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"locale\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mokaru.ai/v1/resume/{id}/export/pdf")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"locale\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyResumes
Export Resume as PDF
Export a resume as a professionally formatted PDF
POST
/
v1
/
resume
/
{id}
/
export
/
pdf
Export Resume as PDF
curl --request POST \
--url https://api.mokaru.ai/v1/resume/{id}/export/pdf \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"locale": "<string>"
}
'import requests
url = "https://api.mokaru.ai/v1/resume/{id}/export/pdf"
payload = { "locale": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({locale: '<string>'})
};
fetch('https://api.mokaru.ai/v1/resume/{id}/export/pdf', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mokaru.ai/v1/resume/{id}/export/pdf",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'locale' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mokaru.ai/v1/resume/{id}/export/pdf"
payload := strings.NewReader("{\n \"locale\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mokaru.ai/v1/resume/{id}/export/pdf")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"locale\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mokaru.ai/v1/resume/{id}/export/pdf")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"locale\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyOverview
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/minRequest
POST /v1/resume/{id}/export/pdf
Path Parameters
string
required
Resume id to export
Body Parameters
string
default:"en"
Locale for date formatting. One of:
en, nlExample
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/pdfContent-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-prepare, the endpoint returns
409 Conflict with code RESUME_PROCESSING. Wait a few seconds and retry.Was this page helpful?
