Email PDF report on schedule
Last verified: Sep 2, 2026
Automate pdf tasks with ForgeKit API and async jobs.
Steps
- Configure ForgeKit API key
- Set up trigger (schedule, webhook, or event)
- Call ForgeKit pdf endpoint with your payload
- Deliver output to destination (Slack, email, storage)
Node.js example
// Workflow: pdf-to-email
const res = await fetch("https://useforgekit.dev/api/v1/pdf", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.FORGEKIT_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify({ url: "https://example.com/report", format: "A4" }),
});
const job = await res.json();
// Poll GET /api/v1/jobs/{job.id} until completed, then deliver to Slack/emailPython example
# Workflow: pdf-to-email
import os, requests
resp = requests.post(
"https://useforgekit.dev/api/v1/pdf",
headers={"Authorization": f"Bearer {os.environ['FORGEKIT_API_KEY']}"},
json={"url": "https://example.com/report", "format": "A4"},
)
job = resp.json()
# Poll job status, then post result to your destinationRelated integrations
Connect this workflow to your stack via our integration guides — Zapier for no-code, Next.js or FastAPI for custom apps, or MCP for AI agents.