POST/api/v1/content-creation/export
Export content as PDF, DOCX, or TXT
Export content creation draft to the requested format (pdf, docx, txt).
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"content_html": "",
"content_text": "",
"format": "pdf",
"meta_position": "below",
"themes": [],
"title": "Untitled"
}
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/content-creation/export" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content_html": "",
"content_text": "",
"format": "pdf",
"meta_position": "below",
"themes": [],
"title": "Untitled"
}'
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/content-creation/export", headers={"X-API-Key": "YOUR_KEY"}, json={
"content_html": "",
"content_text": "",
"format": "pdf",
"meta_position": "below",
"themes": [],
"title": "Untitled"
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/content-creation/export", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"content_html": "",
"content_text": "",
"format": "pdf",
"meta_position": "below",
"themes": [],
"title": "Untitled"
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
