Skip to main content

Email PDF report on schedule

Last verified: Sep 2, 2026

Automate pdf tasks with ForgeKit API and async jobs.

Steps

  1. Configure ForgeKit API key
  2. Set up trigger (schedule, webhook, or event)
  3. Call ForgeKit pdf endpoint with your payload
  4. 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/email

Python 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 destination

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

Try the PDF tool · API docs · Get API key