Copyable requests
curl
curl -X POST https://agentmediatools.com/api/generate-docx \
-H "Content-Type: application/json" \
-d '{"title":"Weekly report","markdown":"## Summary\nAll checks passed."}'
JavaScript
const response = await fetch("https://agentmediatools.com/api/generate-docx", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
title: "Weekly report",
markdown: "## Summary\nAll checks passed."
})
});
console.log(await response.json());
Python
import requests
response = requests.post(
"https://agentmediatools.com/api/generate-docx",
json={"title": "Weekly report", "markdown": "## Summary\nAll checks passed."},
)
print(response.json()["downloadUrl"])
Example JSON response
{"success":true,"filename":"d4e5f6.docx","downloadUrl":"/downloads/d4e5f6.docx","size":7612,"title":"Weekly report"}
Download URLs are temporary. Save results to your own storage when the workflow needs durable retention.